org.sunflow.core.primitive

Class ParticleSurface

Implemented Interfaces:
PrimitiveList, RenderObject

public class ParticleSurface
extends java.lang.Object
implements PrimitiveList

Constructor Summary

ParticleSurface()

Method Summary

PrimitiveList
getBakingPrimitives()
int
getNumPrimitives()
float
getPrimitiveBound(int primID, int i)
BoundingBox
getWorldBounds(Matrix4 o2w)
void
intersectPrimitive(Ray r, int primID, IntersectionState state)
void
prepareShadingState(ShadingState state)
boolean
update(ParameterList pl, SunflowAPI api)

Constructor Details

ParticleSurface

public ParticleSurface()

Method Details

getBakingPrimitives

public PrimitiveList getBakingPrimitives()
Specified by:
getBakingPrimitives in interface PrimitiveList

getNumPrimitives

public int getNumPrimitives()
Specified by:
getNumPrimitives in interface PrimitiveList

getPrimitiveBound

public float getPrimitiveBound(int primID,
                               int i)
Specified by:
getPrimitiveBound in interface PrimitiveList

getWorldBounds

public BoundingBox getWorldBounds(Matrix4 o2w)
Specified by:
getWorldBounds in interface PrimitiveList

intersectPrimitive

public void intersectPrimitive(Ray r,
                               int primID,
                               IntersectionState state)
Specified by:
intersectPrimitive in interface PrimitiveList

prepareShadingState

public void prepareShadingState(ShadingState state)
Specified by:
prepareShadingState in interface PrimitiveList

update

public boolean update(ParameterList pl,
                      SunflowAPI api)
Specified by:
update in interface RenderObject