API / geotoolkit3d / util / intersection / IIntersectableMesh / 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
Constructors
Methods
▸ getClassName(): string
string
▸ Abstract getColorProvider(): RgbaColor | ColorProvider
Return the color provider of the intersectable.
▸ Abstract getMesh(): Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
Return the mesh to be intersected.
Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>
▸ 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.
| Name | Type | Description |
|---|---|---|
target | Box3 | result |
void
▸ 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.
| Name | Type | Description |
|---|---|---|
triangleIndex | number | the index of the triangle |
target | TriangleData | result |
void
▸ Abstract getTriangleCount(): number
Return the number of triangle.
number
▸ Static getClassName(): string
string