com.azalient.api.b.display
Interface IFace


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

drawTriangles

void drawTriangles(IDrawing drw)
Draw all the triangles on this face, as filled triangles


drawOutline

void drawOutline(IDrawing drw)
Draw all the triangles on this face, as outlines


normalise

void normalise(IXyz max)
This scales all the triangles on a face


shade

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


transform

IFace transform(IXyz origin,
                IXyz vx,
                IXyz vy,
                IXyz vz)
Apply the given transformation matrix to the face


triangles

ITrianglePoints[] triangles()
Return an array of the triangles that make up this face