mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 08:30:33 +05:00
52567: Transformation operations does not work for Group of Balls
Show at least points in the preview of balls
This commit is contained in:
parent
81d346a7a7
commit
e3e19dc2fa
@ -330,6 +330,7 @@ double SMESH_Mesh::GetShapeDiagonalSize(const TopoDS_Shape & aShape)
|
|||||||
if ( !aShape.IsNull() ) {
|
if ( !aShape.IsNull() ) {
|
||||||
Bnd_Box Box;
|
Bnd_Box Box;
|
||||||
GEOMUtils::PreciseBoundingBox(aShape, Box);
|
GEOMUtils::PreciseBoundingBox(aShape, Box);
|
||||||
|
if ( !Box.IsVoid() )
|
||||||
return sqrt( Box.SquareExtent() );
|
return sqrt( Box.SquareExtent() );
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -126,6 +126,7 @@ vtkIdType getCellType( const SMDSAbs_ElementType theType,
|
|||||||
{
|
{
|
||||||
switch( theType )
|
switch( theType )
|
||||||
{
|
{
|
||||||
|
case SMDSAbs_Ball: return VTK_VERTEX;
|
||||||
case SMDSAbs_Node: return VTK_VERTEX;
|
case SMDSAbs_Node: return VTK_VERTEX;
|
||||||
case SMDSAbs_Edge:
|
case SMDSAbs_Edge:
|
||||||
if( theNbNodes == 2 ) return VTK_LINE;
|
if( theNbNodes == 2 ) return VTK_LINE;
|
||||||
|
Loading…
Reference in New Issue
Block a user