mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 16:32:04 +05:00
NPAL15983 (EDF PAL 413: Bug when displaying empty groups)
void GEOM_Displayer::Update( SALOME_OCCPrs* prs ) { ... + if (!TopoDS_Iterator(myShape).More()) return;
This commit is contained in:
parent
d963823e09
commit
3008c91893
@ -82,6 +82,7 @@
|
||||
#include <gp_Pln.hxx>
|
||||
#include <TColStd_MapOfInteger.hxx>
|
||||
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
|
||||
// VTK Includes
|
||||
#include <vtkActorCollection.h>
|
||||
@ -525,8 +526,11 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
||||
Handle(GEOM_AISShape) AISShape;
|
||||
if (myType == GEOM_VECTOR)
|
||||
AISShape = new GEOM_AISVector (myShape, "");
|
||||
else
|
||||
else {
|
||||
if (!TopoDS_Iterator(myShape).More())
|
||||
return;// NPAL15983 (Bug when displaying empty groups)
|
||||
AISShape = new GEOM_AISShape (myShape, "");
|
||||
}
|
||||
// Temporary staff: vertex must be infinite for correct visualization
|
||||
AISShape->SetInfiniteState( myShape.Infinite() || myShape.ShapeType() == TopAbs_VERTEX );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user