CadQuery / sphinxcadquery

An extension to visualize CadQuery 3D files in your Sphinx documentation
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Fix unexpected edges #11

Closed Peque closed 4 years ago

Peque commented 5 years ago

Sometimes edges are displayed in cylinders. See the Bulebule mounting design.

The little holes have vertical edges (i.e.: the hole is not a smooth surface).

Screenshot from 2019-09-29 21-29-17

Currently we are avoiding edges when the degrees between 2 surfaces is higher than 5 with:

var edges = new THREE.EdgesGeometry( geometry, 5 );

But that sounds arbitrary.

izhuravlev commented 5 years ago

Hey @Peque, I will be happy to have a look an try to figure out the solution as soon as I can!

Peque commented 5 years ago

@izhuravlev Great! :muscle:

You can also have a look at #10. Another issue related to edges display.

If you have any questions just ask. :wink:

izhuravlev commented 4 years ago

Hi @Peque, I am looking forward to work on this bug during this weekend - already cloned the project and set up my environment - could you please tell me how can I test my work - for example, provide me with a testing file or explain how to create one? It will be awesome if you can also share with me some more details on how can I proceed with this one. Thank You!

Peque commented 4 years ago

@izhuravlev Sure, you can use this one (it is actually the one on the picture).

Apart from that, and what is already written in this issue, I cannot give you further advise. :blush:

izhuravlev commented 4 years ago

Thank you @Peque, I will continue working on this one.

Peque commented 4 years ago

This should be fixed now by 6e9c73a56a5093869a04eab12b47edf739ba5de7.