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