From 679afe06b19420bfd9a06a82c7bc7d1e88cf41a8 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 26 Apr 2012 19:20:47 +0000 Subject: [PATCH] facet visualization for quads --- libsrc/interface/nginterface.cpp | 2 +- libsrc/visualization/vssolution.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index a5f7e7a1..215029ad 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -1269,7 +1269,7 @@ void Ng_HPRefinement (int levels, double parameter, bool setorders, { NgLock meshlock (mesh->MajorMutex(), true); Refinement & ref = const_cast (ng_geometry -> GetRefinement()); - HPRefinement (*mesh, &ref, levels); + HPRefinement (*mesh, &ref, levels, parameter, setorders, ref_level); /* Refinement * ref; diff --git a/libsrc/visualization/vssolution.cpp b/libsrc/visualization/vssolution.cpp index e480a149..a4f0eff7 100644 --- a/libsrc/visualization/vssolution.cpp +++ b/libsrc/visualization/vssolution.cpp @@ -1334,14 +1334,18 @@ namespace netgen ArrayMem, 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 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 quadpts[4][2] = { { 0, 0 }, { 1, 0 }, { 1, 1 }, { 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++) {