|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFace
A face is used to draw solid objects, by dividing them into triangles. Each face may have one or more co-planar triangles.
| Method Summary | |
|---|---|
void |
drawOutline(IDrawing drw)
Draw all the triangles on this face, as outlines |
void |
drawTriangles(IDrawing drw)
Draw all the triangles on this face, as filled triangles |
void |
normalise(IXyz max)
This scales all the triangles on a face |
double |
shade()
This returns a crude shading from an overhead light source, be generating a colour derived from the slope of the face relative to the horizontal |
IFace |
transform(IXyz origin,
IXyz vx,
IXyz vy,
IXyz vz)
Apply the given transformation matrix to the face |
ITrianglePoints[] |
triangles()
Return an array of the triangles that make up this face |
| Method Detail |
|---|
void drawTriangles(IDrawing drw)
void drawOutline(IDrawing drw)
void normalise(IXyz max)
double shade()
IFace transform(IXyz origin,
IXyz vx,
IXyz vy,
IXyz vz)
ITrianglePoints[] triangles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||