org.sunflow.core
Class Geometry
java.lang.Object
org.sunflow.core.Geometry
- RenderObject
public class Geometry
extends java.lang.Object
This class represent a geometric object in its native object space. These
object are not rendered directly, they must be instanced via
Instance
.
This class performs all the bookkeeping needed for on-demand tesselation and
acceleration structure building.
Geometry
public Geometry(PrimitiveList primitives)
Create a geometry from the specified primitive aggregate. The
acceleration structure for this object will be built on demand.
primitives
- primitive list object
Geometry
public Geometry(Tesselatable tesselatable)
Create a geometry from the specified tesselatable object. The actual
renderable primitives will be generated on demand.
tesselatable
- tesselation object