Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonMesh

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonMesh

Methods

clone

  • Clones the mesh

    group

    edit

    shortname

    clone

    disposableoutput

    true

    Parameters

    Returns Mesh

    a new mesh

createMeshInstance

  • 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.

    group

    instance

    shortname

    create

    disposableoutput

    true

    Parameters

    Returns Mesh

createMeshInstanceAndTransform

  • 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.

    group

    instance

    shortname

    create and transform

    disposableoutput

    true

    Parameters

    Returns Mesh

    babylon mesh

createMeshInstanceAndTransformNoReturn

  • 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.

    group

    instance

    shortname

    create and transform

    disposableoutput

    true

    Parameters

    Returns void

dispose

  • Disposes drawn mesh object from the scene

    group

    memory

    shortname

    dispose

    Parameters

    • inputs: BabylonMeshDto

      Contains BabylonJS mesh that should be disposed

    Returns void

getAbsolutePosition

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

    group

    get

    shortname

    absolute position

    Parameters

    Returns Point3

    point

getCheckCollisions

  • Get the check collisions property of the drawn mesh

    group

    get

    shortname

    check collisions

    Parameters

    Returns boolean

getChildMeshes

  • Gets child meshes

    group

    get

    shortname

    child meshes

    Parameters

    Returns AbstractMesh[]

getId

  • Get the id of the drawn mesh

    group

    get

    shortname

    id

    Parameters

    Returns string

getMaterial

  • Gets the material of babylon mesh

    group

    get

    shortname

    material

    Parameters

    Returns Material

getMeshOfId

  • Gets mesh of id

    group

    get

    shortname

    mesh by id

    Parameters

    Returns AbstractMesh

getMeshOfUniqueId

  • Gets mesh of unique id

    group

    get

    shortname

    mesh by unique id

    Parameters

    Returns AbstractMesh

getMeshesOfId

  • Gets meshes of id

    group

    get

    shortname

    meshes by id

    Parameters

    Returns AbstractMesh[]

getMeshesWhereNameContains

  • Gets meshes that have names which contain a given text

    group

    get

    shortname

    meshes where name contains

    Parameters

    Returns AbstractMesh[]

getName

  • Gets the name of babylon mesh

    group

    get

    shortname

    name

    Parameters

    Returns string

getParent

  • Get the parent of the drawn mesh

    group

    get

    shortname

    parent

    Parameters

    Returns Node

    Parent mesh

getPickable

  • Change the pickable property of the drawn mesh

    group

    get

    shortname

    pickable

    Parameters

    Returns boolean

getPosition

  • Gets the position as point of babylonjs mesh

    group

    get

    shortname

    position

    Parameters

    Returns Point3

    point

getRotation

  • Gets the rotation vector of babylonjs mesh

    group

    get

    shortname

    rotation

    Parameters

    Returns Point3

getScale

  • Gets the scale vector of babylonjs mesh

    group

    get

    shortname

    scale

    Parameters

    Returns Point3

getUniqueId

  • Get the unique id of the drawn mesh

    group

    get

    shortname

    unique id

    Parameters

    Returns number

    unique id number

getVerticesAsPolygonPoints

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

    group

    get

    shortname

    vertices as polygon points

    Parameters

    Returns Point3[][]

hide

  • Hides the mesh

    group

    visibility

    shortname

    hide

    Parameters

    Returns void

intersectsMesh

  • Checks wether mesh intersects another mesh mesh

    group

    intersects

    shortname

    mesh

    Parameters

    Returns boolean

intersectsPoint

  • Checks wether mesh intersects point

    group

    intersects

    shortname

    point

    Parameters

    Returns boolean

moveBackward

  • Moves babylonjs mesh backward in local space

    group

    move

    shortname

    backward

    Parameters

    Returns void

moveDown

  • Moves babylonjs mesh down in local space

    group

    move

    shortname

    down

    Parameters

    Returns void

moveForward

  • Moves babylonjs mesh forward in local space

    group

    move

    shortname

    forward

    Parameters

    Returns void

moveLeft

  • Moves babylonjs mesh left in local space

    group

    move

    shortname

    left

    Parameters

    Returns void

moveRight

  • Moves babylonjs mesh right in local space

    group

    move

    shortname

    right

    Parameters

    Returns void

moveUp

  • Moves babylonjs mesh up in local space

    group

    move

    shortname

    up

    Parameters

    Returns void

pitch

  • Rotates babylonjs mesh around local x axis

    group

    move

    shortname

    pitch

    Parameters

    Returns void

roll

  • Rotates babylonjs mesh around local z axis

    group

    move

    shortname

    roll

    Parameters

    Returns void

rotateAroundAxisWithPosition

  • Rotates the mesh around axis and given position by a given angle

    group

    move

    shortname

    rotate around axis with position

    Parameters

    Returns void

setCheckCollisions

  • Change the check collisions property of the drawn mesh

    group

    set

    shortname

    check collisions

    Parameters

    Returns void

setId

  • Change the id of the drawn mesh

    group

    set

    shortname

    id

    Parameters

    Returns void

setMaterial

  • Change the material of the drawn mesh

    group

    set

    shortname

    material

    Parameters

    Returns void

setName

  • Change the name of the drawn mesh

    group

    set

    shortname

    name

    Parameters

    Returns void

setParent

  • Change the parent of the drawn mesh

    group

    set

    shortname

    parent

    Parameters

    Returns void

setPickable

  • Change the pickable property of the drawn mesh

    group

    get

    shortname

    check collisions

    Parameters

    Returns void

setPosition

  • Updates the position of the BabylonJS mesh or instanced mesh

    group

    set

    shortname

    position

    Parameters

    Returns void

setRotation

  • Updates the rotation of the BabylonJS mesh or instanced mesh

    group

    set

    shortname

    rotation

    Parameters

    Returns void

setScale

  • Updates the scale of the BabylonJS mesh or instanced mesh

    group

    set

    shortname

    scale

    Parameters

    Returns void

setVisibility

  • Change the visibility of a drawn BabylonJS mesh

    group

    visibility

    shortname

    set visibility

    Parameters

    Returns void

show

  • Show the mesh

    group

    visibility

    shortname

    show

    Parameters

    Returns void

updateDrawn

  • Udates drawn BabylonJS mesh object without disposing it

    group

    updates

    shortname

    update drawn

    Parameters

    • inputs: UpdateDrawnBabylonMesh

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

    Returns void

    BabylonJS Mesh

yaw

  • Rotates babylonjs mesh around local y axis

    group

    move

    shortname

    yaw

    Parameters

    Returns void

Generated using TypeDoc