如何用贝塞尔曲线最佳逼近几何弧? [英] How to best approximate a geometrical arc with a Bezier curve?

查看:90
本文介绍了如何用贝塞尔曲线最佳逼近几何弧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用贝塞尔曲线近似法绘制二维弧时,如果您有一个圆的中心点,起点和终点角以及半径,那么如何计算两个控制点?

When drawing an Arc in 2D, using a Bezier Curve approximation, how does one calculate the two control points given that you have a center point of a circle, a start and end angle and a radius?

推荐答案

在StackOverflow文章中不容易解释这一点,特别是因为证明它会涉及许多详细的步骤。但是,您所描述的是一个常见问题,并且有许多详尽的解释。请参阅 此处 这里 ;我非常喜欢#2,并已使用它。

This isn't easily explained in a StackOverflow post, particularly since proving it to you will involve a number of detailed steps. However, what you're describing is a common question and there's a number of thorough explanations. See here and here; I like #2 very much and have used it before.

这篇关于如何用贝塞尔曲线最佳逼近几何弧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆