Rebuild

The rebuild tools.

Example

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

    -- Create some geometry with a hole to fill 
    
ellipse = project.Geometry:AddEllipse(cf.Point(), 2, 2)
rectangle = project.Geometry:AddRectangle(cf.Point(), 1, 1)
subtract = project.Geometry:Subtract(ellipse, {rectangle})

    -- Convert the geometry to primitive before it can be rebuild
    
geometry = subtract:ConvertToPrimitive()

    -- Find one of the inner edges to construct an edge loop to fill
    
centreEdge = geometry.Edges:ClosestTo(cf.Point())
edgeLoop = project.Geometry.Find:EdgeLoop({centreEdge})

    -- Fill the hole with the found inner edge loop
    
project.Geometry.Rebuild:FillHole(edgeLoop)

Usage locations (object properties)

The following objects have properties using the Rebuild object:

Property List

FillHoleSettings
The settings to be used during the hole filling operation. (Read only FillHoleSettings)
Type
The object type string. (Read only string)

Method List

FillHole (edges List of Edge)
Fill the hole using the specified bounding edges.

Property Details

FillHoleSettings
The settings to be used during the hole filling operation.
Type
FillHoleSettings
Access
Read only
Type
The object type string.
Type
string
Access
Read only

Method Details

FillHole (edges List of Edge)
Fill the hole using the specified bounding edges.
Input Parameters
edges(List of Edge)
The list of edges forming a closed loop, which defines the hole which must be filled.