Skip to content

editorGlobalsSyncSingleMeshOperation

Class: SyncSingleMeshOperation

Hierarchy

SingleMeshOperation

SyncSingleMeshOperation

MergeCoplanarSurfacesOperation

Index

Constructors

Properties

Methods

Constructors

constructor

+ new SyncSingleMeshOperation(mesh: Mesh): SyncSingleMeshOperation

Inherited from SingleMeshOperation.constructor

Overrides MeshOperation.constructor

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

Parameters:

Name Type
mesh Mesh

Returns: SyncSingleMeshOperation

Properties

Protected mesh

mesh: Mesh

Inherited from SingleMeshOperation.mesh

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

Methods

Protected Abstract _executeOnHalfEdgeImpl

_executeOnHalfEdgeImpl(implementation: HalfEdgeMeshImplementation): HalfEdgeMeshImplementation[]

Defined in src/model/data/Concepts/Mesh/SyncSingleMeshOperation.ts:24

Parameters:

Name Type
implementation HalfEdgeMeshImplementation

Returns: HalfEdgeMeshImplementation[]


Protected _executeOnSingleSurfaceMeshImplementation

_executeOnSingleSurfaceMeshImplementation(implementation: SingleSurfaceMeshImplementation): SingleSurfaceMeshImplementation[]

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

Parameters:

Name Type
implementation SingleSurfaceMeshImplementation

Returns: SingleSurfaceMeshImplementation[]


Protected _getAffectedMeshes

_getAffectedMeshes(): Mesh[]

Inherited from SingleMeshOperation._getAffectedMeshes

Overrides MeshOperation._getAffectedMeshes

Defined in src/model/data/Concepts/Mesh/SingleMeshOperation.ts:16

Returns: Mesh[]


Protected _getSingleMesh

_getSingleMesh(meshes: MeshAndImplementation[]): MeshAndImplementation

Inherited from SingleMeshOperation._getSingleMesh

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

Parameters:

Name Type
meshes MeshAndImplementation[]

Returns: MeshAndImplementation


Private _operationCallback

_operationCallback(mesh: Mesh, meshImplementation: IMeshImplementation): IMeshImplementation

Defined in src/model/data/Concepts/Mesh/SyncSingleMeshOperation.ts:43

Parameters:

Name Type
mesh Mesh
meshImplementation IMeshImplementation

Returns: IMeshImplementation


Protected _performOperation

_performOperation(meshes: MeshAndImplementation[]): [IMeshOperationResult]

Overrides MeshOperation._performOperation

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

Parameters:

Name Type
meshes MeshAndImplementation[]

Returns: [IMeshOperationResult]


execute

execute(): PromiseIMeshOperationResult[]›

Inherited from MeshOperation.execute

Defined in src/model/data/Concepts/Mesh/MeshOperation.ts:47

Performs the operation.

Returns: PromiseIMeshOperationResult[]›

Promise that will resolve to an array of IMeshOperationResults, each result being related to one of the affected meshes.


executeSync

executeSync(): void

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

If you want to perform this operation synchronously and don't care about meshOperations and changeEvents, use this.

Returns: void


getId

getId(): string

Inherited from MeshOperation.getId

Defined in src/model/data/Concepts/Mesh/MeshOperation.ts:30

this is used to identify for which operation a UI progress bar is being shown, collisions are unlikely and have no severe consequences.

Returns: string

a random string-identifier that should be unique across all MeshOperations


hasBeenStarted

hasBeenStarted(): boolean

Inherited from MeshOperation.hasBeenStarted

Defined in src/model/data/Concepts/Mesh/MeshOperation.ts:37

Returns: boolean

true, if this operation has been started execution