Skip to content

editorGlobalsLegacyAssemblyConceptualizer

Class: LegacyAssemblyConceptualizer

This class tries to re-create IModelElements based on a "legacy" assembly consisting out of "normal" PhysicalObjects. It can also adapt the IModelElements to changes in the plates.

This class should not be used, as in: the high level goal is that all tools work on the mesh directly, so this is just an in-between solution while we upgrade.

Hierarchy

  • LegacyAssemblyConceptualizer

Index

Methods

Methods

Static Private _conceptualizePlates

_conceptualizePlates(platesWithoutModelElements: any, assembly: any): Plate‹›[]

Defined in src/model/data/Concepts/Utilities/LegacyAssemblyConceptualizer.ts:69

Filters out for "normal" (not Reinforcement/Asset) Plates and tries to transform them into a half edge mesh

Parameters:

Name Type Description
platesWithoutModelElements any -
assembly any -

Returns: Plate‹›[]


Static Private _ensureSurfaceDisplayAnnotations

_ensureSurfaceDisplayAnnotations(mesh: any, meshImplementation: any, platesUsedForImplementation: any): void

Defined in src/model/data/Concepts/Utilities/LegacyAssemblyConceptualizer.ts:53

To ensure the current texture offsets from the plates are transferred to the mesh, we make sure a surface display annotation exists for each surface (so it won't be created later when realizing when the original plate identity is lost)

Parameters:

Name Type Description
mesh any -
meshImplementation any -
platesUsedForImplementation any -

Returns: void


Static Private _meshImplementationFromPlates

_meshImplementationFromPlates(plates: any): HalfEdgeMeshImplementation

Defined in src/model/data/Concepts/Utilities/LegacyAssemblyConceptualizer.ts:104

Parameters:

Name Type
plates any

Returns: HalfEdgeMeshImplementation


Static destroyAndRecreateModelElements

destroyAndRecreateModelElements(assembly: Assembly): void

Defined in src/model/data/Concepts/Utilities/LegacyAssemblyConceptualizer.ts:25

Analyzes the physical objects and creates missing IModelElement

Parameters:

Name Type Description
assembly Assembly the assembly to analyze reconstruct them based on the plates.

Returns: void