Mesh¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/Mesh.ts for the most up-to-date information.
Overview¶
Represents mesh data that can be handled in different ways.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class Mesh¶
Constructor¶
new Mesh( name : string | null )¶
Instance Methods¶
Instance Properties¶
vertices : Vector3[]¶
(readonly)
uvs : Vector3[]¶
(readonly)
normals : Vector3[]¶
(readonly)
faces : MeshFace[]¶
(readonly)
lines : MeshLine[]¶
(readonly)
Static Methods¶
loadOBJ( str : string ) : Mesh[]¶
Class MeshFace¶
Constructor¶
new MeshFace( material : string, group : string, smoothingGroup : number )¶
Instance Methods¶
Instance Properties¶
vertexIndices : number[]¶
(readonly)
uvIndices : number[]¶
(readonly)
normalIndices : number[]¶
(readonly)
Class MeshLine¶
Instance Properties¶
vertexIndices : number[]¶
(readonly)
uvIndices : number[]¶
(readonly)