bug: mesh section with plane uses wrong rotation when previously rotated [bug tracker: 3962]

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
unknown-error
Posts: 6
Joined: Mon Sep 05, 2016 1:39 pm

bug: mesh section with plane uses wrong rotation when previously rotated [bug tracker: 3962]

Postby unknown-error » Tue May 07, 2019 7:30 pm

edit: reported to bug tracker: https://www.freecadweb.org/tracker/view.php?id=3962

Hi!

I imported a mesh from mesh design workbench, rotated it around z by 180 degrees (menu: edit, placement, typed in 180)
then went to part workbench, created a plane.
switched back to mesh workbench. used from the menu: meshes, cutting, create section from mesh and plane.

expected result: section lies on the plane and goes through the mesh.
actual result: section lies outside the mesh (rotated around z). it seems to me it uses the original position of the mesh instead of the rotated mesh (tried it with different rotation angles to verify that)

OS: Ubuntu 16.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Attachments
Screenshot_2019-05-07_21-15-23.png
mesh section uses wrong orientation when previously rotated
Screenshot_2019-05-07_21-15-23.png (414.92 KiB) Viewed 149 times
Last edited by unknown-error on Wed May 08, 2019 8:48 pm, edited 1 time in total.
chrisb
Posts: 17598
Joined: Tue Mar 17, 2015 9:14 am

Re: bug: mesh section with plane uses wrong rotation when previously rotated

Postby chrisb » Tue May 07, 2019 9:07 pm

Moved to help forum
chrisb
Posts: 17598
Joined: Tue Mar 17, 2015 9:14 am

Re: bug: mesh section with plane uses wrong rotation when previously rotated

Postby chrisb » Tue May 07, 2019 9:12 pm

I can confirm the issue.

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16540 (Git)
Build type: Release
Branch: master
Hash: 554985dede771f9a6694baba2372cc60db86f17b
Python version: 3.7.3
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
unknown-error
Posts: 6
Joined: Mon Sep 05, 2016 1:39 pm

Re: bug: mesh section with plane uses wrong rotation when previously rotated

Postby unknown-error » Wed May 08, 2019 3:48 pm

should I enter it in the tracker?
wmayer
Site Admin
Posts: 14645
Joined: Thu Feb 19, 2009 10:32 am

Re: bug: mesh section with plane uses wrong rotation when previously rotated

Postby wmayer » Wed May 08, 2019 5:18 pm

Yes. And when doing so please cross-link both, i.e. post here the ticket number and in the created ticker add the url of this thread.
unknown-error
Posts: 6
Joined: Mon Sep 05, 2016 1:39 pm

Re: bug: mesh section with plane uses wrong rotation when previously rotated [bug tracker: 3962]

Postby unknown-error » Wed May 08, 2019 9:34 pm

additional info:
translation in XYZ direction is not used as well.
transformation of the cutting plane is not used either. (transforming the plane instead of transforming the mesh yields cuts in the wrong place or the wrong shape)

https://www.freecadweb.org/tracker/view.php?id=3962