mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-18 08:53:07 +05:00
untabify
This commit is contained in:
parent
638b559267
commit
d2046800b5
@ -18,7 +18,7 @@
|
|||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
//
|
|
||||||
#include <Standard_Stream.hxx>
|
#include <Standard_Stream.hxx>
|
||||||
|
|
||||||
#include <GEOMImpl_Block6Explorer.hxx>
|
#include <GEOMImpl_Block6Explorer.hxx>
|
||||||
@ -987,15 +987,15 @@ void GEOMImpl_Block6Explorer::InitByTwoFaces (const TopoDS_Shape& theFace1,
|
|||||||
TopoDS_Wire wire1 = TopoDS::Wire(aWire1);
|
TopoDS_Wire wire1 = TopoDS::Wire(aWire1);
|
||||||
TopoDS_Wire wire2 = TopoDS::Wire(aWire2);
|
TopoDS_Wire wire2 = TopoDS::Wire(aWire2);
|
||||||
TopoDS_Vertex aV1, aV2;
|
TopoDS_Vertex aV1, aV2;
|
||||||
|
|
||||||
TopExp::Vertices(wire1, aV1, aV2);
|
TopExp::Vertices(wire1, aV1, aV2);
|
||||||
if ( !aV1.IsNull() && !aV2.IsNull() && aV1.IsSame(aV2) )
|
if ( !aV1.IsNull() && !aV2.IsNull() && aV1.IsSame(aV2) )
|
||||||
aWire1.Closed( true );
|
aWire1.Closed( true );
|
||||||
|
|
||||||
TopExp::Vertices(wire2, aV1, aV2);
|
TopExp::Vertices(wire2, aV1, aV2);
|
||||||
if ( !aV1.IsNull() && !aV2.IsNull() && aV1.IsSame(aV2) )
|
if ( !aV1.IsNull() && !aV2.IsNull() && aV1.IsSame(aV2) )
|
||||||
aWire2.Closed( true );
|
aWire2.Closed( true );
|
||||||
|
|
||||||
// 4. Generate side surface
|
// 4. Generate side surface
|
||||||
if (!aWire1.Closed() || !aWire2.Closed()) {
|
if (!aWire1.Closed() || !aWire2.Closed()) {
|
||||||
// BRepOffsetAPI_ThruSections is not applicable on not closed wires
|
// BRepOffsetAPI_ThruSections is not applicable on not closed wires
|
||||||
|
Loading…
Reference in New Issue
Block a user