public class TriangleListShape3D extends GeomShape3D
TriangleList
. The default
appearance of the geometry is solid filled grey with lighting enabled.
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
TriangleListShape3D(GeomElement parent,
TriangleList<? extends GeomTriangle> list)
Construct a TriangleListShape3D object from the specified
TriangleList . |
TriangleListShape3D(GeomElement parent,
TriangleList<? extends GeomTriangle> list,
Appearance appearance)
Construct a TriangleListShape3D object from the specified
TriangleList . |
TriangleListShape3D(GeomElement parent,
TriangleList<? extends GeomTriangle> list,
Appearance appearance,
boolean stripify)
Construct a TriangleListShape3D object from the specified
TriangleList . |
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean forceDuplicate)
Used to create a new instance of the node.
|
getGeometryElement
public TriangleListShape3D(GeomElement parent, TriangleList<? extends GeomTriangle> list)
TriangleList
.parent
- The GeomSS geometry element that this Shape3D is associated with.list
- The TriangleList to be converted into a J3D Shape3D object.public TriangleListShape3D(GeomElement parent, TriangleList<? extends GeomTriangle> list, Appearance appearance)
TriangleList
.parent
- The GeomSS geometry element that this Shape3D is associated with.list
- The TriangleList to be converted into a J3D Shape3D object.appearance
- The Appearance to use when rendering the list of triangles.public TriangleListShape3D(GeomElement parent, TriangleList<? extends GeomTriangle> list, Appearance appearance, boolean stripify)
TriangleList
.parent
- The GeomSS geometry element that this Shape3D is associated with.list
- The TriangleList to be converted into a J3D Shape3D object.appearance
- The Appearance to use when rendering the list of triangles.stripify
- Flag indicating if the list of individual triangles should be
converted into triangle strips for rendering or not.public Node cloneNode(boolean forceDuplicate)
cloneNode
in class GeomShape3D
forceDuplicate
- when set to true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.