From 8b5bb5a2b081faf1e235d552f1a5dbada08143a9 Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Thu, 14 Mar 2024 21:57:44 -0400 Subject: [PATCH] Start work on model --- v5/pnp_model.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 v5/pnp_model.py diff --git a/v5/pnp_model.py b/v5/pnp_model.py new file mode 100644 index 0000000..1046786 --- /dev/null +++ b/v5/pnp_model.py @@ -0,0 +1,25 @@ +import cadquery as cq + +centers = [ + (-5, 0), + (10, 5), + (10, -5) + ] + +plunger = ( + cq.Workplane("XZ") + .polyline([ + (0, 0), + (10, 0), + (9.2, 10), + (0, 10) + ]) + .close() + .revolve() + .faces(">Z") + .workplane() + .pushPoints(centers) + .hole(3) + ) + +show_object(plunger) \ No newline at end of file