Skip to content
Snippets Groups Projects
Commit 39615564 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better subdivision scheme for drawing scalar hexahedra (with edges matching
on opposite faces)
parent cb9b4e60
No related branches found
No related tags found
No related merge requests found
// $Id: PostElement.cpp,v 1.62 2005-03-11 05:47:56 geuzaine Exp $ // $Id: PostElement.cpp,v 1.63 2005-03-14 21:19:32 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -697,10 +697,20 @@ void Draw_ScalarHexahedron(Post_View * View, int preproNormals, ...@@ -697,10 +697,20 @@ void Draw_ScalarHexahedron(Post_View * View, int preproNormals,
Draw_ElementBoundary(POST_HEXAHEDRON, View, X, Y, Z); Draw_ElementBoundary(POST_HEXAHEDRON, View, X, Y, Z);
} }
REORDER6(0, 1, 3, 4, 5, 7); // 6-tet subdivision whose edges match on each pair of opposite faces
Draw_ScalarPrism(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val); REORDER4(0, 1, 3, 7);
REORDER6(1, 2, 3, 5, 6, 7); Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
Draw_ScalarPrism(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val); REORDER4(0, 4, 1, 7);
Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
REORDER4(1, 4, 5, 7);
Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
REORDER4(1, 2, 3, 7);
Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
REORDER4(1, 6, 2, 7);
Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
REORDER4(1, 5, 6, 7);
Draw_ScalarTetrahedron(View, preproNormals, ValMin, ValMax, Xp, Yp, Zp, Val);
View->TimeStep = ts; View->TimeStep = ts;
View->ShowElement = show; View->ShowElement = show;
......
$Id: TODO,v 1.90 2005-03-13 09:13:50 geuzaine Exp $ $Id: TODO,v 1.91 2005-03-14 21:19:32 geuzaine Exp $
******************************************************************** ********************************************************************
...@@ -23,10 +23,6 @@ add option to draw "filled isos" using 1D textures? ...@@ -23,10 +23,6 @@ add option to draw "filled isos" using 1D textures?
******************************************************************** ********************************************************************
use marching cube algo for hexas to make iso-surfaces nicer?
********************************************************************
add GUI for add GUI for
- translate+rotate extrusions - translate+rotate extrusions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment