You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
Subproject(s) affected?
Part
Issue description
The Extrusion::calculateShapeNormal function assumes that the shape of a Part::Part2DObject always lies on the XY plane of the coordinate system defined by its Placement. For a Draft Wire that need not be the case.
Draft Wires are not necessarily 2D (I use this often, for ex. to draw plumbing lines). IIRC they are Part::Feature, not Part::Part2DObject. Even if the automatic shape direction does not work, Extrusions still work ok...
Not sure how to proceed here... But it's not rally a bug IMHO
Draft_Wires really are Part::Part2DObject objects. And yes they can contain 3D wires, which is of course confusing.
In the case of the example the wire is triangular and therefore planar, so extruding it should be possible.
Just removing the referenced code will already fix the problem. Alternatively the 'special case' code can target sketch objects only. This seems like an easy fix to me...
On a principle level: Draft Wires, BSplines and BezCurves should probably not be Part::Part2DObject objects. Changing that would be more fundamental and should not be attempted for the V0.21 release.
luzpaz
changed the title
[Bug] Part: FeatureExtrusion.cpp issue with Draft_Wires
[Problem] Part: FeatureExtrusion.cpp issue with Draft_Wires
Nov 18, 2023
Is there an existing issue for this?
Forums discussion
https://forum.freecadweb.org/viewtopic.php?p=619535#p619535
Version
0.21 (Development)
Full version info
Subproject(s) affected?
Part
Issue description
The
Extrusion::calculateShapeNormal
function assumes that the shape of a Part::Part2DObject always lies on the XY plane of the coordinate system defined by its Placement. For a Draft Wire that need not be the case.FreeCAD/src/Mod/Part/App/FeatureExtrusion.cpp
Lines 197 to 203 in ff01905
Test code:
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: