org.jmol.g3d
class Triangle3D extends Object
currently only renders flat triangles
will probably need performance tuning
Field Summary | |
---|---|
int[] | ax |
int[] | axE |
int[] | axW |
int[] | ay |
int[] | az |
int[] | azE |
int[] | azW |
static int | DEFAULT |
Graphics3D | g3d |
Line3D | line3d |
Rgb16[] | rgb16sE |
Rgb16[] | rgb16sGouraud |
Rgb16[] | rgb16sW |
Rgb16 | rgb16t1 |
Rgb16 | rgb16t2 |
static boolean | VERIFY |
Constructor Summary | |
---|---|
Triangle3D(Graphics3D g3d) |
Method Summary | |
---|---|
void | adjustVertex(int[] t, float factor) |
void | drawfillTriangle(int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC, boolean useGouraud) |
void | fillRaster(int y, int numLines, boolean useGouraud, boolean isClipped, int correction) |
void | fillTriangle(int xScreenA, int yScreenA, int zScreenA, int xScreenB, int yScreenB, int zScreenB, int xScreenC, int yScreenC, int zScreenC, boolean useGouraud) |
void | fillTriangle(Point3i screenA, Point3i screenB, Point3i screenC, boolean useGouraud) |
void | fillTriangle(Point3f screenA, Point3f screenB, Point3f screenC, boolean useGouraud) |
void | fillTriangle(Point3i screenA, Point3i screenB, Point3i screenC, float factor, boolean useGouraud) |
void | fillTriangle(boolean useGouraud) |
void | generateRaster(int dy, int iN, int iS, int[] axRaster, int[] azRaster, int iRaster, Rgb16[] gouraud) |
void | reallocRasterArrays(int n) |
Rgb16[] | reallocRgb16s(Rgb16[] rgb16s, int n) |
void | setGouraud(int rgbA, int rgbB, int rgbC) |