CadQuery / CadQuery/cadquery

`eachpoint(...,useLocalCoordinates=False)` has a coordinate transformation bug

Open
#1,098 10 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

For example, the output of
```python
import cadquery
from cadquery import cq, CQ

mwp = CQ("ZX").circle(80.0).extrude(12)
mwp = mwp.translate((99, 99, 99))
mwp = mwp.faces(" cq.Workplane:
def minimal(loc: cadquery.Location):
box = CQ().box(length=20, width=10, height=30, centered=False)
return box.findSolid().moved(loc)

return wp.eachpoint(minimal, useLocalCoordinates=False, combine=True)

cq.Workplane.minimal_plugin = minimal_plugin
mwp = mwp.rarray(1, 40, 1, 3).minimal_plugin()
show_object(mwp)
```
is (A)
![image](https://user-images.githubusercontent.com/16778174/172054003-40f2768f-657f-4b66-b33a-dd4485db0462.png)
but it should be (B)
![image](https://user-images.githubusercontent.com/16778174/172054081-aa62b70d-84f9-4fd2-90f1-be7bfc5c46f9.png)

Luckily https://github.com/CadQuery/cadquery/pull/1097 fixes it!

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.