Module imp3d

Class SphereSegment

All Implemented Interfaces:
Transformation, Pickable, Polygonizable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class SphereSegment extends MeshNode implements Pickable, Polygonizable, Renderable
See Also:
  • Field Details Link icon

    • radius Link icon

      protected float radius
    • theta1 Link icon

      protected float theta1
    • theta2 Link icon

      protected float theta2
    • phi Link icon

      protected float phi
    • $TYPE Link icon

      public static final Node.NType $TYPE
    • radius$FIELD Link icon

      public static final Node.NType.Field radius$FIELD
    • theta1$FIELD Link icon

      public static final Node.NType.Field theta1$FIELD
    • theta2$FIELD Link icon

      public static final Node.NType.Field theta2$FIELD
    • phi$FIELD Link icon

      public static final Node.NType.Field phi$FIELD
  • Constructor Details Link icon

    • SphereSegment Link icon

      public SphereSegment()
    • SphereSegment Link icon

      public SphereSegment(float radius)
    • SphereSegment Link icon

      public SphereSegment(float radius, float theta1, float theta2, float phi)
  • Method Details Link icon

    • getNTypeImpl Link icon

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class MeshNode
      Returns:
      type describing the managed fields of the class of this node
    • newInstance Link icon

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class MeshNode
      Returns:
      new instance of class of this node
    • getRadius Link icon

      public float getRadius()
    • setRadius Link icon

      public void setRadius(float value)
    • getTheta1 Link icon

      public float getTheta1()
    • setTheta1 Link icon

      public void setTheta1(float value)
    • getTheta2 Link icon

      public float getTheta2()
    • setTheta2 Link icon

      public void setTheta2(float value)
    • getPhi Link icon

      public float getPhi()
    • setPhi Link icon

      public void setPhi(float value)
    • getSurfaceArea Link icon

      public double getSurfaceArea()
      Calculates the area of an object. Intersection with other object are not considered.The total area will be calculated.
      Overrides:
      getSurfaceArea in class MeshNode
      Returns:
      area
    • getVolume Link icon

      public double getVolume()
      Calculates the volume. Intersection with other object are not considered.The total volume will be calculated. V=tbd
      Overrides:
      getVolume in class MeshNode
      Returns:
      volume