Skip to content

API / geotoolkit3d / data / surface / TrimeshSurfaceData / TrimeshSurfaceData

Class: 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

Hierarchy

Table of contents

Constructors
  • [new TrimeshSurfaceData(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.surface-1.trimeshsurfacedata.trimeshsurfacedata.md#new trimeshsurfacedata(options))
Methods

Contents

Constructors

new TrimeshSurfaceData(options)

• new TrimeshSurfaceData(options)

Parameters

Name Type
optionsOptions

Overrides

AbstractSurfaceData.constructor

Methods

dispose

▸ dispose(): void

Dispose this surface data to allow for garbage collection.

Returns

void

Inherited from

AbstractSurfaceData.dispose


getAttributes

▸ getAttributes(): Attributes

Returns the vertex/index attributes, and any other defined attributes of this surface as BufferAttribute.

Returns

Attributes

Inherited from

AbstractSurfaceData.getAttributes


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractSurfaceData.getClassName