SimplifyPartRepresentationSettings
A settings object for simplifying part representation.
Example
application = cf.Application.GetInstance() project = application:NewProject() -- Get the settings for simplifying part representations simplifyPartsSettings = project.Contents.Geometry.Repair.SimplifyPartRepresentationSettings -- Get the setting for the geometry replacement tolerance tolerance = simplifyPartsSettings.OperatingPrecisionTolerance
Inheritance
The SimplifyPartRepresentationSettings object is derived from the Object object.
Usage locations
The SimplifyPartRepresentationSettings object can be accessed from the following locations:
- Properties
- GeometryRepair object has property SimplifyPartRepresentationSettings.
- RepairPartsSettings object has property SimplifyPartSettings.
Property List
- ConstrainSurfaceNormalsEnabled
- The option to ensure that smooth edges will remain smooth. (Read/Write boolean)
- ConvertSurfacesToBlends
- The options to converting surfaces to blends. (Read/Write SimplifyBlendTypeEnum)
- EdgeTolerance
- The specified edge tolerance. Only valid if SpecifyEdgeTolerance is true. (Read/Write ParametricExpression)
- Label
- The object label. (Read/Write string)
- MergeMultipleSPCurveSegmentsEnabled
- The option to merge multiple surface parameter curve segments to a single segment. (Read/Write boolean)
- OperatingPrecisionTolerance
- The tolerance for replacement geometry. (Read/Write ParametricExpression)
- ReduceAndTrimBGeometryEnabled
- The option to trim or simplify high-degree B-surfaces to cubic B-surfaces. (Read/Write boolean)
- SimplifyBCurvesEnabled
- The option to simplify B-curves to lines, circles or ellipses. (Read/Write boolean)
- SimplifyBSurfacesEnabled
- The option to simplify B-surfaces to planes, cylinders, cones, spheres or tori where possible. (Read/Write boolean)
- SimplifyRationalGeometryEnabled
- The option to simplify rational B-surfaces to non-rational B-surfaces. (Read/Write boolean)
- SimplifySPCurvesToConstantUVCurvesEnabled
- The option to simplify surface parameter curves to be constant in one parameter (U or V). (Read/Write boolean)
- SimplifySweptSpunSurfacesEnabled
- The option to simplify swept or spun surfaces to planes, cylinders, cones, spheres or tori. (Read/Write boolean)
- SpecifyEdgeToleranceEnabled
- The option to specify the edge tolerance to be used. (Read/Write boolean)
- SurfaceNormalTolerance
- The angular tolerance for constraining surface normals (degrees). Only valid if ConstrainSurfaceNormals is true. (Read/Write ParametricExpression)
- Type
- The object type string. (Read only string)
Method List
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity. (Returns a Object object.)
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- RestoreDefaults ()
- Restores all the settings to their default values.
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Static Function List
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object. (Returns a table object.)
Property Details
- ConstrainSurfaceNormalsEnabled
-
The option to ensure that smooth edges will remain smooth.
- Type
- boolean
- Access
- Read/Write
- ConvertSurfacesToBlends
- The options to converting surfaces to blends.
- Type
- SimplifyBlendTypeEnum
- Access
- Read/Write
- EdgeTolerance
-
The specified edge tolerance. Only valid if SpecifyEdgeTolerance is true.
- Type
- ParametricExpression
- Access
- Read/Write
- Label
- The object label.
- Type
- string
- Access
- Read/Write
- MergeMultipleSPCurveSegmentsEnabled
-
The option to merge multiple surface parameter curve segments to a single segment.
- Type
- boolean
- Access
- Read/Write
- OperatingPrecisionTolerance
- The tolerance for replacement geometry.
- Type
- ParametricExpression
- Access
- Read/Write
- ReduceAndTrimBGeometryEnabled
- The option to trim or simplify high-degree B-surfaces to cubic B-surfaces.
- Type
- boolean
- Access
- Read/Write
- SimplifyBCurvesEnabled
- The option to simplify B-curves to lines, circles or ellipses.
- Type
- boolean
- Access
- Read/Write
- SimplifyBSurfacesEnabled
- The option to simplify B-surfaces to planes, cylinders, cones, spheres or tori where possible.
- Type
- boolean
- Access
- Read/Write
- SimplifyRationalGeometryEnabled
- The option to simplify rational B-surfaces to non-rational B-surfaces.
- Type
- boolean
- Access
- Read/Write
- SimplifySPCurvesToConstantUVCurvesEnabled
- The option to simplify surface parameter curves to be constant in one parameter (U or V).
- Type
- boolean
- Access
- Read/Write
- SimplifySweptSpunSurfacesEnabled
- The option to simplify swept or spun surfaces to planes, cylinders, cones, spheres or tori.
- Type
- boolean
- Access
- Read/Write
- SpecifyEdgeToleranceEnabled
-
The option to specify the edge tolerance to be used.
- Type
- boolean
- Access
- Read/Write
- SurfaceNormalTolerance
- The angular tolerance for constraining surface normals (degrees). Only valid if ConstrainSurfaceNormals is true.
- Type
- ParametricExpression
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
Method Details
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity.
- Return
- Object
- The new (duplicated) entity.
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A table defining the properties.
- RestoreDefaults ()
- Restores all the settings to their default values.
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(Object)
- A table of properties defining the new state of the object.
Static Function Details
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object.
- Return
- table
- A table containing the default properties.