Package org.recast4j.recast.geom
Class SimpleInputGeomProvider
java.lang.Object
org.recast4j.recast.geom.SimpleInputGeomProvider
- All Implemented Interfaces:
ConvexVolumeProvider,InputGeomProvider
public class SimpleInputGeomProvider extends java.lang.Object implements InputGeomProvider
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SimpleInputGeomProvider(float[] vertices, int[] faces)SimpleInputGeomProvider(java.util.List<java.lang.Float> vertexPositions, java.util.List<java.lang.Integer> meshFaces) -
Method Summary
Modifier and Type Method Description voidaddConvexVolume(float[] verts, float minh, float maxh, AreaModification areaMod)voidcalculateNormals()java.util.List<ConvexVolume>convexVolumes()float[]getMeshBoundsMax()float[]getMeshBoundsMin()java.lang.Iterable<TriMesh>meshes()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
vertices
public final float[] vertices -
faces
public final int[] faces -
normals
public final float[] normals
-
-
Constructor Details
-
SimpleInputGeomProvider
public SimpleInputGeomProvider(java.util.List<java.lang.Float> vertexPositions, java.util.List<java.lang.Integer> meshFaces) -
SimpleInputGeomProvider
public SimpleInputGeomProvider(float[] vertices, int[] faces)
-
-
Method Details
-
getMeshBoundsMin
public float[] getMeshBoundsMin()- Specified by:
getMeshBoundsMinin interfaceInputGeomProvider
-
getMeshBoundsMax
public float[] getMeshBoundsMax()- Specified by:
getMeshBoundsMaxin interfaceInputGeomProvider
-
convexVolumes
- Specified by:
convexVolumesin interfaceConvexVolumeProvider
-
addConvexVolume
-
meshes
- Specified by:
meshesin interfaceInputGeomProvider
-
calculateNormals
public void calculateNormals()
-