+ fixes #0001345: orient solids
This commit is contained in:
parent
3c6bc1eaea
commit
716629006c
|
@ -33,6 +33,7 @@
|
|||
# include <BRepPrim_Wedge.hxx>
|
||||
# include <BRep_Builder.hxx>
|
||||
# include <BRep_Tool.hxx>
|
||||
# include <BRepLib.hxx>
|
||||
# include <BRepBuilderAPI_MakeFace.hxx>
|
||||
# include <BRepBuilderAPI_MakeEdge.hxx>
|
||||
# include <BRepBuilderAPI_MakeWire.hxx>
|
||||
|
@ -526,7 +527,8 @@ static PyObject * makeSolid(PyObject *self, PyObject *args)
|
|||
if (count == 0)
|
||||
Standard_Failure::Raise("No shells found in shape");
|
||||
|
||||
const TopoDS_Solid& solid = mkSolid.Solid();
|
||||
TopoDS_Solid solid = mkSolid.Solid();
|
||||
BRepLib::OrientClosedSolid(solid);
|
||||
return new TopoShapeSolidPy(new TopoShape(solid));
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <GProp_GProps.hxx>
|
||||
#include <GProp_PrincipalProps.hxx>
|
||||
#include <BRepBuilderAPI_MakeSolid.hxx>
|
||||
#include <BRepLib.hxx>
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Solid.hxx>
|
||||
|
@ -90,7 +91,8 @@ int TopoShapeSolidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
|||
if (count == 0)
|
||||
Standard_Failure::Raise("No shells found in shape");
|
||||
|
||||
const TopoDS_Solid& solid = mkSolid.Solid();
|
||||
TopoDS_Solid solid = mkSolid.Solid();
|
||||
BRepLib::OrientClosedSolid(solid);
|
||||
getTopoShapePtr()->_Shape = solid;
|
||||
}
|
||||
catch (Standard_Failure) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user