API / geotoolkit3d / data / surface / TrimeshSurfaceData / TrimeshSurfaceData
surface.TrimeshSurfaceData.TrimeshSurfaceData
A Surface data built using indexed triangles.<br> Indexed triangles consist of a position buffer and an indices buffer:<ul> <li>The position buffer represents the x, y, z positions of the vertices</li> <li>The index buffer indicates the order in which these vertices should be assembled to form the surface's triangles.</li></ul>
Throws
if the Surface Data is not compliant and compromise the creation of the surface.
Throws
SurfaceData is empty after triangulation
↳
TrimeshSurfaceData
Constructors
- [new TrimeshSurfaceData(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.surface-1.trimeshsurfacedata.trimeshsurfacedata.md#new trimeshsurfacedata(options))
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