Class PathMesh
java.lang.Object
com.marginallyclever.ro3.apps.pathtracer.PathMesh
A collection of
PathTriangle
s contained in an SpatialAccelerationStructure
for optimized path tracing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
buildSAS()
Build theSpatialAccelerationStructure
that will optimize the intersection math.int
Intersect a ray with this mesh.
-
Constructor Details
-
PathMesh
public PathMesh()
-
-
Method Details
-
addTriangle
-
buildSAS
public void buildSAS()Build theSpatialAccelerationStructure
that will optimize the intersection math. -
intersect
-
getTriangleCount
public int getTriangleCount() -
getRandomTriangle
-