wearyhacker wrote: ↑
Wed Nov 20, 2019 6:43 pm
One thing I am still curious about is why downgrading a dwire/polyline produces a face. If anyone can explain that to me I would like to hear it
It's not so easy to explain. The shapes of FreeCAD are produced by the OCCT geometric kernel. This kernel defines various things, like edges, wires, faces, solids, etc. These are called "topological shapes" (TopoShape).
The Draft Workbench
, just like other workbenches made in Python, creates what is called a "scripted object". This object defines various properties, and then assigns a TopoShape to the object. When you use Draft Downgrade
, the code does a bunch of checks, looking at the properties of the object, looking at the shape, whether it is closed or not, and returns an object that is "dumber". The returned object doesn't have many properties, and cannot be edited like the original Draft Wire
, but it has a face.
So, the Draft Wire is a higher level, more complex object. It does have a face, as you can clearly see, it just needs the proper option to show it. The created Face is a dumber object, but it has the proper option set by default, so it shows the face as well.