org.bouncycastle.graphics.rt.objects
Class TriangleStrip
java.lang.Object
|
+--org.bouncycastle.graphics.rt.Renderable
|
+--org.bouncycastle.graphics.rt.Bounded
|
+--org.bouncycastle.graphics.rt.objects.IndexedMesh
|
+--org.bouncycastle.graphics.rt.objects.TriangleStrip
- All Implemented Interfaces:
- 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.bouncycastle.graphics.rt.Bounded |
bBox |
Fields inherited from interface org.bouncycastle.graphics.rt.TextureMapper |
S, T |
Methods inherited from class org.bouncycastle.graphics.rt.objects.IndexedMesh |
getST, init, init, intersections, isIntersected, isShadowing, processParameters, setColors, setShader, setShader, setVertexColors, setVertexNormals, setVertexTextureCoordinates, vertexIndexes |
Methods inherited from class org.bouncycastle.graphics.rt.Renderable |
createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, readObject, setColor, setColor, setSelfShadowing, toObjectSpace, toObjectSpace, transformNormal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
processObject
protected void processObject(java.lang.Object obj)
- Overrides:
processObject
in class Renderable
init
protected final void init(Point3f[] vertices,
boolean smooth)