Skip to content
Discussion options

You must be logged in to vote

Here is an example where the base shape is defined by the angle a.

Example a=80:

Example a=60:

Final part:

from cadquery import Sketch
from cadquery.func import *

a = 60  # angle of arc / trimmed circle for base shape
x1 = 15  # base circle offset in x
r1 = 10  # radius for base shape
r2 = 3.5  # radius for "handle" part
h = 10  # base height

# create the left arc with Sketch
e1 = Sketch().arc((-x1, 0), r1, a, 360 - 2 * a).val()
# an alternative is to use trim to create the arc from a circle

# mirror to create the right arc
e2 = e1.mirror("YZ")

# the start, end vertices for the middle arc
v1 = e1.vertices("<Y")
v2 = e2.vertices("<Y")

# the lower middle arc, tangentAt(1) to get the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adam-urbanczyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants