public class GeomShape3D extends Shape3D
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
GeomShape3D(GeomElement parent)
Constructs a Shape3D node with default parameters.
|
GeomShape3D(GeomElement parent,
Geometry geometry)
Constructs and initializes a Shape3D node with the specified geometry component and
a null appearance component.
|
GeomShape3D(GeomElement parent,
Geometry geometry,
Appearance appearance)
Constructs and initializes a Shape3D node with the specified geometry and
appearance components.
|
Modifier and Type | Method and Description |
---|---|
Node |
cloneNode(boolean forceDuplicate)
Used to create a new instance of the node.
|
GeomElement |
getGeometryElement()
Return a reference to the GeomSS geometry element that this shape is associated
with.
|
public GeomShape3D(GeomElement parent)
parent
- The GeomSS geometry element that this Shape3D is associated with.public GeomShape3D(GeomElement parent, Geometry geometry)
parent
- The GeomSS geometry element that this Shape3D is associated with.geometry
- The geometry component with which to initialize this shape node.public GeomShape3D(GeomElement parent, Geometry geometry, Appearance appearance)
parent
- The GeomSS geometry element that this Shape3D is associated with.geometry
- The geometry component with which to initialize this shape node.appearance
- The appearance component of the shape node.public GeomElement getGeometryElement()
public Node cloneNode(boolean forceDuplicate)
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.