Package | Description |
---|---|
org.dayflower.pathtracer.scene.bvh |
Provides the Bounding Volume Hierarchy (BVH) API.
|
org.dayflower.pathtracer.scene.shape |
Provides
Shape implementations. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Triangle> |
BoundingVolumeHierarchy.LeafNode.getTriangles()
Returns a
List with the Triangle s currently added. |
Modifier and Type | Method and Description |
---|---|
void |
BoundingVolumeHierarchy.LeafNode.addTriangle(Triangle triangle)
Adds
triangle to this LeafNode instance. |
void |
BoundingVolumeHierarchy.LeafNode.removeTriangle(Triangle triangle)
Removes
triangle from this LeafNode instance. |
Modifier and Type | Method and Description |
---|---|
static BoundingVolumeHierarchy |
BoundingVolumeHierarchy.createBoundingVolumeHierarchy(java.util.List<Triangle> triangles)
|
Modifier and Type | Method and Description |
---|---|
Triangle |
Triangle.rotate(Vector3F w,
Vector3F v)
Rotates this
Triangle instance. |
Triangle |
Triangle.scale(float s)
Scales this
Triangle instance. |
Triangle |
Triangle.translate(float x,
float y,
float z)
Translates this
Triangle instance. |
Triangle |
Triangle.translateX(float x)
Translates this
Triangle instance in the X-direction. |
Triangle |
Triangle.translateY(float y)
Translates this
Triangle instance in the Y-direction. |
Triangle |
Triangle.translateZ(float z)
Translates this
Triangle instance in the Z-direction. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Triangle> |
TriangleMesh.getTriangles()
|
Modifier and Type | Method and Description |
---|---|
static Point3F |
Triangle.maximum(java.util.List<Triangle> triangles)
|
static Point3F |
Triangle.minimum(java.util.List<Triangle> triangles)
|
Constructor and Description |
---|
TriangleMesh(java.util.List<Triangle> triangles)
Constructs a new
TriangleMesh instance. |