public class NagataDistanceTest extends java.lang.Object implements IsRenderable, HasRenderProps
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
NagataDistanceTest() |
Modifier and Type | Method and Description |
---|---|
void |
computeNearestPoint(Point3d near,
Vector3d normal,
Point3d pos,
boolean debug) |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
void |
createTetMesh() |
void |
createTriangleMesh() |
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable.
|
RenderProps |
getRenderProps()
Returns the render properities for this object.
|
static void |
main(java.lang.String[] args) |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
setRenderProps(RenderProps props)
Assigns a new set of render properties to this object.
|
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
public void computeNearestPoint(Point3d near, Vector3d normal, Point3d pos, boolean debug)
public void createTriangleMesh()
public void createTetMesh()
public void setRenderProps(RenderProps props)
HasRenderProps
null
will remove render properties from this object.setRenderProps
in interface HasRenderProps
props
- new render properties for this objectpublic RenderProps getRenderProps()
HasRenderProps
getRenderProps
in interface HasRenderProps
public RenderProps createRenderProps()
HasRenderProps
createRenderProps
in interface HasRenderProps
public void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.prerender
in interface IsRenderable
list
- list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderable
updateBounds
in interface IsRenderable
pmin
- minimum pointpmax
- maximum pointpublic int getRenderHints()
IsRenderable
TRANSPARENT
and
TWO_DIMENSIONAL
.getRenderHints
in interface IsRenderable
public static void main(java.lang.String[] args)