facet visualization for quads

This commit is contained in:
Joachim Schoeberl 2012-04-26 19:20:47 +00:00
parent f6142d027e
commit 679afe06b1
2 changed files with 8 additions and 4 deletions

View File

@ -1269,7 +1269,7 @@ void Ng_HPRefinement (int levels, double parameter, bool setorders,
{ {
NgLock meshlock (mesh->MajorMutex(), true); NgLock meshlock (mesh->MajorMutex(), true);
Refinement & ref = const_cast<Refinement&> (ng_geometry -> GetRefinement()); Refinement & ref = const_cast<Refinement&> (ng_geometry -> GetRefinement());
HPRefinement (*mesh, &ref, levels); HPRefinement (*mesh, &ref, levels, parameter, setorders, ref_level);
/* /*
Refinement * ref; Refinement * ref;

View File

@ -1334,14 +1334,18 @@ namespace netgen
ArrayMem<Point<3>, 65> ptsglob(n+1); ArrayMem<Point<3>, 65> ptsglob(n+1);
/* /*
double trigpts[3][2] = { { 0, 0 }, { 1, 0 }, { 0, 1} }; double trigpts[3][2] = { { 0, 0 }, { 1, 0 }, { 0, 1} };
double trigvecs[3][2] = { { 1, 0 }, { -1,1 }, { 0, -1} }; double trigvecs[3][2] = { { 1, 0 }, { -1,1 }, { 0, -1} };
*/ */
double trigpts[3][2] = { { 0, 0 }, { 0, 1 }, { 1, 0} }; double trigpts[3][2] = { { 0, 0 }, { 0, 1 }, { 1, 0} };
double trigvecs[3][2] = { { 1, 0 }, { 0, -1 }, { -1, 1} }; double trigvecs[3][2] = { { 1, 0 }, { 0, -1 }, { -1, 1} };
/*
double quadpts[4][2] = { { 0, 0 }, { 1, 0 }, { 1, 1 }, { 0, 1} }; double quadpts[4][2] = { { 0, 0 }, { 1, 0 }, { 1, 1 }, { 0, 1} };
double quadvecs[4][2] = { { 1, 0 }, { 0, 1 }, { -1, 0}, { 0, -1} }; double quadvecs[4][2] = { { 1, 0 }, { 0, 1 }, { -1, 0}, { 0, -1} };
*/
double quadpts[4][2] = { { 0, 0 }, { 1, 1 }, { 0, 1}, { 1, 0 } };
double quadvecs[4][2] = { { 1, 0 }, { -1, 0}, { 0, -1}, { 0, 1 } };
for (SurfaceElementIndex sei = 0; sei < nse; sei++) for (SurfaceElementIndex sei = 0; sei < nse; sei++)
{ {