Package geomss.j3d

Class TriangleShape3D


  • public class TriangleShape3D
    extends GeomShape3D
    A Shape3D object based on a Triangle. The default appearance of the geometry is solid filled gray with lighting enabled.

    Modified by: Joseph A. Huwaldt

    Version:
    June 4, 2023
    Author:
    Joseph A. Huwaldt, Date: August 27, 2015
    • 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 this 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

      • TriangleShape3D

        public TriangleShape3D​(GeomElement parent,
                               GeomTriangle tri)
        Construct a TriangleShape3D object from the specified AbstactTriangle.
        Parameters:
        parent - The GeomSS geometry element that this Shape3D is associated with.
        tri - The triangle to be converted into a J3D Shape3D object.
      • TriangleShape3D

        public TriangleShape3D​(GeomElement parent,
                               GeomTriangle tri,
                               org.jogamp.java3d.Appearance appearance)
        Construct a TriangleShape3D object from the specified AbstactTriangle.
        Parameters:
        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.
    • Method Detail

      • cloneNode

        public org.jogamp.java3d.Node cloneNode​(boolean forceDuplicate)
        Used to create a new instance of this 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.