org.autochthonous.graphics.rt.objects
Class TriangleStrip
java.lang.Object
org.autochthonous.graphics.rt.Renderable
org.autochthonous.graphics.rt.Bounded
org.autochthonous.graphics.rt.objects.IndexedMesh
org.autochthonous.graphics.rt.objects.TriangleStrip
- All Implemented Interfaces:
- java.lang.Cloneable, ColorCalculator, Partitionable, TextureMapper, Traceable
- public class TriangleStrip
- extends IndexedMesh
a triangle strip.
Example:
<TriangleStrip color="1.000,0.000,0.000">
<Vertices>
0.000, 1.000, 0.000,
1.000, 1.000, 0.000,
0.000, 0.000, 0.000,
1.000, 0.000, 0.000
</Vertices>
</TriangleStrip>
Document Type Definition:
<!ENTITY %Color3f "CDATA">
<!ENTITY %Boolean "(true|false)">
<!ELEMENT TriangleStrip (Vertices, Normals?, Colors?)>
<!ATTLIST TriangleStrip
color %Color3f; "1, 1, 1"
smooth %Float; "false">
Fields inherited from class org.autochthonous.graphics.rt.Bounded |
bBox |
Fields inherited from interface org.autochthonous.graphics.rt.TextureMapper |
S, T |
Methods inherited from class org.autochthonous.graphics.rt.objects.IndexedMesh |
getST, hasShader, init, init, intersections, isIntersected, isShadowing, processParameters, setColors, setShader, setShader, setVertexColors, setVertexNormals, setVertexTextureCoordinates, vertexIndexes |
Methods inherited from class org.autochthonous.graphics.rt.Renderable |
clone, createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, readObject, setColor, setColor, setSelfShadowing, toObjectSpace, toObjectSpace, transformNormal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.autochthonous.graphics.rt.Traceable |
clone |
TriangleStrip
public TriangleStrip(Point3f[] vertices,
boolean smooth)
TriangleStrip
public TriangleStrip(Point3f[] vertices,
Vector3f[] normals,
boolean smooth)
TriangleStrip
public TriangleStrip(Point3f[] vertices,
Vector3f[] normals,
Color3f[] colors,
boolean smooth)
getInstance
public static TriangleStrip getInstance(RMLReader in)
throws java.io.IOException
- Throws:
java.io.IOException
processObject
protected void processObject(java.lang.Object obj)
- Overrides:
processObject
in class Renderable
init
protected final void init(Point3f[] vertices,
boolean smooth)