Package | Description |
---|---|
org.dayflower.pathtracer.scene |
Provides the Scene API.
|
org.dayflower.pathtracer.scene.compiler |
Provides the Scene Compiler API.
|
org.dayflower.pathtracer.scene.wavefront |
Provides an API for loading Wavefront Object (.obj) and Wavefront Material (.mtl) files.
|
Modifier and Type | Method and Description |
---|---|
Surface |
Primitive.getSurface()
Returns the
Surface assigned to this Primitive instance. |
Modifier and Type | Method and Description |
---|---|
void |
Primitive.setSurface(Surface surface)
Sets the
Surface for this Primitive instance. |
Constructor and Description |
---|
Primitive(Shape shape,
Surface surface)
Constructs a new
Primitive instance. |
Primitive(Shape shape,
Surface surface,
Matrix44F objectToWorld)
Constructs a new
Primitive instance. |
Modifier and Type | Method and Description |
---|---|
int |
DynamicCompiledScene.add(Surface surface)
Adds
surface to this DynamicCompiledScene instance. |
int |
DynamicCompiledScene.indexOf(Surface surface)
Returns the index of
surface , or -1 if it does not exist. |
int |
DynamicCompiledScene.referencesTo(Surface surface)
Returns the number of references to
surface . |
int |
DynamicCompiledScene.remove(Surface surface)
Removes
surface from this DynamicCompiledScene instance, if it exists. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Primitive> |
ObjectLoader.load(java.io.File file,
float scale,
Surface surface)
Loads a Wavefront Object (.obj) model.
|
static java.util.List<Primitive> |
ObjectLoader.load(java.lang.String filename,
float scale,
Surface surface)
Loads a Wavefront Object (.obj) model.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<Primitive> |
ObjectLoader.load(java.io.File file,
float scale,
java.util.function.BiFunction<java.lang.String,java.lang.String,Surface> surfaceMapper)
Loads a Wavefront Object (.obj) model.
|
static java.util.List<Primitive> |
ObjectLoader.load(java.io.File file,
float scale,
java.util.function.BiFunction<java.lang.String,java.lang.String,Surface> surfaceMapper,
float translateX,
float translateY,
float translateZ)
Loads a Wavefront Object (.obj) model.
|
static java.util.List<Primitive> |
ObjectLoader.load(java.lang.String filename,
float scale,
java.util.function.BiFunction<java.lang.String,java.lang.String,Surface> surfaceMapper)
Loads a Wavefront Object (.obj) model.
|
static java.util.List<Primitive> |
ObjectLoader.load(java.lang.String filename,
float scale,
java.util.function.BiFunction<java.lang.String,java.lang.String,Surface> surfaceMapper,
float translateX,
float translateY,
float translateZ)
Loads a Wavefront Object (.obj) model.
|