Class: Mesh

x3dom. Mesh

Inheritance

  • Mesh

Constructor

Mesh()



Methods

calcNormals(creaseAngle, ccw)

Calculate Normals

Parameters:
Name Type Description
creaseAngle
ccw

doIntersect(line) → {*}

Do Intersect

Parameters:
Name Type Description
line

Returns:

getCenter() → {*}

Get Center

Returns:

getDiameter() → {*}

Get Diameter

Returns:

getVolume() → {null}

Get Volume

Returns:

invalidate()

Invalidate

isValid() → {*|boolean}

Is Valid?

Returns:

setMeshData(positions, normals, texCoords, colors, indices)

Set Mesh Data

Parameters:
Name Type Description
positions
normals
texCoords
colors
indices

splitMesh(primStride)

Split Mesh

Parameters:
Name Type Description
primStride Number of index entries per primitive, for example 3 for TRIANGLES