Closed Ruudjhuu closed 3 months ago
I am able to reproduce the above on build123d release 0.4, but not able to reproduce on a newer version -- 0.4.1.dev39+g659ce3a nor 0.4.1.dev50+g8632e40 (latest commit). I used this slightly modified snippet to avoid empty buildpart warnings:
with BuildSketch() as profile_a:
# Triangle(a=2, b=2, C=90, align=Align.MIN)
with BuildLine():
Polyline(
(0, 0),
(2, 2),
(2, 0),
close=True,
)
make_face()
with BuildPart() as part:
with BuildSketch(Plane.XZ) as profile:
with Locations((10, 0)):
add(profile_a)
offset(amount=1, kind=Kind.INTERSECTION)
Box(.1,.1,.1)
I can can confirm the issue does not exist on the latest commit. I'll wait for a new release. Thanks for the help.
I experience some weird behavior regarding the
offset
function in combination with a sketch created withBuildLine
.Problem
BuildSketch
,Buildline
,Polyline
andmake_face
.BuildPart
+BuildSketch
context by usingadd
offset
call is executedExpectations
Information
Build123d version: 0.4.0 Happens in earlier version? Not in 0.3.0
Before offset call:![image](https://github.com/gumyr/build123d/assets/31508944/b7a73365-8e81-4944-b5bd-4bd5420a15ca)
After offset call:![image](https://github.com/gumyr/build123d/assets/31508944/135797e1-2890-49f0-ac0e-ddaf4b9a1b28)
When using the commented out
Triangle
call which creates exactly the same sketch the behavior is as expected.My intention with this construction is a little bit more complex and involves multiple objects, but this is the minimal code snippet I could reproduce the issue with.
This issue currently stops me from using 0.4.0
Code snippet.