Brief Index      Full Index      I.M. Reference

Show_Trim_Poly


Functions

void Show_Trim_Poly (int index, int *count, float *points)
void Show_Trim_Poly_Count (int index, int *count)

Function Documentation

void Show_Trim_Poly ( int  index,
int *  count,
float *  points 
)

Returns the definition of an existing trimming polyline.

Parameters:
index - Index of the particular trim polyline in the
trim list or in a trim collection.
count - Number of points in the polyline trim.
Returned to user. Passed by reference always.
points - Polyline control points.
Returned to user. Passed by reference always.

DETAILS

Show_Trim_Poly() shows the parameters of a trim poly. If the trim poly is attached to a NURBS surface (the last open was Open_Geometry() on a NURBS surface key), it is assumed to describe a closed region. If it is part of a collection (the last open was Open_Trim() on a trim collection index), it defines just one of the piecewise sections of a closed region.

Before calling Show_Trim_Poly() , you should first call Show_Trim_Poly_Count() to know how much space is required to hold the points array.

These calls are not legal except when there is a valid NURBS surface that has been opened with a call to Open_Geometry() . The index passed must also refer to a valid trim poly (as opposed to a trim collection or trim curve).

Offsets of trimming objects are zero-based. Offset 0 corresponds to the head of the list. Trimming objects are prepended to the head of the list, meaning that offset 0 is the most recently created.

NOTES

Show_Trim_Poly_Count() should not be confused with Show_Trim_Count() , which shows the number of trim objects, not the number of vertices.

RESTRICTIONS

See also:
Insert_NURBS_Surface, Open_Geometry, Show_Trim_Type, Open_Trim, Show_Trim_Count, Set_Trim_Operation, Show_Trim_Curve, Show_Trim_Operation,

void Show_Trim_Poly_Count ( int  index,
int *  count 
)

Finds the number of points in a a trim polyline. This is useful in determining the size of the data structure that must hold points.

Parameters:
index - Index of the particular trim polyline in the
trim list or in a trim collection.
count - Number of points in the polyline trim.
Returned to user. Passed by reference always.

DETAILS

No additional details. See Show_Trim_Poly()

Main Index
Brief Index      Full Index      I.M. Functions