# RepairPartsSettings

A settings object for repairing geometry parts.

## Example

application = cf.Application.GetInstance()
project = application:NewProject()

-- Get the settings for repairing geometry parts

repairPartsSettings = project.Contents.Geometry.Repair.RepairPartsSettings

-- Get the setting for the upper bound on deviation between original and repaired geometry

deviation = repairPartsSettings.DeviationUpperBound

## Inheritance

The RepairPartsSettings object is derived from the Object object.

## Usage locations

The RepairPartsSettings object can be accessed from the following locations:

## Property List

This option enables a more thorough self-intersection removal process. This property is only valid if RemoveSelfIntersectionsEnabled is true. (Read/Write boolean)
DeviationUpperBound
The upper bound on deviation between original and repaired geometry. (Read/Write ParametricExpression)
Label
MaxSmallEdgeLength
The maximum length of small edges. This property is only valid if RemoveSmallEdgesEnabled is true. (Read/Write ParametricExpression)
RemoveDiscontinuitiesEnabled
The option to remove discontinuities. (Read/Write boolean)
RemoveSelfIntersectionsEnabled
The option to remove self-intersections. (Read/Write boolean)
RemoveSmallEdgesEnabled
The option to remove small edges during the repair operation. (Read/Write boolean)
SimplifyGeometryDuringCleaningEnabled
The option to simplify geometry during repairing. (Read/Write boolean)
SimplifyPartSettings
The simplify part settings. These properties are only valid if SimplifyGeometryDuringCleaningEnabled is true. (Read only SimplifyPartRepresentationSettings)
SimplifyToBlends
The options for simplifying surfaces to blends. (Read/Write SimplifyBlendTypeEnum)
SmootheningAngularTolerance
The angular tolerance for geometry smoothening (degrees). This property is only valid if RemoveDiscontinuitiesEnabled is true. (Read/Write ParametricExpression)
SpecifiedEdgeRepairTolerance
The specified edge repair tolerance. This property is only valid if SpecifyEdgeToleranceEnabled is true. (Read/Write ParametricExpression)
SpecifyEdgeToleranceEnabled
The option to specify an edge repair tolerance. (Read/Write boolean)
SuppressSurfaceModificationsEnabled
The option to suppress surface modifications. (Read/Write boolean)
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

This option enables a more thorough self-intersection removal process. This property is only valid if RemoveSelfIntersectionsEnabled is true.
Type
boolean
Access
DeviationUpperBound
The upper bound on deviation between original and repaired geometry.
Type
ParametricExpression
Access
Label
The object label.
Type
string
Access
MaxSmallEdgeLength
The maximum length of small edges. This property is only valid if RemoveSmallEdgesEnabled is true.
Type
ParametricExpression
Access
RemoveDiscontinuitiesEnabled
The option to remove discontinuities.
Type
boolean
Access
RemoveSelfIntersectionsEnabled
The option to remove self-intersections.
Type
boolean
Access
RemoveSmallEdgesEnabled
The option to remove small edges during the repair operation.
Type
boolean
Access
The option to repair bad face-face errors.
Type
boolean
Access
SimplifyGeometryDuringCleaningEnabled
The option to simplify geometry during repairing.
Type
boolean
Access
SimplifyPartSettings
The simplify part settings. These properties are only valid if SimplifyGeometryDuringCleaningEnabled is true.
Type
SimplifyPartRepresentationSettings
Access
SimplifyToBlends
The options for simplifying surfaces to blends.
Type
SimplifyBlendTypeEnum
Access
SmootheningAngularTolerance
The angular tolerance for geometry smoothening (degrees). This property is only valid if RemoveDiscontinuitiesEnabled is true.
Type
ParametricExpression
Access
SpecifiedEdgeRepairTolerance
The specified edge repair tolerance. This property is only valid if SpecifyEdgeToleranceEnabled is true.
Type
ParametricExpression
Access
SpecifyEdgeToleranceEnabled
The option to specify an edge repair tolerance.
Type
boolean
Access
SuppressSurfaceModificationsEnabled
The option to suppress surface modifications.
Type
boolean
Access
Type
The object type string.
Type
string
Access

## 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.