Class ClipPlane

java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.shapes.util.ClipPlane
All Implemented Interfaces:
InterfaceObject, NamedObject, TreeObject, CleanableObject

public class ClipPlane
extends AbstractInterfaceObject
Class specifies a clipping region around a plane, with back and front clip distances.
Author:
Andrew Reid
  • Field Details

    • plane

      public Plane3D plane
    • up_distance

      public float up_distance
    • down_distance

      public float down_distance
    • apply_clip

      public boolean apply_clip
  • Constructor Details

    • ClipPlane

      public ClipPlane​(Plane3D plane, float up_distance, float down_distance)
  • Method Details

    • getModelClip

      public org.jogamp.java3d.ModelClip getModelClip()
      Plane for model clip defined as 4-vector, with elements A, B, C, D obtained from the plane equation Ax + By + Cz + D <= 0. See also: http://en.wikipedia.org/wiki/Plane_(mathematics)
      Returns:
      ModelClip to add to a java3d scene
    • setModelClip

      public void setModelClip​(org.jogamp.java3d.ModelClip clip)
    • registerModelClip

      public void registerModelClip​(org.jogamp.java3d.ModelClip clip)
    • deregisterModelClip

      public void deregisterModelClip​(org.jogamp.java3d.ModelClip clip)
    • setFromSectionSet

      public void setFromSectionSet​(SectionSet3DInt set, int section)