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);