CurveEvaluator2D.getStrokes Method
Parent Object:
CurveEvaluator2DDefined in namespace "adsk::core" and the header file is <Core/Geometry/CurveEvaluator2D.h>
Description
Get a sequence of points between two curve parameter positions. The points will be a linear interpolation along the curve between these two parameter positions where the maximum deviation between the curve and each line segment will not exceed the specified tolerance value.
Syntax
"curveEvaluator2D_var" is a variable referencing a CurveEvaluator2D object.
(returnValue, vertexCoordinates) = curveEvaluator2D_var.getStrokes(fromParameter, toParameter, tolerance)
|
#include <Core/Geometry/CurveEvaluator2D.h
// Declare the output arguments. double fromParameter; double toParameter; double tolerance; Point2D[] vertexCoordinates; boolean returnValue = curveEvaluator2D_var->getStrokes(fromParameter, toParameter, tolerance, vertexCoordinates);
|
Return Value
boolean |
Returns true if the interpolation points were successfully returned. |
Parameters
fromParameter |
double |
The starting parameter position to interpolate points from. The parameter value must be within the range of the parameter extents as provided by getParameterExtents. |
toParameter |
double |
The ending parameter position to interpolate points to. The parameter value must be within the range of the parameter extents as provided by getParameterExtents. |
tolerance |
double |
The maximum distance tolerance between the curve and the linear interpolation. |
vertexCoordinates |
Point2D[] |
The output array of linear interpolation points. |
Version
Introduced in version August 2014