Here's what the docs say eachpoint() should do:
|
Same as each(), except each item on the stack is converted into a point before it |
|
is passed into the callback function. |
When each() is called with useLocalCoordinates=False, it does no manipulation of the object before passing it on to the callback function:
but when eachpoint() is called with useLocalCoordinates=False, it manipulates/transforms (p * loc) the object's location before passing it on to the callback function:
|
res = [callback(p * loc) for p in pnts] |
I guess it probably shouldn't do that.
Here's what the docs say
eachpoint()should do:cadquery/cadquery/cq.py
Lines 2440 to 2441 in a5fadeb
When
each()is called withuseLocalCoordinates=False, it does no manipulation of the object before passing it on to the callback function:cadquery/cadquery/cq.py
Line 2423 in a5fadeb
but when
eachpoint()is called withuseLocalCoordinates=False, it manipulates/transforms (p * loc) the object's location before passing it on to the callback function:cadquery/cadquery/cq.py
Line 2479 in a5fadeb
I guess it probably shouldn't do that.