FaceEntity

class Communicator.Selection.FaceEntity()

Encapsulates a face selection.


Methods

forJson

FaceEntity.forJson()
Deprecated

Use toJson instead.

Return type

Object

getBounding

FaceEntity.getBounding()

Gets the bounding box for the face entity

Return type

Box()

Returns

Bounding box for the face entity

getCadFaceBits

FaceEntity.getCadFaceBits()

Gets the cad face bits for the selection Point.

Return type

number

Returns

The bits set on the cad face.

getCadFaceIndex

FaceEntity.getCadFaceIndex()

Gets the cad face index for the selection Point.

Return type

number

Returns

The index for the cad face.

getNormal

FaceEntity.getNormal()

Gets the face normal for the selection Point.

Return type

Point3()

Returns

Face normal for the selection position if it can be determined.

getPosition

FaceEntity.getPosition()

Gets the world space position of the selection point.

Return type

Point3()

Returns

World space position of the selection point if it can be determined.

isCappingGeometry

FaceEntity.isCappingGeometry()

Returns whether or not this face entity is capping geometry or not.

Return type

boolean

Returns

True if this face entity is capping geometry and false otherwise.

isProximityFace

FaceEntity.isProximityFace()

Returns whether or not this face entity was selected by proximity or was instead selected dead-on.

Return type

boolean

Returns

True if this face entity was selected by proximity and false otherwise.

overlayIndex

FaceEntity.overlayIndex()
Return type

OverlayIndex

Returns

The index of the overlay the entity belongs to.

toJson

FaceEntity.toJson()

Creates an object ready for JSON serialization.

Return type

Object

Returns

The prepared object.

static construct

FaceEntity.construct(obj)
Deprecated

Use fromJson instead.

Arguments
  • obj (any()) –

Return type

FaceEntity()

static fromJson

FaceEntity.fromJson(objData)

Creates a new FaceEntity from an object given by toJson

Arguments
  • objData (any()) – An object given by toJson

Return type

FaceEntity()

Returns

The prepared object.