java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Decimate.Mesh

public class Mesh extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) WildMagic.LibFoundation.Mathematics.Vector3f
     
    (package private) int
     
    (package private) int
     
    (package private) boolean
     
    (package private) double
     
    (package private) WildMagic.LibFoundation.Mathematics.Vector3f
     
    (package private) WildMagic.LibFoundation.Mathematics.Vector3f
     
    (package private) int
     
    (package private) WildMagic.LibFoundation.Mathematics.Vector3f
     
    (package private) WildMagic.LibFoundation.Mathematics.Vector3f
     
    WildMagic.LibFoundation.Mathematics.Vector3f[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Mesh(int id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispose the local memory.
    private static String
    getFileName(boolean bLoad)
    Calls a dialog to get a file name.
    void
    MakeFace(int i, int di, int dj, int dk, WildMagic.LibFoundation.Mathematics.Vector3f[] point)
     
    private void
     
    private static File[]
    openFiles(boolean bLoad)
    Returns an array of File objects, based on the user-selected files from the FileChooser dialog.
    protected void
    printSTLAscii(PrintWriter kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage kImage)
     
    protected void
    printSTLBinary(RandomAccessFile kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point)
     
    void
    reNew(int dv, int df, double dcaler)
     
    void
    saveAsSTLAsciiFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage imageA)
    Sate the STIL ACII file format.
    void
    saveAsSTLBinaryFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • numberV

      int numberV
    • numberF

      int numberF
    • verts

      public WildMagic.LibFoundation.Mathematics.Vector3f[] verts
    • scaler

      double scaler
    • ddnormalv3d

      WildMagic.LibFoundation.Mathematics.Vector3f ddnormalv3d
    • v1v3d

      WildMagic.LibFoundation.Mathematics.Vector3f v1v3d
    • v2v3d

      WildMagic.LibFoundation.Mathematics.Vector3f v2v3d
    • tmppoint3d1

      WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d1
    • tmppoint3d2

      WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d2
    • pastelnormal

      boolean pastelnormal
    • type

      int type
  • Constructor Details

    • Mesh

      public Mesh(int id)
  • Method Details

    • dispose

      public void dispose()
      Dispose the local memory.
    • reNew

      public void reNew(int dv, int df, double dcaler)
    • MemoryAllocation

      private void MemoryAllocation()
    • saveAsSTLAsciiFile

      public void saveAsSTLAsciiFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage imageA) throws IOException
      Sate the STIL ACII file format.
      Parameters:
      kName - file name
      Throws:
      IOException
    • printSTLAscii

      protected void printSTLAscii(PrintWriter kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage kImage) throws IOException
      Throws:
      IOException
    • saveAsSTLBinaryFile

      public void saveAsSTLBinaryFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point) throws IOException
      Throws:
      IOException
    • openFiles

      private static File[] openFiles(boolean bLoad)
      Returns an array of File objects, based on the user-selected files from the FileChooser dialog.
      Parameters:
      bLoad - whether the files are opened for reading (bLoad = true) or writing (bLoad = false)
      Returns:
      File[] array of opened files.
    • getFileName

      private static String getFileName(boolean bLoad)
      Calls a dialog to get a file name.
      Parameters:
      bLoad - if true, make it a load dialog.
      Returns:
      File name.
    • printSTLBinary

      protected void printSTLBinary(RandomAccessFile kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point) throws IOException
      Throws:
      IOException
    • MakeFace

      public void MakeFace(int i, int di, int dj, int dk, WildMagic.LibFoundation.Mathematics.Vector3f[] point)