Skip to content

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

import { Mesh } from 'scenerystack/alpenglow';

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

import { MeshFace } from 'scenerystack/alpenglow';

Constructor

new MeshFace( material : string, group : string, smoothingGroup : number )

Instance Methods

Instance Properties

vertexIndices : number[]

(readonly)

uvIndices : number[]

(readonly)

normalIndices : number[]

(readonly)

Class MeshLine

import { MeshLine } from 'scenerystack/alpenglow';

Instance Properties

vertexIndices : number[]

(readonly)

uvIndices : number[]

(readonly)

Source Code

See the source for Mesh.ts in the alpenglow repository.