public class TriangleShape3D extends GeomShape3D
Triangle
. The default
appearance of the geometry is solid filled grey with lighting enabled.
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
TriangleShape3D(GeomElement parent,
GeomTriangle tri)
Construct a TriangleShape3D object from the specified AbstactTriangle.
|
TriangleShape3D(GeomElement parent,
GeomTriangle tri,
Appearance appearance)
Construct a TriangleShape3D object from the specified AbstactTriangle.
|
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean forceDuplicate)
Used to create a new instance of this node.
|
getGeometryElement
public TriangleShape3D(GeomElement parent, GeomTriangle tri)
parent
- The GeomSS geometry element that this Shape3D is associated with.tri
- The triangle to be converted into a J3D Shape3D object.public TriangleShape3D(GeomElement parent, GeomTriangle tri, Appearance appearance)
parent
- The GeomSS geometry element that this Shape3D is associated with.tri
- The triangle to be converted into a J3D Shape3D object.appearance
- The Appearance to use when rendering the triangle.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.