52567: Transformation operations does not work for Group of Balls

Show at least points in the preview of balls
This commit is contained in:
eap 2014-10-30 19:30:46 +03:00
parent 81d346a7a7
commit e3e19dc2fa
2 changed files with 4 additions and 2 deletions

View File

@ -330,7 +330,8 @@ double SMESH_Mesh::GetShapeDiagonalSize(const TopoDS_Shape & aShape)
if ( !aShape.IsNull() ) {
Bnd_Box Box;
GEOMUtils::PreciseBoundingBox(aShape, Box);
return sqrt( Box.SquareExtent() );
if ( !Box.IsVoid() )
return sqrt( Box.SquareExtent() );
}
return 0;
}

View File

@ -126,8 +126,9 @@ vtkIdType getCellType( const SMDSAbs_ElementType theType,
{
switch( theType )
{
case SMDSAbs_Ball: return VTK_VERTEX;
case SMDSAbs_Node: return VTK_VERTEX;
case SMDSAbs_Edge:
case SMDSAbs_Edge:
if( theNbNodes == 2 ) return VTK_LINE;
else if ( theNbNodes == 3 ) return VTK_QUADRATIC_EDGE;
else return VTK_EMPTY_CELL;