|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunlekker.geom.Mesh
public class Mesh
Class for representing a polygon mesh. Takes care of unifying vertices and calculating normals.
Field Summary | |
---|---|
BBox |
bb
Bounding box |
Face[] |
f
Array of STLFace objects comprising the current geometry. |
Vec3[] |
n
|
int |
num
Current number of polygons |
Vec3[] |
v
|
Constructor Summary | |
---|---|
Mesh()
|
|
Mesh(int _numinit)
|
Method Summary | |
---|---|
void |
addFace(Face face)
|
void |
calcBounds()
Calculates the bounding box of the object. |
void |
center()
Centers the object around the world origin. |
void |
draw(processing.core.PApplet p)
Draws the object. |
void |
normalize(float m)
Normalizes the object to an absolute radius. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int num
public Face[] f
public Vec3[] v
public Vec3[] n
public BBox bb
Constructor Detail |
---|
public Mesh()
public Mesh(int _numinit)
Method Detail |
---|
public void addFace(Face face)
public void draw(processing.core.PApplet p)
public void calcBounds()
public void center()
public void normalize(float m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |