LinesMesh

NodeMesh

Description

class LinesMesh extends Mesh

Constructor

new LinesMesh(name, scene, parent, source, doNotCloneChildren, useVertexColor, undefined, useVertexAlpha, undefined)

Parameters

Name Type Description
name string
optional scene Nullable<Scene>
optional parent Nullable<Node>
optional source LinesMesh
optional doNotCloneChildren boolean
optional useVertexColor boolean or undefined

Members

useVertexColor : boolean

undefined : undefined

useVertexAlpha : boolean

undefined : undefined

color : Color3

alpha : number

intersectionThreshold : number

The intersection Threshold is the margin applied when intersection a segment of the LinesMesh with a Ray.

This margin is expressed in world space coordinates, so its value may vary.

Default value is 0.1

@returns the intersection Threshold value.

The intersection Threshold is the margin applied when intersection a segment of the LinesMesh with a Ray.

This margin is expressed in world space coordinates, so its value may vary.

material : Material

checkCollisions : boolean

Methods

getClassName() string

Returns the string "LineMesh"

createInstance(name) InstancedMesh

Parameters

Name Type Description
name string

dispose(doNotRecurse) void

Parameters

Name Type Description
optional doNotRecurse boolean

clone(name, newParent, doNotCloneChildren) LinesMesh

Returns a new LineMesh object cloned from the current one.

Parameters

Name Type Description
name string
optional newParent Node
optional doNotCloneChildren boolean