mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-22 02:05:37 +05:00
0020547: EDF 1146 GEOM: Unable to create a solid from a cylinder created with MakePipeWithDifferentSections
This commit is contained in:
parent
11144d3576
commit
08c8b8072e
@ -412,15 +412,10 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
|||||||
if ( ish == 0 ) return 0;
|
if ( ish == 0 ) return 0;
|
||||||
BRepClass3d_SolidClassifier SC (Sol);
|
BRepClass3d_SolidClassifier SC (Sol);
|
||||||
SC.PerformInfinitePoint(Precision::Confusion());
|
SC.PerformInfinitePoint(Precision::Confusion());
|
||||||
switch (SC.State()) {
|
if (SC.State() == TopAbs_IN)
|
||||||
case TopAbs_IN:
|
aShape = Sol.Reversed();
|
||||||
aShape = Sol.Reversed(); break;
|
else
|
||||||
case TopAbs_OUT:
|
aShape = Sol;
|
||||||
aShape = Sol; break;
|
|
||||||
default: // not closed shell?
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (aType == COMPOUND_SHAPES) {
|
else if (aType == COMPOUND_SHAPES) {
|
||||||
Handle(TColStd_HSequenceOfTransient) aShapes = aCI.GetShapes();
|
Handle(TColStd_HSequenceOfTransient) aShapes = aCI.GetShapes();
|
||||||
|
Loading…
Reference in New Issue
Block a user