Synopsis
PDX_MSGT occt_GDXToOCCT(long option, int model, char *file)
Purpose
Convert GDX model to Open CASCADE Technology shape file
Description
A single GDX solid or GDX face in the specified model will be mapped to the Open CASCADE Technology brep format. Besides the options below, there are 2 more options (tolerances) available via mda_SetTol2. The first is "OCCT_PARM_CURVE_TOL" which controls the tolerance to use when generating parameter curves. If using Open CASCADE parameter curves, the default value for this tolerance is Precision::Confusion (1.0e-7). If not using Open CASCADE parameter curves, the default value for this tolerance is 10 times the GDX_MODEL_VAR native precision. The other is "OCCT_SLOPPY_TOL" which controls the tolerance to use for Open CASCADE sloppiness. If not specified a value of 10 times the GDX_MODEL_VAR native precision will be used.
Input
option
OCCT_CONVERT_TO_ANALYTIC
Convert all surfaces and curves to analytic before processing.
OCCT_CONVERT_TO_NURB
Convert all surfaces and curves to nurb before processing.
OCCT_GENERATE_PARAMETER_CURVES
Generate parameter curves before processing. If not specified, parameter curves will be generated by Open CASCADE Technology.
OCCT_ADD_POLES
Add edge at singularity in surface to close parameter loop. Must be used in conjuction with the OCCT_GENERATE_PARAMETER_CURVES option.
OCCT_BOUND_GEOMETRY
Create trimmed curve for unbounded curve and rectangular trimmed surface for unbounded surface.
OCCT_FIX_SHAPE
Call Open CASCADE Technology ShapeFix tool after processing to get a valid shape. Note this may crash and may or may not produce a valid shape.
OCCT_USE_DEFAULT_TOLERANCE
Use the Open CASCADE Technology Precision::Confusion (1.0e-7) for tolerances when creating faces, edges and vertices. If not specified the GDX_MODEL_VAR native precision will be used. If no GDX_MODEL_VAR found, the default GDX value of 0.001 will be used.
OCCT_MODEL_PARM_SAME_DEGREE
Force parameter curve to be the same degree as model curve
OCCT_DEGREE_1_PARM
Generate degree 1 parameter curves
OCCT_VERBOSE
Output progress messages to standard out
OCCT_BINARY
Save as binary
OCCT_OCAF
Save as cbf
model
GDX model to process
file
Open CASCADE Technology shape file to create
Return
OCCT_NOERR or error