Missing edges in Techdraw view

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
desweller
Posts: 18
Joined: Sat Mar 20, 2021 3:40 pm

Missing edges in Techdraw view

Post by desweller »

Hello everyone

Many thanks for all your hard work on this wonderful tool; I use it on a near daily basis.

I have a problem in the Techdraw workbench. When inserting a view of either of the bodies in the attached file, I get the following errors in the Report panel (repeated 4 times):

Code: Select all

14:48:07  asCircle - OCC error - gp_Dir() - input vector has zero norm - while approx spline as circle
14:48:07  Geom::baseFactory - unknown error occurred while making spline
and sometimes the view is drawn with some missing edges.

I have tried:
- modelling the part in a different way (using pads instead of revolves)
- inserting views of earlier operations in the model (e.g. Body->Revolution instead of Body->Chamfer001)
- inserting the views using a different drawing template

If I insert a view that is tilted, then insert a view from an orthoganal position, the edges will be drawn again.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * Assembly4 0.12.1
  * CurvedShapes 1.0.3
  * Curves 0.3.0
  * fasteners 0.3.46
  * FCGear
  * FCGear.bak
  * Help 1.0.3
  * Manipulator
  * Render 2022.1.0
  * ThreadProfile 1.77.0
Attachments
2023-03-21 Techdraw - Missing edges.FCStd
(88.84 KiB) Downloaded 34 times
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Missing edges in Techdraw view

Post by wandererfan »

desweller wrote: Tue Mar 21, 2023 3:39 pm and sometimes the view is drawn with some missing edges.
And that is the baffling bit. The lines were missing the first time I loaded the file, but now they are back and I can't recreate the case where the lines are missing. :o :?

While I am trying to debug this, you could use the perspective projector (with a long focus length) or the polygon approximation. They don't seem to have the same problem(??).
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Missing edges in Techdraw view

Post by Shalmeneser »

Data : Coarse view -> true ?
desweller
Posts: 18
Joined: Sat Mar 20, 2021 3:40 pm

Re: Missing edges in Techdraw view

Post by desweller »

I haven't done any real work with it today yet, we have a quality problem with a production process and I am deep in that. Yesterday, in the end I have done the drawing by inserting a non-orthoganal view, then inserting the orthoganal view I actually needed, so I can work around it. It doesn't avoid the errors in the Report view, but I do seem to end up with a useable drawing.

@Shalmeneser coarse view -> true clears it up on my machine, how weird!

Thanks

DW
user1234
Veteran
Posts: 3334
Joined: Mon Jul 11, 2016 5:08 pm

Re: Missing edges in Techdraw view

Post by user1234 »

Works flawless here

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32416 (Git)
Build type: Release
Branch: master
Hash: b38533d07071cccf5699f53c34fe043bbf901091
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * QuickMeasure 2022.10.28
  * CurvedShapes 1.0.4
  * Curves 0.6.8
Not even one line of error or warning.

Code: Select all

View is finding hidden lines
View001 is finding hidden lines
View002 is finding hidden lines
View003 is finding hidden lines
View004 is finding hidden lines
View005 is finding hidden lines
View006 is finding hidden lines
View007 is finding hidden lines
View008 is finding hidden lines
View009 is finding hidden lines
View010 is finding hidden lines
View has finished finding hidden lines
View is extracting faces
View003 has finished finding hidden lines
View002 has finished finding hidden lines
View003 is extracting faces
View002 is extracting faces
View004 has finished finding hidden lines
View004 is extracting faces
View001 has finished finding hidden lines
View007 has finished finding hidden lines
View001 is extracting faces
View007 is extracting faces
View005 has finished finding hidden lines
View005 is extracting faces
View008 has finished finding hidden lines
View008 is extracting faces
View006 has finished finding hidden lines
View006 is extracting faces
View003 has finished extracting faces
View010 has finished finding hidden lines
View010 is extracting faces
View009 has finished finding hidden lines
View009 is extracting faces
View002 has finished extracting faces
View has finished extracting faces
View004 has finished extracting faces
View007 has finished extracting faces
View009 has finished extracting faces
View008 has finished extracting faces
View001 has finished extracting faces
View005 has finished extracting faces
View006 has finished extracting faces
View010 has finished extracting faces
View010 is finding hidden lines
View010 has finished finding hidden lines
View010 is extracting faces
View010 has finished extracting faces
View010 is finding hidden lines
View010 has finished finding hidden lines
View010 is extracting faces
View010 has finished extracting faces
View010 is finding hidden lines
View010 has finished finding hidden lines
View010 is extracting faces
View010 has finished extracting faces
View010 is finding hidden lines
View010 has finished finding hidden lines
View010 is extracting faces
View010 has finished extracting faces

desweller wrote: Tue Mar 21, 2023 3:39 pm and sometimes the view is drawn with some missing edges.
Are you in clear, that you sometimes refer to features in the Body and not to the Body itself?

2023-03-22_11-08.png
2023-03-22_11-08.png (228.85 KiB) Viewed 624 times


Greetings
user1234

edit: typo
desweller
Posts: 18
Joined: Sat Mar 20, 2021 3:40 pm

Re: Missing edges in Techdraw view

Post by desweller »

Are you in clear, that you sometimes refer to features in the Body and not to the Body itself?
Yes, that was deliberate; in the test file I wanted to see if the anomaly was related to a specific operation in Part Design. That's why there are so many views. When the problem first occurred I was working with views of the whole body.

I am now working on a drawing for a different part and don't have the problem at all.

Best regards

D Weller
Post Reply