CadQuery / CadQuery/cadquery

Exported STEP model is not correct when tag is used

Open
#1,342 1 comment 0 reactions 0 assignees View on GitHub
OCC kernel issue
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

I followed the example https://cadquery.readthedocs.io/en/latest/examples.html#tagging-objects and can produce the result as expected in cq-editor.
![image](https://github.com/CadQuery/cadquery/assets/47096185/fab87417-d453-43f4-96af-1e1c5a4dcff0)

I then exported the model to a STEP file. Somehow, it gave the drillings instead.
![image](https://github.com/CadQuery/cadquery/assets/47096185/0d29b1a4-e265-4dcc-b05e-dfddbf79d82e)

Here is the script I used. I'm wondering if this is an issue. Thanks in advance.
```python
import cadquery as cq

result = (cq.Workplane("XY")
# create a triangular prism and tag it
.polygon(3, 5).extrude(4).tag("prism")
# create a sphere that obscures the prism
.sphere(10)
# create features based on the prism's faces
.faces("X", tag="prism").faces(">Y").workplane().circle(1).cutThruAll()
)
show_object(result)

cq.exporters.export(result, "result.step")
```

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.