API / geotoolkit3d / data / surface / TrimeshSurfaceData / TrimeshSurfaceData
surface.TrimeshSurfaceData.TrimeshSurfaceData
A Surface data built using indexed triangles.
Indexed triangles consist of a position buffer and an indices buffer:
- The position buffer represents the x, y, z positions of the vertices
- The index buffer indicates the order in which these vertices should be assembled to form the surface's triangles.
Throws
if the Surface Data is not compliant and compromise the creation of the surface.
Throws
SurfaceData is empty after triangulation
↳
TrimeshSurfaceData
Constructors
Constructors
• new TrimeshSurfaceData(options)
| Name | Type |
|---|---|
options | Options |
AbstractSurfaceData.constructor
Methods
▸ dispose(): void
Dispose this surface data to allow for garbage collection.
void
▸ getAttributes(): Attributes
Returns the vertex/index attributes, and any other defined attributes of this surface as BufferAttribute.
AbstractSurfaceData.getAttributes
▸ getClassName(): string
string
AbstractSurfaceData.getClassName
▸ Static getClassName(): string
string