refactor local isosurfacing for performance

This commit is contained in:
James E McClure
2018-09-16 13:36:43 -04:00
parent f6be95caeb
commit b1f7157593
2 changed files with 12 additions and 11 deletions

View File

@@ -76,6 +76,8 @@ int Halfedge::size(){
DECL::DECL(){
cellvertices=DTMutableList<Point>(20);
Triangles.resize(3,20);
}
DECL::~DECL(){
@@ -95,17 +97,7 @@ void DECL::LocalIsosurface(const DoubleArray A, double value, const int i, const
int CubeIndex;
int nTris = 0;
int nVert =0;
Point VertexList[12];
Point NewVertexList[12];
int LocalRemap[12];
DTMutableList<Point> cellvertices = DTMutableList<Point>(20);
IntArray Triangles = IntArray(3,20);
// Values from array 'A' at the cube corners
double CubeValues[8];
int nVert = 0;
// Points corresponding to cube corners
C0.x = 0.0; C0.y = 0.0; C0.z = 0.0;

View File

@@ -60,4 +60,13 @@ public:
private:
Array <int> FaceData;
Point VertexList[12];
Point NewVertexList[12];
int LocalRemap[12];
double CubeValues[8];
DTMutableList<Point> cellvertices;// = DTMutableList<Point>(20);
IntArray Triangles;// = IntArray(3,20);
};