GeometryRepair

A grouping of various geometry repair tools.

Example

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

cuboid = project.Contents.Geometry:AddCuboid(cf.Point(0,0,0),1,1,1)
primitive = cuboid:ConvertToPrimitive()

    -- Retrieve the RemoveSmallEdgesEnabled repair parts setting

removeSmallEdgesEnabled = project.Contents.Geometry.Repair.RepairPartsSettings.RemoveSmallEdgesEnabled

    -- Repair the geometry primitive

project.Contents.Geometry.Repair:RepairParts({primitive})

Inheritance

The GeometryRepair object is derived from the Object object.

Usage locations

The GeometryRepair object can be accessed from the following locations:

Property List

Label
The object label. (Read/Write string)
RemoveSmallFeaturesSettings
The settings to be used while doing the remove small features operation. (Read only RemoveSmallFeaturesSettings)
RepairAndSewFacesSettings
The settings to be used while doing the repair and sew faces operation. (Read only RepairAndSewFacesSettings)
RepairEdgesSettings
The settings to be used while doing the repair edges operation. (Read only RepairEdgesSettings)
RepairPartsSettings
The settings to be used while doing the repair part operation. (Read only RepairPartsSettings)
SimplifyPartRepresentationSettings
The settings to be used while doing the simplify part representation operation. (Read only SimplifyPartRepresentationSettings)
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.)
RemoveSmallFeatures (geometrylist List of Geometry)
Removes the small features of the specified geometry parts.
RepairAndSewFaces (geometrylist List of Geometry)
Repair and sew the faces of the specified geometry parts. (Returns a List of RepairAndSewFaces object.)
RepairEdges (geometrylist List of Geometry)
Repair the edges of the specified geometry parts.
RepairParts (geometrylist List of Geometry)
Repair the specified geometry parts. (Returns a List of RepairPart object.)
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.
SimplifyParts (geometrylist List of Geometry)
Simplify the representation of the specified geometry parts.

Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

Property Details

Label
The object label.
Type
string
Access
Read/Write
RemoveSmallFeaturesSettings
The settings to be used while doing the remove small features operation.
Type
RemoveSmallFeaturesSettings
Access
Read only
RepairAndSewFacesSettings
The settings to be used while doing the repair and sew faces operation.
Type
RepairAndSewFacesSettings
Access
Read only
RepairEdgesSettings
The settings to be used while doing the repair edges operation.
Type
RepairEdgesSettings
Access
Read only
RepairPartsSettings
The settings to be used while doing the repair part operation.
Type
RepairPartsSettings
Access
Read only
SimplifyPartRepresentationSettings
The settings to be used while doing the simplify part representation operation.
Type
SimplifyPartRepresentationSettings
Access
Read only
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.
RemoveSmallFeatures (geometrylist List of Geometry)
Removes the small features of the specified geometry parts.
Input Parameters
geometrylist(List of Geometry)
The list of geometry to be cleaned.
RepairAndSewFaces (geometrylist List of Geometry)
Repair and sew the faces of the specified geometry parts.
Input Parameters
geometrylist(List of Geometry)
The list of geometry that must be repaired.
Return
List of RepairAndSewFaces
void.
RepairEdges (geometrylist List of Geometry)
Repair the edges of the specified geometry parts.
Input Parameters
geometrylist(List of Geometry)
The list of geometry that must be repaired.
RepairParts (geometrylist List of Geometry)
Repair the specified geometry parts.
Input Parameters
geometrylist(List of Geometry)
The list of geometry that must be repaired.
Return
List of RepairPart
void.
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.
SimplifyParts (geometrylist List of Geometry)
Simplify the representation of the specified geometry parts.
Input Parameters
geometrylist(List of Geometry)
The list of geometry that must be simplified.

Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
A table containing the default properties.