Constructors
constructor
- new Geometry(gl: WebGLRenderingContext): Geometry
-
Parameters
-
gl: WebGLRenderingContext
Properties
attributes
attributes: object
Methods
addVertex
- addVertex(vertex: any): this
generateFlatNormal
- generateFlatNormal(): this
getTriangleByIndex
- getTriangleByIndex(triangleIndex: number): Array<any>
-
Parameters
Returns Array<any>
getVertexByIndex
- getVertexByIndex(index: number): any
removeAttribute
- removeAttribute(name: string): this
setAttribute
- setAttribute(name: any, attribute: Attribute): this