edu.jhu.cs.cisst.vent.structures.processing
Class PTriangleMesh

java.lang.Object
  extended by edu.jhu.cs.cisst.vent.structures.processing.PTriangleMesh

public class PTriangleMesh
extends java.lang.Object

The Class PTriangleMesh.


Field Summary
protected  int[] indexes
          The indexes.
protected  Vector3f[] norms
          The norms.
protected  Point3f[] points
          The points.
 
Constructor Summary
PTriangleMesh(Point3f[] points, Vector3f[] norms, int[] indexes)
          Instantiates a new p triangle mesh.
 
Method Summary
 void draw(PApplet applet, boolean gouraud, boolean flipNormals)
          Draw.
 Vector3f[] getNormals()
          Gets the normals.
 Point3f[] getPoints()
          Gets the points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

protected Point3f[] points
The points.


norms

protected Vector3f[] norms
The norms.


indexes

protected int[] indexes
The indexes.

Constructor Detail

PTriangleMesh

public PTriangleMesh(Point3f[] points,
                     Vector3f[] norms,
                     int[] indexes)
Instantiates a new p triangle mesh.

Parameters:
points - the points
norms - the norms
indexes - the indexes
Method Detail

getNormals

public Vector3f[] getNormals()
Gets the normals.

Returns:
the normals

getPoints

public Point3f[] getPoints()
Gets the points.

Returns:
the points

draw

public void draw(PApplet applet,
                 boolean gouraud,
                 boolean flipNormals)
Draw.

Parameters:
applet - the applet
gouraud - the gouraud
flipNormals - the flip normals