Class Mesh


  • public class Mesh
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) WildMagic.LibFoundation.Mathematics.Vector3f ddnormalv3d  
      (package private) int numberF  
      (package private) int numberV  
      (package private) boolean pastelnormal  
      (package private) double scaler  
      (package private) WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d1  
      (package private) WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d2  
      (package private) int type  
      (package private) WildMagic.LibFoundation.Mathematics.Vector3f v1v3d  
      (package private) WildMagic.LibFoundation.Mathematics.Vector3f v2v3d  
      WildMagic.LibFoundation.Mathematics.Vector3f[] verts  
    • Constructor Summary

      Constructors 
      Constructor Description
      Mesh​(int id)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the local memory.
      private static java.lang.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 MemoryAllocation()  
      private static java.io.File[] openFiles​(boolean bLoad)
      Returns an array of File objects, based on the user-selected files from the FileChooser dialog.
      protected void printSTLAscii​(java.io.PrintWriter kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage kImage)  
      protected void printSTLBinary​(java.io.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 Detail

      • 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 Detail

      • Mesh

        public Mesh​(int id)
    • Method Detail

      • 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 java.io.IOException
        Sate the STIL ACII file format.
        Parameters:
        kName - file name
        Throws:
        java.io.IOException
      • printSTLAscii

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

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

        private static java.io.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 java.lang.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​(java.io.RandomAccessFile kOut,
                                      int numF,
                                      int[][] face,
                                      WildMagic.LibFoundation.Mathematics.Vector3f[] point)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • MakeFace

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