GeometryEntity

A geometry entity.

Example

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

    -- Create a cube
    
cube = project.Geometry:AddCuboid(cf.Point(0, 0, 0), 1, 1, 1)

    -- Retrieve the number of edges, faces and regions of the cube

edgeCount = cube.Edges.Count
faceCount = cube.Faces.Count
regionCount = cube.Regions.Count

Inheritance

The following objects are derived (specialisations) from the GeometryEntity object:

Usage locations (object properties)

The following objects have properties using the GeometryEntity object:

Property List

BoundingBox
A box indicating the bounding box of this entity. (Read only Box)
CentreOfGravity
A point indicating the centre of gravity of this entity. (Read only Point)
Faulty
Indicates whether the geometry entity has faults. (Read only boolean)
Suspect
Indicates whether the geometry entity is suspect. (Read only boolean)

Method List

SetNotSuspect ()
Reset the suspect setting on the geometry entity.

Property Details

BoundingBox
A box indicating the bounding box of this entity.
Type
Box
Access
Read only
CentreOfGravity
A point indicating the centre of gravity of this entity.
Type
Point
Access
Read only
Faulty
Indicates whether the geometry entity has faults.
Type
boolean
Access
Read only
Suspect
Indicates whether the geometry entity is suspect.
Type
boolean
Access
Read only

Method Details

SetNotSuspect ()
Reset the suspect setting on the geometry entity.