Draft upgrade makes a face but calls it wire

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Draft upgrade makes a face but calls it wire

Post by bernd »

- start FreeCAD
- make a sketch (a rectangle)
- use Draft upgrade on this sketch
- it will change to a face but it is still called wire

This is confusing IMHO. The tool Part --> make face from wire names the new object face.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21068 (Git)
Build type: Release
Branch: master
Hash: 92fe9adebbff910c5a10d6230785a6b58935b677
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)
paullee
Veteran
Posts: 5120
Joined: Wed May 04, 2016 3:58 pm

Re: Draft upgrade makes a face but calls it wire

Post by paullee »

bernd wrote: Mon May 18, 2020 2:11 pm - start FreeCAD
- make a sketch (a rectangle)
- use Draft upgrade on this sketch
- it will change to a face but it is still called wire

This is confusing IMHO. The tool Part --> make face from wire names the new object face.
Confirmed. But it upgrade to a Draft Wire with MakeFace = True.

Turn it to False, and it is a Draft Wire with 4 edges :D

Screenshot from 2020-05-18 23-48-48.png
Screenshot from 2020-05-18 23-48-48.png (184.99 KiB) Viewed 336 times
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Draft upgrade makes a face but calls it wire

Post by vocx »

bernd wrote: Mon May 18, 2020 2:11 pm This is confusing IMHO. The tool Part --> make face from wire names the new object face.
First of all, the Draft Upgrade tool is a bit magical. By that I mean, it does things, but there is no defined behavior. What does "upgrade" mean? It means it tries to transform something into something "better". In most cases, this is intended to transform simple Part_Features (edges, wires, faces) into more complex Draft objects, like Draft Wires.

What you see is that the tool takes the shape of the sketch, extracts its points, and then creates a Draft Wire with those points. So the result is not just a Part.Face, it's a Draft Wire. A Draft Wire can be closed or open, and it can make a face or not. So, from the point of view of the tool, it does its work, because it creates a Wire (polyline). However you use that wire, whether you use its face or not, is a different question.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply