From 0644ed8e64507ebeaff8337b5d396f1bc6d6d0d2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 13 May 2019 17:44:56 +0200 Subject: [PATCH] fix mesh cross-section to respect placement --- src/Mod/Mesh/App/Mesh.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/Mesh/App/Mesh.cpp b/src/Mod/Mesh/App/Mesh.cpp index 70d21a0ab0..492f848cbb 100644 --- a/src/Mod/Mesh/App/Mesh.cpp +++ b/src/Mod/Mesh/App/Mesh.cpp @@ -986,8 +986,11 @@ std::vector MeshObject::getPointNormals() const void MeshObject::crossSections(const std::vector& planes, std::vector §ions, float fMinEps, bool bConnectPolygons) const { - MeshCore::MeshFacetGrid grid(_kernel); - MeshCore::MeshAlgorithm algo(_kernel); + MeshCore::MeshKernel kernel(this->_kernel); + kernel.Transform(this->_Mtrx); + + MeshCore::MeshFacetGrid grid(kernel); + MeshCore::MeshAlgorithm algo(kernel); for (std::vector::const_iterator it = planes.begin(); it != planes.end(); ++it) { MeshObject::TPolylines polylines; algo.CutWithPlane(it->first, it->second, grid, polylines, fMinEps, bConnectPolygons);