]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed Bug GVIEW10293 : Low plane of Segmentation cursor is invisible and unselectable...
authorouv <ouv@opencascade.com>
Mon, 17 Oct 2005 06:48:16 +0000 (06:48 +0000)
committerouv <ouv@opencascade.com>
Mon, 17 Oct 2005 06:48:16 +0000 (06:48 +0000)
src/PIPELINE/VISU_ImplicitFunctionWidget.cxx

index fb8f407fcee48e26b256f8426274b772d235d1e2..258fcafa39719cb187edca3bf58c8488ca3a66fe 100644 (file)
@@ -1005,6 +1005,13 @@ void VISU_ImplicitFunctionWidget::Push(double *p1, double *p2)
   v[1] = p2[1] - p1[1];
   v[2] = p2[2] - p1[2];
   
+  float z0 = this->Plane->GetOrigin()[2];
+  double distance = vtkMath::Dot( v, myPlane2->GetNormal() );
+  float z1 = z0 + distance * myPlane2->GetNormal()[2];
+
+  if( z1 <= this->Box->GetOrigin()[2] )
+    return;
+
   this->Plane->Push( vtkMath::Dot(v,this->Plane->GetNormal()) );
   this->SetOrigin(this->Plane->GetOrigin());
   myPlane2->Push( vtkMath::Dot(v,this->Plane->GetNormal()) );