Skip to content

editorGlobalsSurfacePointsCache

Class: SurfacePointsCache

Hierarchy

SurfacePointsCache

Index

Constructors

Properties

Methods

Constructors

constructor

+ new SurfacePointsCache(mesh: Mesh): SurfacePointsCache

Inherited from MeshCache.constructor

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:9

Parameters:

Name Type
mesh Mesh

Returns: SurfacePointsCache

Properties

Private allPoints

allPoints: Map‹MeshSurface‹›, ReadonlyArray‹any›› = new Map()

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:8


Private holes

holes: Map‹MeshSurface‹›, ReadonlyArray‹ReadonlyArray‹any››› = new Map>()

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:7


Protected Readonly mesh

mesh: Mesh

Inherited from MeshCache.mesh

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:8


Private outlines

outlines: Map‹MeshSurface‹›, ReadonlyArray‹any›› = new Map()

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:6

Methods

Private _checkValid

_checkValid(): void

Inherited from MeshCache._checkValid

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:28

Throws an exception if this instance is outdated.

Note: Subclasses should call first call this method in order to ensure they do not operate on stale data.

Returns: void


destroy

destroy(): void

Inherited from MeshCache.destroy

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:14

Returns: void


getAllPoints

getAllPoints(surface: MeshSurface): readonly ReadonlyVector3[]

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:32

Parameters:

Name Type
surface MeshSurface

Returns: readonly ReadonlyVector3[]


getHoles

getHoles(surface: MeshSurface): ReadonlyArray‹readonly ReadonlyVector3[]›

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:21

Parameters:

Name Type
surface MeshSurface

Returns: ReadonlyArray‹readonly ReadonlyVector3[]›


getOutline

getOutline(surface: MeshSurface): readonly ReadonlyVector3[]

Defined in src/model/data/Concepts/Mesh/MeshCache/SurfacePointsCache.ts:10

Parameters:

Name Type
surface MeshSurface

Returns: readonly ReadonlyVector3[]


isValid

isValid(): boolean

Inherited from MeshCache.isValid

Defined in src/model/data/Concepts/Mesh/MeshCache/MeshCache.ts:18

Returns: boolean