java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.BallPivoting.BasicGrid
Direct Known Subclasses:
StaticGrid

public class BasicGrid extends Object
BasicGrid Basic Class abstracting a gridded structure in a 3d space; Usueful for having coherent float to integer conversion in a unique place: Some Notes: - bbox is the real occupation of the box in the space; - siz is the number of cells for each side OBJTYPE: Type of the indexed objects. SCALARTYPE: Scalars type for structure's internal data (may differ from object's scalar type).
  • Field Details

  • Constructor Details

    • BasicGrid

      public BasicGrid()
  • Method Details

    • computeDimAndVoxel

      public final void computeDimAndVoxel()
    • gridP

      public final Point3 gridP(Point3 p)
    • PToIP

      public final void PToIP(Point3 p, Point3 pi)
    • IPToP

      public void IPToP(Point3 pi, Point3 p)
    • BoxToIBox

      public final void BoxToIBox(Box3 b, Box3 ib)
    • IBoxToBox

      public final void IBoxToBox(Box3 ib, Box3 b)
    • bestDim

      public final void bestDim(int elems, Point3 size, Point3 dim)