From 0f9dfaa83b994c9d7fdd893f418395fad145f388 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Mon, 11 Sep 2017 17:18:46 +0200 Subject: [PATCH] introduction of penta18 in VTK viewer --- src/VTKViewer/VTKViewer_GeometryFilter.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index a289dc87c..cdc26ff24 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -877,6 +877,7 @@ VTKViewer_GeometryFilter case VTK_QUADRATIC_HEXAHEDRON: case VTK_TRIQUADRATIC_HEXAHEDRON: case VTK_QUADRATIC_WEDGE: + case VTK_BIQUADRATIC_QUADRATIC_WEDGE: case VTK_QUADRATIC_PYRAMID: if(!myIsWireframeMode) @@ -939,11 +940,12 @@ VTKViewer_GeometryFilter { int npts1 = 0; switch (aCellType ){ - case VTK_QUADRATIC_TETRA: npts1 = 4; break; - case VTK_QUADRATIC_HEXAHEDRON: npts1 = 8; break; - case VTK_TRIQUADRATIC_HEXAHEDRON: npts1 = 8; break; - case VTK_QUADRATIC_WEDGE: npts1 = 6; break; - case VTK_QUADRATIC_PYRAMID: npts1 = 5; break; + case VTK_QUADRATIC_TETRA: npts1 = 4; break; + case VTK_QUADRATIC_HEXAHEDRON: npts1 = 8; break; + case VTK_TRIQUADRATIC_HEXAHEDRON: npts1 = 8; break; + case VTK_QUADRATIC_WEDGE: npts1 = 6; break; + case VTK_BIQUADRATIC_QUADRATIC_WEDGE: npts1 = 6; break; + case VTK_QUADRATIC_PYRAMID: npts1 = 5; break; } faceIdsTmp->SetNumberOfIds( npts1 ); if ( npts1 > 0 ) { @@ -1086,6 +1088,7 @@ VTKViewer_GeometryFilter } case VTK_QUADRATIC_TETRA: case VTK_QUADRATIC_WEDGE: + case VTK_BIQUADRATIC_QUADRATIC_WEDGE: case VTK_TRIQUADRATIC_HEXAHEDRON: case VTK_QUADRATIC_HEXAHEDRON: case VTK_QUADRATIC_PYRAMID: -- 2.39.2