From ca9783df5dc645a027743902f7f3b2e0348fd716 Mon Sep 17 00:00:00 2001 From: Joshua Shreve Date: Wed, 11 Aug 2021 20:55:08 -0400 Subject: Interim checkin. Initial version of trackball webs/walls in, still working on component cut/union order. Fixed base plates and walls to be identical in caquery and solid. Fixed if/elif/else structure that misplaced the MINI cluster screw mount. Added intial pass at add on PCB as option to add with caps for interference checks. Moved bottom_hull to helper libraries as they are specific to engine. Fixed bottom_hull functions to correct minor discrepency between the engines. Fixed solid intersect function. --- src/helpers_cadquery.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src/helpers_cadquery.py') diff --git a/src/helpers_cadquery.py b/src/helpers_cadquery.py index 5fb3886..a57eb26 100644 --- a/src/helpers_cadquery.py +++ b/src/helpers_cadquery.py @@ -157,6 +157,39 @@ def triangle_hulls(shapes): return union(hulls) + + + +def bottom_hull(p, height=0.001): + debugprint("bottom_hull()") + shape = None + for item in p: + vertices = [] + # verts = item.faces(' Date: Tue, 17 Aug 2021 20:39:54 -0400 Subject: File cleanup. --- src/helpers_cadquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers_cadquery.py') diff --git a/src/helpers_cadquery.py b/src/helpers_cadquery.py index a57eb26..5dc78d1 100644 --- a/src/helpers_cadquery.py +++ b/src/helpers_cadquery.py @@ -211,7 +211,7 @@ def extrude_poly(outer_poly, inner_polys=None, height=1): # vector=(0,0,1)): cq.Solid.extrudeLinear(outerWire=outer_wires, innerWires=inner_wires, vecNormal=cq.Vector(0, 0, height))) -def import_file(fname): +def import_file(fname, convexity=None): print("IMPORTING FROM {}".format(fname)) return cq.Workplane('XY').add(cq.importers.importShape( cq.exporters.ExportTypes.STEP, -- cgit v1.2.3