Issue encountered with draft projection in Techdraw

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
eds
Posts: 24
Joined: Mon Feb 20, 2017 2:55 pm

Issue encountered with draft projection in Techdraw

Post by eds »

I encountered this issue while testing out Techdraw. When inserting the following drawing using the Techdraw Insert Draft Object, the results is as follows. I've also shown how the drawing was supposed to look like:
draft projection techdraw.jpg
draft projection techdraw.jpg (51.37 KiB) Viewed 3109 times
It appears the problem is with the arc lines, both arc and fillets.

I'm running the ubuntu PPA:
OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11241 (Git)
Build type: None
Branch: master
Hash: 3c96803d12006411f4563d149fa4f81a1a5993ac
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Issue encountered with draft projection in Techdraw

Post by wandererfan »

eds wrote: Thu Jun 08, 2017 4:50 am I encountered this issue while testing out Techdraw. When inserting the following drawing using the Techdraw Insert Draft Object, the results is as follows. I've also shown how the drawing was supposed to look like:
I've never seen this one. Is it possible to post the FCSTD file? What happens if you use NewView instead of Insert Draft Object?
yorik wrote: ping
eds
Posts: 24
Joined: Mon Feb 20, 2017 2:55 pm

Re: Issue encountered with draft projection in Techdraw

Post by eds »

Please see attached the file.

I've made a compound and simple compound, and they seem to show up fine in the drawing. By selecting them and using New View.

I've tested with a simple arc, and they also show up in a way they are not supposed to.
Attachments
pump.FCStd
(59.07 KiB) Downloaded 58 times
User avatar
regis
Posts: 733
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: Issue encountered with draft projection in Techdraw

Post by regis »

Yes indeed i am familiar with that same problem, I have come accross it serveral times without being able to understand what is causing that.
There is something wrong with the way techdraw renders arch, be it draftwire 2D archs or generated archs from 3D objects with fillets, etc. in my case the door swings, and the corners of sinks etc.



OS: Linux Mint 18.1 Serena
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11266 (Git)
Build type: None
Branch: master
Hash: ab1b344410600b7d694abf6bb4ff2b71769978c5
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Attachments
2017-04-01.png
2017-04-01.png (28.39 KiB) Viewed 2982 times
217.png
217.png (132.88 KiB) Viewed 2982 times
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Issue encountered with draft projection in Techdraw

Post by yorik »

This is strange that it internally uses the same OCC algorithm in all cases...
Can you guys test something when you have a chance? Make a same view of an Arch section pane in TechDraw and in Drawing, to see if we have the same problem in both.
eds
Posts: 24
Joined: Mon Feb 20, 2017 2:55 pm

Re: Issue encountered with draft projection in Techdraw

Post by eds »

I'll try to test a few more cases when I have the chance, see what sort of tools/conditions reproduces it.
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Issue encountered with draft projection in Techdraw

Post by wandererfan »

yorik wrote: Tue Jun 13, 2017 2:58 pm This is strange that it internally uses the same OCC algorithm in all cases...
Is working plane part of the problem? If I change the Direction of the DraftView to (1,0,1), the giant arcs disappear.
Attachments
eds_pump.png
eds_pump.png (22.47 KiB) Viewed 2930 times
User avatar
wandererfan
Veteran
Posts: 6320
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Issue encountered with draft projection in Techdraw

Post by wandererfan »

Inserting "Group" using Draft "PutOnSheet" Image seems to work.
Attachments
eds_pumpDraftInsert.png
eds_pumpDraftInsert.png (5.38 KiB) Viewed 2929 times
eds
Posts: 24
Joined: Mon Feb 20, 2017 2:55 pm

Re: Issue encountered with draft projection in Techdraw

Post by eds »

wandererfan wrote: Tue Jun 13, 2017 5:12 pm Inserting "Group" using Draft "PutOnSheet" Image seems to work.
Draft "PutOnSheet" is inserting a Drawing workbench page, not a Techdraw page no? I can confirm Drawing / Drawing Dimensioning inserts the objects just fine. It's Techdraw's thats giving the problem.

I drew some arcs & fillets, and then inserted them via Techdraw again, and it got jumbled up. I tested on Windows and it shows up the same way.
arcs.jpg
arcs.jpg (43.21 KiB) Viewed 2880 times
fillets.jpg
fillets.jpg (28.72 KiB) Viewed 2880 times
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Issue encountered with draft projection in Techdraw

Post by chrisb »

I tried something similar. I drew in Sketcher and converted to draft. While it looks better than yours, the arcs are, well, not perfect yet. I cannot select elements in TechDraw to add measures.
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11260 (Git)
Build type: Release
Branch: (detached from 086d2ed)
Hash: 086d2ed0bbe75916eb7b822ecc056085ce8c035e
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Attachments
Bildschirmfoto 2017-06-15 um 08.47.05.png
Bildschirmfoto 2017-06-15 um 08.47.05.png (22.46 KiB) Viewed 2869 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply