Skip to content

editorGlobalsMeshPoint

Class: MeshPoint

Represents a (corner) point of a Mesh.

Hierarchy

  • MeshPoint

Index

Constructors

Properties

Methods

Constructors

constructor

+ new MeshPoint(position: ReadonlyVector3): MeshPoint

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:13

Parameters:

Name Type
position ReadonlyVector3

Returns: MeshPoint

Properties

Private outgoingEdges

outgoingEdges: SetMeshHalfEdge = new Set()

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:13


Private position

position: Vector3 = new Vector3()

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:12

Methods

_addOutgoingEdge

_addOutgoingEdge(edge: MeshHalfEdge): void

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:90

ONLY TO BE CALLED BY MESHHALFEDGE Expects the edge to already have this as startPoint.

Parameters:

Name Type Description
edge MeshHalfEdge -

Returns: void


_removeOutgoingEdge

_removeOutgoingEdge(edge: MeshHalfEdge): void

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:100

ONLY TO BE CALLED BY MESHHALFEDGE Expect the edge to already have a new startPoint.

Parameters:

Name Type Description
edge MeshHalfEdge -

Returns: void


equals

equals(otherPoint: MeshPoint, epsilon: number): boolean

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:75

Parameters:

Name Type Default Description
otherPoint MeshPoint - -
epsilon number Config.get("modelLimits.maximumPositionEqualityDistance", null) the epsilon for which two vectors are considered the same

Returns: boolean

whether this and another point have the same position (but not necessarily position identities)


getAllAdjacentSurfaces

getAllAdjacentSurfaces(): MeshSurface[]

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:53

Return every surface this point belongs to by checking the surfaces of its outgoing edges.

Returns: MeshSurface[]


getOutgoingEdges

getOutgoingEdges(): MeshHalfEdge[]

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:46

Return the halfedges that have this point as startpoint.

Returns: MeshHalfEdge[]


getPosition

getPosition(target: Vector3‹›): Vector3

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:23

Parameters:

Name Type Default Description
target Vector3‹› new Vector3() optional vector to copy the values to

Returns: Vector3

a clone of the point's position


getReadonlyPosition

getReadonlyPosition(): ReadonlyVector3

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:31

Returns: ReadonlyVector3

the actual point's position


isMemberOfSurface

isMemberOfSurface(surface: MeshSurface): boolean

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:61

Conceptually better than searching all points of the surface because #outgoingEdges < #surfacePoints.

Parameters:

Name Type Description
surface MeshSurface -

Returns: boolean


setPosition

setPosition(newPosition: ReadonlyVector3): void

Defined in src/model/data/Concepts/Mesh/MeshPoint.ts:39

Sets the new position by copying newPosition

Parameters:

Name Type Description
newPosition ReadonlyVector3 -

Returns: void