Reference Source
public class | source

MeshSurfaceArea

Calculates the surface area of triangle meshes.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

indices: *[]

public
public
public get

Gets the surface area of the mesh.

public

vertices: *[]

Method Summary

Public Methods
public

addIndex(index: *)

Adds an index.

public

addVertex(vertex: *)

Adds a vertex.

public

reset()

Resets, ready to add vertices and indices for a new mesh.

Public Constructors

public constructor() source

Public Members

public indices: *[] source

public lenIndices: number source

public lenVertices: number source

public get surfaceArea: number: * source

Gets the surface area of the mesh.

Return:

number

public vertices: *[] source

Public Methods

public addIndex(index: *) source

Adds an index.

Params:

NameTypeAttributeDescription
index *

public addVertex(vertex: *) source

Adds a vertex.

Params:

NameTypeAttributeDescription
vertex *

public reset() source

Resets, ready to add vertices and indices for a new mesh.