Package geomss.j3d

Class PointArrayShape3D


  • public class PointArrayShape3D
    extends GeomShape3D
    A Shape3D object based on a PointArray. 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
    • 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 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
      • Methods inherited from class org.jogamp.java3d.SceneGraphObject

        clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PointArrayShape3D

        public PointArrayShape3D​(GeomElement parent,
                                 PointArray<? extends GeomPoint> array)
        Construct a PointArrayShape3D object from the specified PointArray.
        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 specified PointArray.
        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 specified PointArray.
        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 specified PointArray.
        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". If null 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 class GeomShape3D
        Parameters:
        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.
        Returns:
        A new instance of this Java3D node.