From: apo Date: Fri, 14 Oct 2005 12:28:50 +0000 (+0000) Subject: Fix on Bug GVIEW10273 X-Git-Tag: TG-D5-38-2003_D2005-20-12~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80ecc83e91f62fe1534e26cb93d0c1cac0c25a44;p=modules%2Fvisu.git Fix on Bug GVIEW10273 "Clipping planes" functionality works incorrectly. To customize Gauss Points presentation by applying myExtractGeometry->SetExtractInside(0); --- diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index cb08c54c..caf88531 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -27,8 +27,9 @@ #include "VISU_GaussPointsPL.hxx" -#include "VISU_DeformedShapePL.hxx" #include "VISU_PipeLineUtils.hxx" +#include "SALOME_ExtractGeometry.h" +#include "VISU_DeformedShapePL.hxx" #include "VISU_OpenGLPointSpriteMapper.hxx" #include @@ -52,8 +53,9 @@ VISU_GaussPointsPL myMagnificationIncrement(2), myAlphaThreshold(0.1) { + myExtractGeometry->SetExtractInside(0); + myPSMapper = VISU_OpenGLPointSpriteMapper::New(); - //myPSMapper->DebugOn(); myGeomFilter = vtkGeometryFilter::New(); } diff --git a/src/PIPELINE/VISU_PipeLine.cxx b/src/PIPELINE/VISU_PipeLine.cxx index 263b1028..fa92ebda 100644 --- a/src/PIPELINE/VISU_PipeLine.cxx +++ b/src/PIPELINE/VISU_PipeLine.cxx @@ -64,9 +64,7 @@ VISU_PipeLine // Clipping planes myExtractGeometry->Delete(); - myExtractGeometry->SetExtractInside(0); myExtractGeometry->SetStoreMapping(true); - //myExtractGeometry->SetReleaseDataFlag(true); vtkImplicitBoolean* anImplicitBoolean = vtkImplicitBoolean::New(); myExtractGeometry->SetImplicitFunction(anImplicitBoolean);