Synopsis
PDX_MSGT gdx_ConvertSolidToCBS(long option, MDA_PTR gdx_solid_db_ptr, int model, MDA_COUNT *num_of_curve_faces, void *gdx_curve_bounded_surfs)
Purpose
Convert the faces in a GDX solid to GDX Curve Bounded Surface entities
Description
Given a GDX solid entity, converts the GDX face entities to GDX curve bounded face entities.
The GDX solid entity and all its subordinate entities must be valid definitions.
Input
option
GDX_COMMIT
Commit the GDX Curve Bounded Surfaces to the database and return the MDA_PTR database pointers. Otherwise the memory structure pointer for the new GDX Curve Bounded Surface entities is returned.
GDX_REMDUPEDGE
Remove any duplicate edges (Edges with the same Vertex end points and opposite sense). This option will remove the edges that lie along the seams of closed surfaces and thus remove the seam edge curves. This may result in a change in the number of boundaries (Loops to Composite Edge Curves). Potentially a Curve Bounded Surface may result with the only boundary being the original boundary of the surface (num_of_bounds == 0 && first_is_outer).
GDX_CHKSENSE
Check the sense of the model and parameter space curves relative to the surface and update when in error
GDX_KEEPNORMAL
Force the CBS normal to be the same as the original topological normal.
gdx_solid_db_ptr
The GDX solid entity database pointer
model
The model number for creation of the new GDX curve bounded face entities.
Output
num_of_curve_faces
The count of GDX Curve Bounded Surface entities
gdx_curve_bounded_surfs
The new GDX Curve Bounded Surface entity structures or database pointers
Return
GDX_NOERR
GDX_ENTITYNOTSOLID
GDX_NOMEMORY
Low level error return
.fi