CadQuery / CadQuery/cadquery

Fuse fails to clean a face that is based on a somewhat tangled wire

Open
#1,010 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

1) Similar as in CQ SVG export, the wire is created from projected edges using cq.Wire.combine. The result has 7 edges.
2) The wire edge order is shown in screenshot, it forms a sort of number "8" loop:

![image](https://user-images.githubusercontent.com/437576/155023680-131f2a67-b5fb-4f14-8599-b42ad3d04b3a.png)

3) The wire is then converted to face using cq.Face.makeFromWires - the face looks OK, but the underlying Wire is still tangled
4) Further attempts to fuse, combine, clean, etc. fail to clean up the underlying wire.
5) Exporting face to brep shows the 7 edges still there in the brep file, however, **importBrep appears to clean the wire (!)**
6) The wire brep seems to be imported with the original 7 edges intact (seems correct).

Attached are both breps for the face and the wire.
[breps.tar.gz](https://github.com/CadQuery/cadquery/files/8111981/breps.tar.gz)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.