Part: expose Poly HLR algorithm to Python

This commit is contained in:
wmayer
2021-12-21 19:45:01 +01:00
parent 4c303e339e
commit ea85cf5e36
6 changed files with 739 additions and 0 deletions

View File

@@ -144,6 +144,8 @@
#include <Mod/Part/App/GeomPlate/PointConstraintPy.h>
#include <Mod/Part/App/HLRBRep/HLRBRep_AlgoPy.h>
#include <Mod/Part/App/HLRBRep/HLRToShapePy.h>
#include <Mod/Part/App/HLRBRep/HLRBRep_PolyAlgoPy.h>
#include <Mod/Part/App/HLRBRep/PolyHLRToShapePy.h>
#include <Mod/Part/App/ShapeUpgrade/UnifySameDomainPy.h>
#include "PropertyGeometryList.h"
#include "DatumFeature.h"
@@ -301,6 +303,8 @@ PyMOD_INIT_FUNC(Part)
PyObject* hlrfeatModule(module.getAttr("HLRBRep").ptr());
Base::Interpreter().addType(&Part::HLRBRep_AlgoPy::Type,hlrfeatModule,"Algo");
Base::Interpreter().addType(&Part::HLRToShapePy::Type,hlrfeatModule,"HLRToShape");
Base::Interpreter().addType(&Part::HLRBRep_PolyAlgoPy::Type,hlrfeatModule,"PolyAlgo");
Base::Interpreter().addType(&Part::PolyHLRToShapePy::Type,hlrfeatModule,"PolyHLRToShape");
// Geom2d package
PyObject* geom2dModule(module.getAttr("Geom2d").ptr());