Closed pkriens closed 2 months ago
For open paths this is working as intended. There is no sensible way to make it direction independent. Note that results will be possibly be wrong if you repeat the point the way you have done because the normal won't take into account what happens at the other end of the path. You need to use closed=true
. (Arguably the default value for closed
is wrong and it should match the builtin.)
Ah, that explains it. I missed the closed. Might want to highlight that in the documentation?
Describe the bug When using offset as function the operation depends on if the path is moving left or right. If the path moves left, a positive delta or r is decreasing the size of the path. If the path moves right, it works as expected. This behavior is different from the builtin offset.
Making this example, I also noticed the shape was deformed in the function. The figure is symmetric before
offset
but it isn't after. The angled side top and bottom have different size.Code To Reproduce Bug
Expected behavior I expect the behavior to be identical to the builtin
offset
function with the same parameters.Screenshots
When the path is reversed
Additional context Add any other context about the problem here.
BOSL2 date is Aug 7 2024