HC_Delete_Trim

void HC_Delete_Trim(int index)
void HC_Delete_Trim(int index)

Deletes a trim object from the trim list.

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()

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

HC_Open_Trim, HC_Close_Trim, HC_Delete_Trim, HC_Set_Trim_Operation, HC_Create_Trim_Collection, HC_Trim_NURBS_Surface_By_Curve, HC_Trim_NURBS_Surface_By_Poly, HC_Show_Trim_Count, HC_Show_Trim_Curve, HC_Show_Trim_Curve_Count, HC_Show_Trim_Operation, HC_Show_Trim_Type, HC_Show_Trim_Poly, HC_Show_Trim_Poly_Count

Parameters

index: Offset of the particular trim object in the trim list.