java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.vhacd.ConvexHull
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
An immutable 3-D convex hull generated by the V-HACD algorithm. (native
class:
IVHACD::ConvexHull
)-
Method Summary
Modifier and TypeMethodDescriptionint
Count the points.Copy the point locations to a new direct buffer.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
countPoints
public int countPoints()Count the points.- Returns:
- the count (≥1)
-
getPointsAsBuffer
Copy the point locations to a new direct buffer.- Returns:
- the new direct buffer (capacity a positive multiple of 3)
-