Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeSegmentChain2d::appendSamplePointsOptimal Method
Syntax
C++
void appendSamplePointsOptimal(int numSampleForEachArc, OdGePoint2dArray& pointArray) const;

Gets an approximate set of points for a curve. The specified number of points is the number of points that is received in a full circle for each arc from the curve.

Parameters
Description
numSampleForEachArc
[in] Number of samples for each arc in the curve.
pointArray
[out] Receives an array of sample points.

A curve has a straight line at intervals of 0.0-10.0, a circular arc at intervals of 10.0-13.14 (0.0-3.14), and a circular arc at intervals of 13.14-14.71 (0.0–1.57). If numSampleForEachArc is 100, 77 points are returned. 2 points for the line, 50 points for the first arc and 25 points for the second arc. 

 

Copyright © 2002-2022. Open Design Alliance All rights reserved.