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_AssemblyBuilder::MeshShape() { ... Bnd_Box B; BRepBndLib::Add(myShape, B); + if ( B.IsVoid() ) return;
This commit is contained in:
parent
3008c91893
commit
85634d969f
@ -174,6 +174,7 @@ void GEOM_AssemblyBuilder::MeshShape(const TopoDS_Shape myShape,
|
||||
// Compute default deflection
|
||||
Bnd_Box B;
|
||||
BRepBndLib::Add(myShape, B);
|
||||
if ( B.IsVoid() ) return; // NPAL15983 (Bug when displaying empty groups)
|
||||
Standard_Real aXmin, aYmin, aZmin, aXmax, aYmax, aZmax;
|
||||
B.Get(aXmin, aYmin, aZmin, aXmax, aYmax, aZmax);
|
||||
deflection = MAX3( aXmax-aXmin , aYmax-aYmin , aZmax-aZmin) * 0.001 *4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user