TouchVG framework
mgcurv
arc3P
arcBulge
arcTan
arcToBezier
bezier4P
bezierIntersectionWithLine
bezierIsStraight
bezierPointDistantFromPoint
bezierPointLengthFromStart
bezierTanget
bsplinesToBeziers
crossLineCircle
crossTwoCircles
cubicSplines
cubicSplineToBezier
ellipse90ToBezier
ellipseToBezier
fitBezier
FitCubicCallback
fitCubicSpline
fitCurve
fitCurve2
fitCurve3
fitCurve4
gaussJordan
lengthOfBezier
PtCallback
quadBezierToCubic
roundRectToBeziers
SplineFlags
splitBezier
triEquations
◆
bsplinesToBeziers()
int mgcurv::bsplinesToBeziers
(
Point2d
points
[],
int
n
,
const
Point2d
*
ctlpts
,
bool
closed
)
static
得到三次B样条曲线的分段贝塞尔曲线段控制点
参数
[out]
points
贝塞尔曲线的控制点,要预先分配(1+n*3)个点的空间
n
B样条曲线控制点的点数,至少为4
ctlpts
B样条曲线控制点坐标数组,点数为n
closed
三次B样条曲线是否为闭合曲线
返回
实际转换的贝塞尔曲线控制点的个数
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证