Share

Face.CalculateStrokes Method

Parent Object: Face

Description

Obtain the stroked or polygonal representation for the given chord-height tolerance.

Remarks

C++ clients needs to deallocate the pointers with CoTaskMemFree.

Syntax

Face.CalculateStrokes( Tolerance As Double, VertexCount As Long, SegmentCount As Long, VertexCoordinates() As Double, VertexIndices() As Long )

Parameters

Name Type Description
Tolerance Double

Input Double that specifies the maximum distance that the stroke can deviate from the smooth curve. This value is in centimeters. Smaller values can result in a much greater number of strokes being returned and will require more processing time to calculate.

The picture below illustrates how the chordal tolerance is used when creating a stroked version of a curve. The chordal tolerance defines the maximum distance a line can be from the actual curve.

VertexCount Long Output Long that returns the number of vertices that were generated. This is the number of vertices that will be returned by the VertexCoordinates argument.
SegmentCount Long Output Long that returns the number of segments that were generated.
VertexCoordinates Double Output array of Doubles that contains the coordinate locations of the vertices. The values are defined in x, y, z order within the array and represent coordinates within the model space of the faceted object.
VertexIndices Long Output array of Longs that are used as index values to index into the vertex coordinate list. The first coordinate in the vertex coordinate list is index 1.

Version

Introduced in version 5.3

Was this information helpful?