Skip to content

Instantly share code, notes, and snippets.

@fragmuffin
Last active September 19, 2017 12:58
Show Gist options
  • Save fragmuffin/a98c264334990d63793767c06cf694f2 to your computer and use it in GitHub Desktop.
Save fragmuffin/a98c264334990d63793767c06cf694f2 to your computer and use it in GitHub Desktop.
FreeCAD Part.makeThread result in cadquery
import cadquery as cq
from Helpers import show
import Part
pitch = 2
depth = 1
height = 10
radius = 2
thread = cq.Workplane("XY").newObject([
cq.Shape.cast(Part.makeThread(
pitch, depth, height, radius
))
])
show(thread, (204, 204, 204, 0.3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment