Class Mesh
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Decimate.Mesh
-
public class Mesh extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) WildMagic.LibFoundation.Mathematics.Vector3fddnormalv3d(package private) intnumberF(package private) intnumberV(package private) booleanpastelnormal(package private) doublescaler(package private) WildMagic.LibFoundation.Mathematics.Vector3ftmppoint3d1(package private) WildMagic.LibFoundation.Mathematics.Vector3ftmppoint3d2(package private) inttype(package private) WildMagic.LibFoundation.Mathematics.Vector3fv1v3d(package private) WildMagic.LibFoundation.Mathematics.Vector3fv2v3dWildMagic.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 voiddispose()Dispose the local memory.private static java.lang.StringgetFileName(boolean bLoad)Calls a dialog to get a file name.voidMakeFace(int i, int di, int dj, int dk, WildMagic.LibFoundation.Mathematics.Vector3f[] point)private voidMemoryAllocation()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 voidprintSTLAscii(java.io.PrintWriter kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage kImage)protected voidprintSTLBinary(java.io.RandomAccessFile kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point)voidreNew(int dv, int df, double dcaler)voidsaveAsSTLAsciiFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage imageA)Sate the STIL ACII file format.voidsaveAsSTLBinaryFile(int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point)
-
-
-
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
-
-
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.IOExceptionSate 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- iftrue, 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)
-
-