# RepairPartsSettings

A settings object for repairing geometry parts.

## Example

app = cf.GetApplication()
project = app:NewProject()

-- Get the settings for repairing geometry parts

repairPartsSettings = project.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 RepairSettings object.

## Usage locations (object properties)

The following objects have properties using the RepairPartsSettings object:

## 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 Expression)
MaxSmallEdgeLength
The maximum length of small edges. This property is only valid if RemoveSmallEdgesEnabled is true. (Read/Write Expression)
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 SimplifyPartSettings)
SimplifyToBlends
The options for simplifying surfaces to blends. (Read/Write RepairPartSimplifyBlendTypeEnum)
SmootheningAngularTolerance
The angular tolerance for geometry smoothening (degrees). This property is only valid if RemoveDiscontinuitiesEnabled is true. (Read/Write Expression)
SpecifiedEdgeRepairTolerance
The specified edge repair tolerance. This property is only valid if SpecifyEdgeToleranceEnabled is true. (Read/Write Expression)
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

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 table)
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.

## 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
Expression
Access
MaxSmallEdgeLength
The maximum length of small edges. This property is only valid if RemoveSmallEdgesEnabled is true.
Type
Expression
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
SimplifyPartSettings
Access
SimplifyToBlends
The options for simplifying surfaces to blends.
Type
RepairPartSimplifyBlendTypeEnum
Access
SmootheningAngularTolerance
The angular tolerance for geometry smoothening (degrees). This property is only valid if RemoveDiscontinuitiesEnabled is true.
Type
Expression
Access
SpecifiedEdgeRepairTolerance
The specified edge repair tolerance. This property is only valid if SpecifyEdgeToleranceEnabled is true.
Type
Expression
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

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 properties table.
RestoreDefaults ()
Restores all the settings to their default values.
SetProperties (properties table)
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(table)
A table of properties defining the new state of the object.