Class TriangleMesh
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Decimate.TriangleMesh
-
public class TriangleMesh extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
aveH
(package private) IDList
BEHead
(package private) IDList
BETail
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
bilaplace
(package private) int[]
boundary
(package private) boolean
dipli
(package private) int
EulerC
(package private) int[][]
FaceArray
(package private) int[][]
FaceOrig
(package private) int[]
ffR
(package private) IDList[]
FHead
(package private) IDList[]
FTail
(package private) double[]
H
(package private) IDList[]
IHead
(package private) int[]
index
(package private) IDList[]
ITail
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
KnotInit
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
laplace
(package private) double
maxX
(package private) double
maxY
(package private) double
maxZ
(package private) java.lang.String
meshName
(package private) double
minarea
(package private) double
minX
(package private) double
minY
(package private) double
minZ
(package private) LODMesh
mydecimate
(package private) Mesh
myobj
(package private) int[]
neighborF
(package private) int[]
neighborI
(package private) int[]
neighborV
(package private) int
numberE
(package private) int
numberF
(package private) int
numberFOrig
(package private) int
numberV
(package private) int
numberVOrig
(package private) int
numboundary
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
point
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
pointOrig
(package private) double
scaler
(package private) double
sdviH
(package private) int[][]
subFace
(package private) WildMagic.LibFoundation.Mathematics.Vector3f[]
subpoint
(package private) double
threshold
(package private) WildMagic.LibFoundation.Mathematics.Vector3f
tmppoint3d1
(package private) WildMagic.LibFoundation.Mathematics.Vector3f
tmppoint3d2
(package private) IDList[]
VHead
(package private) IDList[]
VTail
(package private) WildMagic.LibFoundation.Mathematics.Vector3f
Wvex
-
Constructor Summary
Constructors Constructor Description TriangleMesh(WildMagic.LibGraphics.SceneGraph.VertexBuffer pkVBuffer, WildMagic.LibGraphics.SceneGraph.IndexBuffer pkIBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AppendI(int dID, IDList dIHead, IDList dITail, int nowID, int[] dnum)
void
AppendVF(int myID, IDList dVTail)
IDList
back(IDList now)
void
CrossVector(WildMagic.LibFoundation.Mathematics.Vector3f out, WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
void
Decimation(double ddrp)
void
dispose()
Dispose the local memory.double
Distance(WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
void
doDecimation(double dv)
int[][]
getDecimatedFace()
WildMagic.LibGraphics.SceneGraph.IndexBuffer
getDecimatedIBuffer()
WildMagic.LibFoundation.Mathematics.Vector3f[]
getDecimatedPoints()
WildMagic.LibGraphics.SceneGraph.VertexBuffer
getDecimatedVBuffer()
int
getFace(int i, int j, int fi)
int
getFaceQuatity()
int
getFaceQuatityOrig()
java.lang.String
GetName()
void
Init(IDList h, IDList t)
void
InitializeData(int di, double dx, double dy, double dz)
double
InnerProduct(WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
void
MakeArrayData()
void
MakeArrayObj(int dv)
void
MakeFace(int i, int di, int dj, int dk)
void
makeVector(WildMagic.LibFoundation.Mathematics.Vector3f out, WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
void
memoryallocation(int dnumberV, int dnumberF)
IDList
next(IDList now)
double
Point3dSize(WildMagic.LibFoundation.Mathematics.Vector3f in)
void
PropertyUpdate()
void
ReScale(double dv)
void
ScalarVector(WildMagic.LibFoundation.Mathematics.Vector3f out, double dv, WildMagic.LibFoundation.Mathematics.Vector3f in)
private boolean
SearchI(int dID, IDList dIHead, IDList dITail)
void
SetBoundaryStrips()
void
setEdgeN()
void
SetName(java.lang.String name)
void
UpdatePolygon()
private void
UpdatePolyStructure()
private void
UpdatePolyStructureToOrig()
-
-
-
Field Detail
-
maxX
double maxX
-
maxY
double maxY
-
maxZ
double maxZ
-
minX
double minX
-
minY
double minY
-
minZ
double minZ
-
myobj
Mesh myobj
-
dipli
boolean dipli
-
point
WildMagic.LibFoundation.Mathematics.Vector3f[] point
-
aveH
double aveH
-
sdviH
double sdviH
-
H
double[] H
-
minarea
double minarea
-
threshold
double threshold
-
index
int[] index
-
laplace
WildMagic.LibFoundation.Mathematics.Vector3f[] laplace
-
bilaplace
WildMagic.LibFoundation.Mathematics.Vector3f[] bilaplace
-
KnotInit
WildMagic.LibFoundation.Mathematics.Vector3f[] KnotInit
-
numberV
int numberV
-
numberF
int numberF
-
numberE
int numberE
-
EulerC
int EulerC
-
scaler
double scaler
-
BEHead
IDList BEHead
-
BETail
IDList BETail
-
FaceArray
int[][] FaceArray
-
neighborI
int[] neighborI
-
neighborF
int[] neighborF
-
neighborV
int[] neighborV
-
FHead
IDList[] FHead
-
FTail
IDList[] FTail
-
VHead
IDList[] VHead
-
VTail
IDList[] VTail
-
IHead
IDList[] IHead
-
ITail
IDList[] ITail
-
boundary
int[] boundary
-
numboundary
int numboundary
-
subpoint
WildMagic.LibFoundation.Mathematics.Vector3f[] subpoint
-
subFace
int[][] subFace
-
mydecimate
LODMesh mydecimate
-
tmppoint3d1
WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d1
-
tmppoint3d2
WildMagic.LibFoundation.Mathematics.Vector3f tmppoint3d2
-
Wvex
WildMagic.LibFoundation.Mathematics.Vector3f Wvex
-
ffR
int[] ffR
-
numberVOrig
int numberVOrig
-
numberFOrig
int numberFOrig
-
pointOrig
WildMagic.LibFoundation.Mathematics.Vector3f[] pointOrig
-
FaceOrig
int[][] FaceOrig
-
meshName
java.lang.String meshName
-
-
Method Detail
-
SetName
public void SetName(java.lang.String name)
-
GetName
public java.lang.String GetName()
-
doDecimation
public void doDecimation(double dv) throws java.lang.Exception
- Throws:
java.lang.Exception
-
ReScale
public void ReScale(double dv)
-
setEdgeN
public void setEdgeN()
-
InitializeData
public void InitializeData(int di, double dx, double dy, double dz)
-
memoryallocation
public void memoryallocation(int dnumberV, int dnumberF)
-
dispose
public void dispose()
Dispose the local memory.
-
AppendVF
public void AppendVF(int myID, IDList dVTail)
-
MakeFace
public void MakeFace(int i, int di, int dj, int dk)
-
SetBoundaryStrips
public void SetBoundaryStrips()
-
MakeArrayObj
public void MakeArrayObj(int dv)
-
MakeArrayData
public void MakeArrayData()
-
UpdatePolygon
public void UpdatePolygon()
-
PropertyUpdate
public void PropertyUpdate()
-
UpdatePolyStructure
private void UpdatePolyStructure()
-
UpdatePolyStructureToOrig
private void UpdatePolyStructureToOrig()
-
makeVector
public void makeVector(WildMagic.LibFoundation.Mathematics.Vector3f out, WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
-
CrossVector
public void CrossVector(WildMagic.LibFoundation.Mathematics.Vector3f out, WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
-
InnerProduct
public double InnerProduct(WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
-
ScalarVector
public void ScalarVector(WildMagic.LibFoundation.Mathematics.Vector3f out, double dv, WildMagic.LibFoundation.Mathematics.Vector3f in)
-
Point3dSize
public double Point3dSize(WildMagic.LibFoundation.Mathematics.Vector3f in)
-
Distance
public double Distance(WildMagic.LibFoundation.Mathematics.Vector3f in1, WildMagic.LibFoundation.Mathematics.Vector3f in2)
-
Decimation
public void Decimation(double ddrp) throws java.io.IOException
- Throws:
java.io.IOException
-
getFaceQuatityOrig
public int getFaceQuatityOrig()
-
getFaceQuatity
public int getFaceQuatity()
-
getDecimatedVBuffer
public WildMagic.LibGraphics.SceneGraph.VertexBuffer getDecimatedVBuffer()
-
getDecimatedIBuffer
public WildMagic.LibGraphics.SceneGraph.IndexBuffer getDecimatedIBuffer()
-
getDecimatedPoints
public WildMagic.LibFoundation.Mathematics.Vector3f[] getDecimatedPoints()
-
getDecimatedFace
public int[][] getDecimatedFace()
-
getFace
public int getFace(int i, int j, int fi)
-
-