GeometryRepair

A grouping of various geometry repair tools.

Example

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

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

    -- Retrieve the RemoveSmallEdgesEnabled repair parts setting
    
removeSmallEdgesEnabled = project.Geometry.Repair.RepairPartsSettings.RemoveSmallEdgesEnabled

    -- Repair the geometry primitive

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

Usage locations (object properties)

The following objects have properties using the GeometryRepair object:

Property List

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

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.
RepairEdges (geometrylist List of Geometry)
Repair the edges of the specified geometry parts.
RepairParts (geometrylist List of Geometry)
Repair the specified geometry parts.
SimplifyParts (geometrylist List of Geometry)
Simplify the representation of the specified geometry parts.

Property Details

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

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