java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.vhacd.ConvexHull
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class ConvexHull extends JoltPhysicsObject
An immutable 3-D convex hull generated by the V-HACD algorithm. (native class: IVHACD::ConvexHull)
  • Method Details

    • countPoints

      public int countPoints()
      Count the points.
      Returns:
      the count (≥1)
    • getPointsAsBuffer

      public FloatBuffer getPointsAsBuffer()
      Copy the point locations to a new direct buffer.
      Returns:
      the new direct buffer (capacity a positive multiple of 3)