Last updated

API / geotoolkit3d / util / intersection / IIntersectableMesh / IIntersectableMesh

Class: IIntersectableMesh

intersection.IIntersectableMesh.IIntersectableMesh

Define an interface to provide a way to retrieve intersection related data from a mesh object.
3D Objects implementing this interface will now be eligible for 3D intersection, via the Intersection3DUtil utility.

Interface

Implemented by

Table of contents

Constructors
Methods

Contents

Constructors

new IIntersectableMesh()

new IIntersectableMesh()

Methods

getClassName

getClassName(): string

Returns

string


getColorProvider

Abstract getColorProvider(): RgbaColor | ColorProvider

Return the color provider of the intersectable.

Returns

RgbaColor | ColorProvider


getMesh

Abstract getMesh(): Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

Return the mesh to be intersected.

Returns

Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>


getMeshBoundingBox

Abstract getMeshBoundingBox(target): void

Return the bounding box of the mesh.
The bounding box should be calculated directly from the mesh's geometry vertex positions, representing the bounding box. The box coordinates must be in the local coordinate space of the mesh returned by getMesh method.

Parameters

Name Type Description
targetBox3result

Returns

void


getTriangle

Abstract getTriangle(triangleIndex, target): void

Return the triangle data at given index.
Vertices coordinates must be in the local coordinate space of the mesh returned by getMesh method.

Parameters

Name Type Description
triangleIndexnumberthe index of the triangle
targetTriangleDataresult

Returns

void


getTriangleCount

Abstract getTriangleCount(): number

Return the number of triangle.

Returns

number


getClassName

Static getClassName(): string

Returns

string