Last updated

API / geotoolkit3d / util / intersection / IIntersectablePolyhedron / IIntersectablePolyhedron

Class: IIntersectablePolyhedron

intersection.IIntersectablePolyhedron.IIntersectablePolyhedron

Define an interface to provide a way to retrieve intersection related data from a object formed by one or more polyhedrons like ReservoirGrid.
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 IIntersectablePolyhedron()

new IIntersectablePolyhedron()

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 representing the polyhderons to be intersected.

Returns

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


getPolyhedron

Abstract getPolyhedron(polyhedronIndex, target): void

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

Parameters

Name Type Description
polyhedronIndexnumberthe index of the polyhedron
targetPolyhedronCellDataresult

Returns

void


getPolyhedronCount

Abstract getPolyhedronCount(): number

Return the total number of Polyhedrons contained by this object.

Returns

number


getPolyhedronsBoundingBox

Abstract getPolyhedronsBoundingBox(target): void

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

Parameters

Name Type Description
targetBox3result

Returns

void


isPolyhedronIndexFilteredOut

Abstract isPolyhedronIndexFilteredOut(polyhedronIndex): boolean

Return if the polyhedron at given index is filtered out.
Polyhedron objects like ReservoirGrid can contain multiple polyhedrons, which can be filtered out by user settings.
This method allow to express whether this specific polyhedron is filtered out (and should be excluded from intersection).

Parameters

Name Type
polyhedronIndexnumber

Returns

boolean

true if filtered out, otherwise false


getClassName

Static getClassName(): string

Returns

string