public class Triangle extends AbstractShape
color, label, material| Constructor and Description |
|---|
Triangle(Vertex3f a,
Vertex3f b,
Vertex3f c)
Ein Dreieck, das über drei Punkte im Raum definiert wird.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fill(boolean fill)
Ob das Polygon gefüllt oder im Wireframe-Modus gezeichnet werden soll.
|
Vertex3f |
getA() |
Vertex3f |
getB() |
Vertex3f |
getC() |
DisplayList |
getDisplayList(DisplayList list) |
DisplayList |
getDisplayList(DisplayList list,
Transformation transformation) |
protected java.util.List<Line> |
scanline()
Berechnet die Scan Lines, mit denen das Dreieck auf dem Bildschirm im Software Modus gefüllt werden kann.
|
protected java.util.List<Line> |
scanline(Vertex3f a,
Vertex3f b,
Vertex3f c) |
getAnimation, getColor, getLabel, getMaterial, getNode, hit, setAnimation, setColor, setMaterial, setNode, updatepublic void fill(boolean fill)
fill - true, wenn Polygon gefüllt werden sollprotected java.util.List<Line> scanline()
public DisplayList getDisplayList(DisplayList list)
getDisplayList in interface RenderablegetDisplayList in class AbstractShapepublic DisplayList getDisplayList(DisplayList list, Transformation transformation)
getDisplayList in interface RenderablegetDisplayList in class AbstractShapepublic Vertex3f getA()
public Vertex3f getB()
public Vertex3f getC()