Skip to content

Shapemetry API


Shapemetry API / Vertex

Class: Vertex

Defined in: nurbsBrep/topo/Vertex.ts:11

A topological vertex: a single 3D location plus a tolerance ball that captures how close two coincident vertices may sit and still be the same.

The object owns its data directly — references in the rest of the graph (edge endpoints, etc.) point at this instance, not at a numeric handle.

Constructors

Constructor

new Vertex(position, tolerance?): Vertex

Defined in: nurbsBrep/topo/Vertex.ts:16

Parameters

position

Point

tolerance?

number = 1e-7

Returns

Vertex

Properties

index

readonly index: number

Defined in: nurbsBrep/topo/Vertex.ts:12


position

position: Point

Defined in: nurbsBrep/topo/Vertex.ts:13


tolerance

tolerance: number

Defined in: nurbsBrep/topo/Vertex.ts:14

Methods

equals()

equals(other): boolean

Defined in: nurbsBrep/topo/Vertex.ts:23

Identity comparison: two references denote the same vertex.

Parameters

other

Vertex

Returns

boolean