Skip to content

editor › Globals › CellOrnamentFactory

Class: CellOrnamentFactory

Build and applies the Ornament for the cell visualization. The Ornament is loaded from a svg

Hierarchy

  • CellOrnamentFactory

Index

Properties

Methods

Properties

Static Private Readonly cellSvg

▪ cellSvg: "5a58d6d54b83c20e84cde3d4/cellGeneric" = "5a58d6d54b83c20e84cde3d4/cellGeneric"

Defined in src/modules/kyub.core.cell/src/CellOrnamentFactory.ts:22

The svg is placed in assetDb/defaultOrnaments/resources/ornaments/cellGeneric. The hex code is generated by the db

Methods

Static Private _getPositionAndAngle

▸ _getPositionAndAngle(cell: CellMembrane, surface: MeshSurfaceAnchor, plate: Plate): object

Defined in src/modules/kyub.core.cell/src/CellOrnamentFactory.ts:59

Parameters:

Name Type
cell CellMembrane
surface MeshSurfaceAnchor
plate Plate

Returns: object

position and angle in Ornament Coords

  • angle: number

  • position: Vector3


Static build

▸ build(cell: CellMembrane, surface: MeshSurfaceAnchor, plate: Plate): Promise‹Ornament›

Defined in src/modules/kyub.core.cell/src/CellOrnamentFactory.ts:24

Parameters:

Name Type
cell CellMembrane
surface MeshSurfaceAnchor
plate Plate

Returns: Promise‹Ornament›