remove undesired dependency of Mesh to Part module

This commit is contained in:
wmayer
2018-07-28 11:58:39 +02:00
parent 424c78d451
commit 5e75f3bc97
4 changed files with 4 additions and 11 deletions

View File

@@ -40,8 +40,6 @@
#include "App/Part.h"
#include <Mod/Part/App/TopoShape.h>
#include <zipios++/zipoutputstream.h>
using namespace Mesh;
@@ -183,14 +181,14 @@ bool MergeExporter::addPartFeat(App::DocumentObject *obj, float tol)
auto geoData( static_cast<App::PropertyComplexGeoData*>(shape)->getComplexData() );
if (geoData) {
const Part::TopoShape* ts = static_cast<const Part::TopoShape*>(geoData);
Part::TopoShape tsCopy(*ts);
App::GeoFeature* gf = static_cast<App::GeoFeature*>(obj);
tsCopy.setPlacement(gf->globalPlacement());
Base::Placement plm = gf->globalPlacement();
std::vector<Base::Vector3d> aPoints;
std::vector<Data::ComplexGeoData::Facet> aTopo;
tsCopy.getFaces(aPoints, aTopo, tol);
geoData->getFaces(aPoints, aTopo, tol);
for (auto& it : aPoints)
plm.multVec(it, it);
mesh->addFacets(aTopo, aPoints, false);
if (countFacets == 0)