A face is a topological part of a surface bounded by one or more wires. A face should have an explicit outer wire even if it corresponds to a naturally bounded surface such as a torus or a sphere.
new Face(
surface,outerWire?):Face
Creates a face on the given surface with an optional outer wire.
Surface of the face.
Optional outer boundary wire of the face.
Face
triangulation:
FaceTriangulation|null=null
Polygonal representation of the face.
The default value is null.
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the shape.
The default value is null.
string | null
set name(
name):void
Sets the name of the shape.
string | null
Shape name.
void
get outerWire():
Wire
Outer wire of the face.
Returns an empty wire if the face has no wires.
get surface():
Surface
Underlying surface of the face.
get type():
ShapeType
Type of the shape.
append(
wire):boolean
Appends a wire to the face.
Returns true if wire was added, or false if it is already present in the face.
Wire to append.
boolean
append(
wires):boolean
Appends wires to the face.
Returns true if all provided wires were added, or false if one or more wires are already present in the face. Already present wires are skipped.
Wire[]
Wires to append.
boolean