Class Mesh
java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.Decimate.Mesh
-
Field Summary
FieldsModifier and TypeFieldDescription(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.Vector3fWildMagic.LibFoundation.Mathematics.Vector3f[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the local memory.private static 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 voidprivate static File[]openFiles(boolean bLoad) Returns an array of File objects, based on the user-selected files from the FileChooser dialog.protected voidprintSTLAscii(PrintWriter kOut, int numF, int[][] face, WildMagic.LibFoundation.Mathematics.Vector3f[] point, ModelImage kImage) protected voidprintSTLBinary(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 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
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
Calls a dialog to get a file name.- Parameters:
bLoad- iftrue, 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)
-