CLASSES
TagsA - Z

InstancedMesh

NodeMesh

Description

class InstancedMesh extends AbstractMesh

Creates an instance based on a source mesh.

Constructor

new InstancedMesh(name, source)

The InstancedMesh constructor

Parameters

Name Type Description
name string The given name
source Mesh @param source

Members

receiveShadows : boolean

True if the Instanced Mesh got shadows, false if is not

material : Material

The material

visibility : number

The visibility of the Instanced Mesh

skeleton : Skeleton

The skeleton

renderingGroupId : number

sourceMesh : Mesh

The sourceMesh

Methods

getTotalVertices() → number

Get the total vertices of the Instanced Mesh

getVerticesData(kind, copyWhenShared) → number[]

Parameters

Name Type Description
kind string @param kind
optional copyWhenShared boolean

isVerticesDataPresent(kind) → boolean

Is Vertices data present

Parameters

Name Type Description
kind string @param kind

getIndices() → number[]

Get Indices

refreshBoundingInfo() → void

Refresh Bounding Info of the Instanced Mesh

getLOD(camera) → AbstractMesh

Parameters

Name Type Description
camera Camera

clone(name, newParent, doNotCloneChildren) → InstancedMesh

Clone this instanced Mesh

Parameters

Name Type Description
name string The given name
newParent Node The parent
optional doNotCloneChildren boolean True if you want to clone children, false if you don't want to.

dispose(doNotRecurse) → void

Parameters

Name Type Description
optional doNotRecurse boolean @param doNotRecurse