Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add location_at(parameter, x_dir=) #932

Open
gumyr opened this issue Mar 7, 2025 · 0 comments
Open

Add location_at(parameter, x_dir=) #932

gumyr opened this issue Mar 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@gumyr
Copy link
Owner

gumyr commented Mar 7, 2025

When creating sketches along a path the x_direction is typically unknown which leads to one having to potentially rotate the objects in the sketch. By allowing the x_direction to be controlled this would be avoided. The problem is illustrated in this example:

wall_length = 100

with BuildPart() as wall:
    with BuildLine():
        path = Polyline((-50, -40), (50, -40), (50, 40), (-50, 40), close=True)

    with BuildSketch(path ^ 0) as profile:
        t = Trapezoid(10, 15, 85, rotation=-90)
        top_line = t.edges().sort_by(Axis.X)[-1]
        with Locations(top_line @ 0.5):
            Circle(top_line.length / 2)

    sweep(path=path, transition=Transition.RIGHT)
@gumyr gumyr added the enhancement New feature or request label Mar 7, 2025
@gumyr gumyr added this to the Not Gating Release 1.0.0 milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant