bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class BabylonMesh

    Index

    Constructors

    edit

    • Merges multiple meshes into one

      Parameters

      Returns Mesh

      a new mesh

      merge

    • Convers mesh to flat shaded mesh

      Parameters

      Returns Mesh

      a new mesh

      convert to flat shaded

    • Clones the mesh

      Parameters

      Returns Mesh

      a new mesh

      clone

      true

    • Clones the mesh to positions

      Parameters

      Returns Mesh[]

      a new mesh

      clone to positions

      true

      true

    get

    • Get the parent of the drawn mesh

      Parameters

      Returns Node

      Parent mesh

      parent

    • Change the pickable property of the drawn mesh

      Parameters

      Returns void

      check collisions

    • Change the pickable property of the drawn mesh

      Parameters

      Returns boolean

      pickable

    • Gets meshes that have names which contain a given text

      Parameters

      Returns AbstractMesh[]

      meshes where name contains

    • Gets child meshes

      Parameters

      Returns AbstractMesh[]

      child meshes

    • Gets meshes of id

      Parameters

      Returns AbstractMesh[]

      meshes by id

    • Gets mesh of id

      Parameters

      Returns AbstractMesh

      mesh by id

    • Gets mesh of unique id

      Parameters

      Returns AbstractMesh

      mesh by unique id

    • Get the id of the drawn mesh

      Parameters

      Returns string

      id

    • Get the unique id of the drawn mesh

      Parameters

      Returns number

      unique id number

      unique id

    • Gets the vertices as polygon points. These can be used with other construction methods to create meshes. Mesh must be triangulated.

      Parameters

      Returns Point3[][]

      vertices as polygon points

    • Gets the name of babylon mesh

      Parameters

      Returns string

      name

    • Gets the material of babylon mesh

      Parameters

      Returns Material

      material

    • Gets the position as point of babylonjs mesh

      Parameters

      Returns Point3

      point

      position

    • Gets the absolute position in the world as point of babylonjs mesh

      Parameters

      Returns Point3

      point

      absolute position

    • Gets the rotation vector of babylonjs mesh

      Parameters

      Returns Point3

      rotation

    • Gets the scale vector of babylonjs mesh

      Parameters

      Returns Point3

      scale

    instance

    • Creates mesh instance for optimised rendering. This method will check if mesh contains children and will create instances for each child. These are optimised for max performance when rendering many similar objects in the scene. This method returns instances as childrens in a new mesh. If the mesh has children, then every child goes a mesh instance.

      Parameters

      Returns void

      create and transform

      true

    • Creates mesh instance for optimised rendering. This method will check if mesh contains children and will create instances for each child. These are optimised for max performance when rendering many similar objects in the scene. This method returns instances as childrens in a new mesh. If the mesh has children, then every child goes a mesh instance.

      Parameters

      Returns Mesh

      babylon mesh

      create and transform

      true

    • Creates mesh instance. These are optimised for max performance when rendering many similar objects in the scene. If the mesh has children, then every child gets a mesh instance.

      Parameters

      Returns Mesh

      create

      true

    intersects

    • Checks wether mesh intersects another mesh mesh

      Parameters

      Returns boolean

      mesh

    • Checks wether mesh intersects point

      Parameters

      Returns boolean

      point

    memory

    • Disposes drawn mesh object from the scene

      Parameters

      • inputs: BabylonMeshDto

        Contains BabylonJS mesh that should be disposed

      Returns void

      dispose

    move

    • Moves babylonjs mesh backward in local space

      Parameters

      Returns void

      backward

    • Rotates babylonjs mesh around local y axis

      Parameters

      Returns void

      yaw

    • Rotates babylonjs mesh around local x axis

      Parameters

      Returns void

      pitch

    • Rotates babylonjs mesh around local z axis

      Parameters

      Returns void

      roll

    set

    • Change the parent of the drawn mesh

      Parameters

      Returns void

      parent

    • Force mesh to be pickable by pointer move events, default is false as it is performance heavy

      Parameters

      Returns void

      enable pointer move events

    • Make mesh ignore pointer move events, default is false

      Parameters

      Returns void

      disable pointer move events

    • Change the id of the drawn mesh

      Parameters

      Returns void

      id

    • Change the name of the drawn mesh

      Parameters

      Returns void

      name

    • Change the material of the drawn mesh

      Parameters

      Returns void

      material

    • Scales the BabylonJS mesh or instanced mesh in place by a given factor

      Parameters

      Returns void

      scale in place

    updates

    • Udates drawn BabylonJS mesh object without disposing it

      Parameters

      • inputs: UpdateDrawnBabylonMesh

        Contains BabylonJS mesh that should be updated, together with position, rotation, scaling and colour info

      Returns void

      BabylonJS Mesh

      update drawn

    visibility

    • Change the visibility of a drawn BabylonJS mesh

      Parameters

      Returns void

      set visibility

    • Hides the mesh

      Parameters

      Returns void

      hide

    • Show the mesh

      Parameters

      Returns void

      show