Skip to content

@orillusion/core


Class: Navi3DMergeVertex

Defined in: src/math/navigation/Navi3DMergeVertex.ts:9

Utility that merges coincident vertices when building a navigation mesh from geometry.

Constructors

Constructor

new Navi3DMergeVertex(): Navi3DMergeVertex

Returns

Navi3DMergeVertex

Properties

vertex

vertex: Vector3[]

Defined in: src/math/navigation/Navi3DMergeVertex.ts:11

The vertex positions extracted from the source geometry.


indices

indices: number[]

Defined in: src/math/navigation/Navi3DMergeVertex.ts:13

The (possibly remapped) triangle indices into vertex.

Methods

merge()

merge(geometry, threshould?): this

Defined in: src/math/navigation/Navi3DMergeVertex.ts:16

Extracts vertices and indices from the geometry, merging vertices closer than the given threshold.

Parameters

geometry

GeometryBase

threshould?

number = 0.1

Returns

this


parse()

parse(geometry): this

Defined in: src/math/navigation/Navi3DMergeVertex.ts:49

Extracts vertices and indices from the geometry without merging any vertices.

Parameters

geometry

GeometryBase

Returns

this

Released under the MIT License