Package com.marginallyclever.ro3.mesh
Interface VertexProvider
public interface VertexProvider
VertexProvider
is an interface for providing vertices and normals to a Mesh
. Historically
this has only been used for Ray
intersections.
-
Method Summary
Modifier and TypeMethodDescriptionint
javax.vecmath.Vector3d
provideNormal
(int index) Provides a normal at the given index.javax.vecmath.Vector3d
provideVertex
(int index) Provides a vertex at the given index.
-
Method Details
-
provideVertex
javax.vecmath.Vector3d provideVertex(int index) Provides a vertex at the given index.- Parameters:
index
- the index of the vertex to provide- Returns:
- the vertex at the given index
-
provideNormal
javax.vecmath.Vector3d provideNormal(int index) Provides a normal at the given index.- Parameters:
index
- the index of the vertex to provide- Returns:
- the vertex at the given index
-
provideCount
int provideCount()- Returns:
- the number of vertexes and normals available.
-