Functions | |
void | Delete_Trim (int index) |
Deletes a trim object from the trim list. More... | |
void Delete_Trim | ( | int | index | ) |
Deletes a trim object from the trim list.
index | - Offset of the particular trim object in 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