RenderObjectpublic class Geometry extends java.lang.Object implements RenderObject
Instance.
This class performs all the bookkeeping needed for on-demand tesselation and
acceleration structure building.| Constructor | Description |
|---|---|
Geometry(PrimitiveList primitives) |
Create a geometry from the specified primitive aggregate.
|
Geometry(Tesselatable tesselatable) |
Create a geometry from the specified tesselatable object.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
update(ParameterList pl,
SunflowAPI api) |
Update this object given a list of parameters.
|
public Geometry(Tesselatable tesselatable)
tesselatable - tesselation objectpublic Geometry(PrimitiveList primitives)
primitives - primitive list objectpublic boolean update(ParameterList pl, SunflowAPI api)
RenderObjectupdate in interface RenderObjectpl - list of parameters to read fromapi - reference to the current scenetrue if the update is succesfull,
false otherwise