TC: Sphere and Plane segmentation for planar mesh give SIGFPE fatal error
- Additional checks were provided in order to avoid calaculation on invalid bounding boxes
}
//----------------------------------------------------------------------------
-bool VISU_GaussPtsAct::IsInfinitive()
+bool
+VISU_GaussPtsAct
+::IsInfinitive()
{
if(vtkMapper* aMapper = myDeviceActor->GetMapper()){
if(vtkDataSet* aDataSet= aMapper->GetInput()){
return myIsInfinite;
}
+//----------------------------------------------------------------------------
+int
+VISU_GaussPtsAct
+::GetPickable()
+{
+ return myDeviceActor->GetPickable();
+}
+
//----------------------------------------------------------------------------
bool
VISU_GaussPtsAct
bool
IsInfinitive();
+ virtual
+ int
+ GetPickable();
+
protected:
//----------------------------------------------------------------------------
VISU_GaussPtsAct();
return myMapper.GetPointer();
}
+int
+VISU_GaussPtsDeviceActor
+::GetPickable()
+{
+ if(Superclass::GetPickable()){
+ if(vtkMapper* aMapper = GetPSMapper()){
+ if(vtkDataSet* aDataSet= aMapper->GetInput()){
+ aDataSet->Update();
+ return aDataSet->GetNumberOfCells() > 0;
+ }
+ }
+ }
+
+ return false;
+}
+
//----------------------------------------------------------------------------
void
VISU_OpenGLPointSpriteMapper*
GetPSMapper();
+ virtual
+ int
+ GetPickable();
+
protected:
//----------------------------------------------------------------------------
vtkSmartPointer<VISU_GaussPointsPL> myPipeLine;