Skip to content

editorGlobalsIMeshImplementation

Interface: IMeshImplementation

Describes the interface a mesh implementation must provide. A Mesh implementation is responsible for representing and maintaining the volumetric data, which has to be exposed as a half edge data structure consisting out of at least an array of MeshSurfaces.

Hierarchy

  • IMeshImplementation

Implemented by

Index

Methods

Methods

clear

clear(): void

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

Remove all geometry

Returns: void


getSurfaces

getSurfaces(): readonly MeshSurface[]

Defined in src/model/data/Concepts/Mesh/IMeshImplementation.ts:15

At any time between mesh operations, the mesh implementation should be able to represent the mesh as a two-manifold collection of surfaces. They may be changed/deleted/replaced arbitrarily as long as the correct meshChange event is emitted afterwards.

Returns: readonly MeshSurface[]


hasSurface

hasSurface(surface: MeshSurface): boolean

Defined in src/model/data/Concepts/Mesh/IMeshImplementation.ts:26

Used for quickly verifying validity. Should indicate whether the surface would be part of getSurfaces().

Parameters:

Name Type Description
surface MeshSurface -

Returns: boolean


isEmpty

isEmpty(): boolean

Defined in src/model/data/Concepts/Mesh/IMeshImplementation.ts:20

Used for quickly verifying validity. Should indicate whether getSurfaces() will return an array with length === 0.

Returns: boolean


isTwoManifold

isTwoManifold(): boolean

Defined in src/model/data/Concepts/Mesh/IMeshImplementation.ts:36

Whether or not this instance defines a two-manifold geometry.

Returns: boolean