Type alias ModelCloneOptions

ModelCloneOptions: { createInstance?: boolean; nodeNamingStrategy?: NodeNamingStrategy; parentNode?: TransformNode; rootNodeName?: string; show?: boolean; tagNamingStrategy?: TagNamingStrategy }

Type declaration

  • Optional createInstance?: boolean

    true: Creates "InstancedMeshes" from meshes of the base model instead of "independent" meshes. Most of the data, especially the geometry and material assignment is shared, only the transformation data (e.g. position) can be adjusted.
    Activating this flag can lead to huge performance improvements, especially when working with a large amount of clones.

  • Optional nodeNamingStrategy?: NodeNamingStrategy
  • Optional parentNode?: TransformNode

    Optionally set a parent node for the cloned model directly.
    Coordinate system handedness of the cloned model root node will be adapted to fit the handedness of this parent node.

    • parentNode left handed (Babylon.js default): leave imported model root node as is
    • parentNode right handed (e.g. when adding to existing structure): flip handedness, resetting rotation to 0/0/0 and scaling to 1/1/1
  • Optional rootNodeName?: string

    Optinally overwrite name of root node.
    This is especially useful for improving the readability of the node structure via the inspector.
    This setting has priority over the nodeNamingStrategy.

  • Optional show?: boolean

    Indicates if cloned model should be shown immediately

    Default: true

  • Optional tagNamingStrategy?: TagNamingStrategy

Generated using TypeDoc