Open greyltc opened 2 years ago
Here's what the docs say eachpoint() should do: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2440-L2441
eachpoint()
When each() is called with useLocalCoordinates=False, it does no manipulation of the object before passing it on to the callback function: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2423
each()
useLocalCoordinates=False
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: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2479
p * loc
I guess it probably shouldn't do that.
https://github.com/CadQuery/cadquery/pull/1100 should bring the code in line with how I interpret the docs.
Here's what the docs say
eachpoint()
should do: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2440-L2441When
each()
is called withuseLocalCoordinates=False
, it does no manipulation of the object before passing it on to the callback function: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2423but when
eachpoint()
is called withuseLocalCoordinates=False
, it manipulates/transforms (p * loc
) the object's location before passing it on to the callback function: https://github.com/CadQuery/cadquery/blob/a5fadebe72b2a46881c3847cca748b8cf716ccd0/cadquery/cq.py#L2479I guess it probably shouldn't do that.