![]() |
FlatConstantLength (class MKI_CUBIC_BEZIER) New in Version 2013.0 |
www.CAD6.com |
C++ Syntaxsize_t MKI_CUBIC_BEZIER::FlatConstantLength( double f_dLength, const size_t f_unLineMax, MKI_POINT_PTR f_pResult ) const;
Converts the cubic Bézier curve into a polyline with the given partial line length, but never more than LineMax segments.
ParametersLength [double] Desired average length of the line segments, must be positive. The length is only roughly approximated! The higher LineMax is, the more accurate the length will be approximated. LineMax [const size_t] Maximum number of line segments to create. Useful range: 1 <= LineMax <= 1000. Result [MKI_POINT_PTR] Address of point buffer to receive the calculated polyline. Allow at least LineMax+1 points.
Return ValueReturns the number of line segments created, at most LineMax.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH