Skip to content

Instantly share code, notes, and snippets.

@lf94

lf94/.curv Secret

Created January 31, 2022 20:52
Show Gist options
  • Save lf94/22945bd9e7ecb28b4adbefad5d9b0912 to your computer and use it in GitHub Desktop.
Save lf94/22945bd9e7ecb28b4adbefad5d9b0912 to your computer and use it in GitHub Desktop.
let
include lib.builder;
include file "sketch.curv";
in
build
>> put (box) [0,0,0]
>> put (sphere) [2,0,0]
>> child (ctx -> ctx
>> put (
workplane
>> move_abs [0, 3]
>> spline [[[1, 3.5], [2, 2.6], [3,3]]]
>> tangent_arc_point [6,3]
>> tangent_arc_point [8,1]
>> spline [[[7,-3], [6,0], [3, 0]]]
>> tangent_arc_point [0, 3]
>> close
>> extrude 1
) [0,-2,0] // Remember, origin is [1,0,0] since it's child of sphere!
)
>> done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment