Bug #2591: Wrong view of a compund of cylinders

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Post Reply
User avatar
Kunda1
Veteran
Posts: 13443
Joined: Thu Jan 05, 2017 9:03 pm

Bug #2591: Wrong view of a compund of cylinders

Post by Kunda1 »

issue #2591: Wrong view of a compund of cylinders
Example file attached to ticket.
Description
I created a compound of three cylinders perpendicular to each other.
In draft module, view on XY plane is wrong containing lines that shouldn't be visible.

Steps To Reproduce
Create three cylinders with following data:
Cylinder 1 - radius: 10 - height: 100 - axis 0,1,0 - angle 90° - position 0,0,0
Cylinder 2 - radius: 10 - height: 100 - axis 0,1,0 - angle 90° - position 0,50,50
Cylinder 2 - radius: 8 - height: 70 - axis -1,0,0 - angle 45° - position 50,0,0

Fuse the cylinders.
In draft module, create a shape2DView of the fusion object.
View contains segments that shouldn't be visible.
Last edited by Kunda1 on Sat Jan 28, 2017 7:32 pm, edited 1 time in total.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #2591: Wrong view of a compund of cylinders

Post by NormandC »

Link to issue #2591

Comment left to bug report and screenshots added.

This needs to be tested with FreeCAD compiled with latest OCC 7.1.0, which AFAIK brings bug fixes to hidden line algorithm.
User avatar
Kunda1
Veteran
Posts: 13443
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #2591: Wrong view of a compund of cylinders

Post by Kunda1 »

NormandC wrote:Link to issue #2591

Comment left to bug report and screenshots added.

This needs to be tested with FreeCAD compiled with latest OCC 7.1.0, which AFAIK brings bug fixes to hidden line algorithm.
Thx! :D
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13443
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug #2591: Wrong view of a compund of cylinders

Post by Kunda1 »

NormandC wrote:This needs to be tested with FreeCAD compiled with latest OCC 7.1.0, which AFAIK brings bug fixes to hidden line algorithm.
I've added it to https://forum.freecadweb.org/viewtopic.php?f=10&t=20264
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug #2591: Wrong view of a compund of cylinders

Post by NormandC »

That OCC bugs topic is a very good idea!
Post Reply