Package geomss.j3d
Class PointArrayShape3D
- java.lang.Object
-
- org.jogamp.java3d.SceneGraphObject
-
- org.jogamp.java3d.Node
-
- org.jogamp.java3d.Leaf
-
- org.jogamp.java3d.Shape3D
-
- geomss.j3d.GeomShape3D
-
- geomss.j3d.PointArrayShape3D
-
public class PointArrayShape3D extends GeomShape3D
A Shape3D object based on aPointArray
. The default appearance of the geometry is solid filled grey with lighting enabled.Modified by: Joseph A. Huwaldt
- Version:
- February 17, 2025
- Author:
- Joseph A. Huwaldt, Date: April 5, 2009
-
-
Field Summary
-
Fields inherited from class org.jogamp.java3d.Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
-
Fields inherited from class org.jogamp.java3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
-
-
Constructor Summary
Constructors Constructor Description PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array)
Construct a PointArrayShape3D object from the specifiedPointArray
.PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, java.util.List<java.util.List<GeomVector<javax.measure.quantity.Dimensionless>>> normals, org.jogamp.java3d.Appearance appearance, boolean stripify)
Construct a PointArrayShape3D object from the specifiedPointArray
.PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, org.jogamp.java3d.Appearance appearance)
Construct a PointArrayShape3D object from the specifiedPointArray
.PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, org.jogamp.java3d.Appearance appearance, boolean stripify)
Construct a PointArrayShape3D object from the specifiedPointArray
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jogamp.java3d.Node
cloneNode(boolean forceDuplicate)
Used to create a new instance of the node.-
Methods inherited from class geomss.j3d.GeomShape3D
getGeometryElement
-
Methods inherited from class org.jogamp.java3d.Shape3D
addGeometry, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
-
Methods inherited from class org.jogamp.java3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
-
-
-
-
Constructor Detail
-
PointArrayShape3D
public PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array)
Construct a PointArrayShape3D object from the specifiedPointArray
.- Parameters:
parent
- The GeomSS geometry element that this Shape3D is associated with.array
- The PointArray to be converted into a J3D Shape3D object.- Throws:
java.lang.IllegalArgumentException
- if array.size() < 2
-
PointArrayShape3D
public PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, org.jogamp.java3d.Appearance appearance)
Construct a PointArrayShape3D object from the specifiedPointArray
.- Parameters:
parent
- The GeomSS geometry element that this Shape3D is associated with.array
- The PointArray to be converted into a J3D Shape3D object.appearance
- The Appearance to use when rendering the point array.- Throws:
java.lang.IllegalArgumentException
- if array.size() < 2
-
PointArrayShape3D
public PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, org.jogamp.java3d.Appearance appearance, boolean stripify)
Construct a PointArrayShape3D object from the specifiedPointArray
.- Parameters:
parent
- The GeomSS geometry element that this Shape3D is associated with.array
- The PointArray to be converted into a J3D Shape3D object.appearance
- The Appearance to use when rendering the point array.stripify
- Flag indicating if the array of quadrilateral panels should be converted into triangle strips for rendering or not.- Throws:
java.lang.IllegalArgumentException
- if array.size() < 2
-
PointArrayShape3D
public PointArrayShape3D(GeomElement parent, PointArray<? extends GeomPoint> array, java.util.List<java.util.List<GeomVector<javax.measure.quantity.Dimensionless>>> normals, org.jogamp.java3d.Appearance appearance, boolean stripify)
Construct a PointArrayShape3D object from the specifiedPointArray
.- Parameters:
parent
- The GeomSS geometry element that this Shape3D is associated with.array
- The PointArray to be converted into a J3D Shape3D object.normals
- A list of lists of surface normals, one for each point in "array". Ifnull
is provided, the surface normals will be automatically estimated from the vertex data.appearance
- The Appearance to use when rendering the point array.stripify
- Flag indicating if the array of quadrilateral panels should be converted into triangle strips for rendering or not.- Throws:
java.lang.IllegalArgumentException
- if array.size() < 2
-
-
Method Detail
-
cloneNode
public org.jogamp.java3d.Node cloneNode(boolean forceDuplicate)
Used to create a new instance of the node.- Overrides:
cloneNode
in classGeomShape3D
- Parameters:
forceDuplicate
- when set totrue
, causes theduplicateOnCloneTree
flag to be ignored. Whenfalse
, the value of each node'sduplicateOnCloneTree
variable determines whether NodeComponent data is duplicated or copied.- Returns:
- A new instance of this Java3D node.
-
-