Optimize: LR-spline tesselation (ref LR-spline revision 86)
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1174 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
parent
2c5ed6bfd6
commit
4f787d9ca2
@ -32,7 +32,6 @@
|
|||||||
#include "Profiler.h"
|
#include "Profiler.h"
|
||||||
#include "Vec3Oper.h"
|
#include "Vec3Oper.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
// #define SP_DEBUG 5
|
// #define SP_DEBUG 5
|
||||||
|
|
||||||
@ -179,6 +178,7 @@ bool ASMu2D::diagonalRefine (int minBasisfunctions)
|
|||||||
meshFile.open("mesh.eps");
|
meshFile.open("mesh.eps");
|
||||||
lrspline->writePostscriptMesh(meshFile);
|
lrspline->writePostscriptMesh(meshFile);
|
||||||
meshFile.close();
|
meshFile.close();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1158,7 +1158,7 @@ bool ASMu2D::tesselate (ElementBlock& grid, const int* npe) const
|
|||||||
double u = (iu==0) ? umin : umax;
|
double u = (iu==0) ? umin : umax;
|
||||||
double v = (iv==0) ? vmin : vmax;
|
double v = (iv==0) ? vmin : vmax;
|
||||||
Go::Point pt;
|
Go::Point pt;
|
||||||
lrspline->point(pt, u,v);
|
lrspline->point(pt, u,v, iel);
|
||||||
for(int dim=0; dim<nsd; dim++)
|
for(int dim=0; dim<nsd; dim++)
|
||||||
grid.setCoor(inod, dim, pt[dim]);
|
grid.setCoor(inod, dim, pt[dim]);
|
||||||
inod++;
|
inod++;
|
||||||
|
Loading…
Reference in New Issue
Block a user