Brief Index      Full Index      Events Index      I.M. Reference

Delete_Trim

Functions

void Delete_Trim (int index)
 

Detailed Description

Function Documentation

void Delete_Trim ( int  index)

Deletes a trim object from the trim list.

Parameters
index- Offset of the particular trim object in the trim list.

DETAILS

Delete_Trim() works like Delete_Segment, deleting a node on the trim list and its contents.

This call is not legal except when there is a valid NURBS Surface that has been opened with a call to Open_Geometry.

Trimming objects are prepended to the front of the trim list, meaning that trim list offset 0 is the most recently inserted. When a trim is deleted, all later items in the list fill in. Thus, the following snippet of pseudocode would be one way to remove all trims from a nurbs surface:


    Open_Geometry(surface_key)
        do {
            Show_Trim_Count( &count )
            if( !count )
                break
            Delete_Trim(0)
        } forever
    Close_Geometry()

NOTES

Since there is currently no way to edit NURBS surfaces' trim objects in place, the only way to change any aspects of how a surface is trimmed is to delete and reinsert

RESTRICTIONS

See Also
Open_Trim, Close_Trim, Delete_Trim, Set_Trim_Operation, Create_Trim_Collection, Trim_NURBS_Surface_By_Curve, Trim_NURBS_Surface_By_Poly, Show_Trim_Count, Show_Trim_Curve, Show_Trim_Curve_Count, Show_Trim_Operation, Show_Trim_Type, Show_Trim_Poly, Show_Trim_Poly_Count

Brief Index      Full Index      Events Index      I.M. Reference