Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
13
13
text
stringlengths
242
3.29k
code_primitive
stringlengths
251
4.74k
code_semantic
stringlengths
259
3.98k
code_semparam
stringlengths
262
4.14k
0000/00000061
Create a sketch on a plane with origin at (-0.75, 0.75, -0.0375), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). Define a single closed loop by sequentially connecting the following segments: a line from (1.5, 0) to (0.15, 0); an arc starting at (0.15, 0), passing through (0.106066, -0.106066), and endin...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((1.5, 0), (0.15, 0)) .arc((0.15, 0), (0.106066, -0.106066), (0, -0.15)) .segment((0, -0.15), (0, -1.5)) .segment((0, -1.5), (1.5, -1.5)) .segment((1.5, -1.5), (1.5, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.75, -0.0375), ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((1.5, 0), (0.15, 0)) .arc((0.15, 0), (0.106066, -0.106066), (0, -0.15)) .segment((0, -0.15), (0, -1.5)) .segment((0, -1.5), (1.5, -1.5)) .segment((1.5, -1.5), (1.5, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.75, -0.0375), ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((1.5, 0), (0.15, 0)) .arc((0.15, 0), (0.106066, -0.106066), (0, -0.15)) .segment((0, -0.15), (0, -1.5)) .segment((0, -1.5), (1.5, -1.5)) .segment((1.5, -1.5), (1.5, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.75, -0.0375), ...
0000/00000119
Create a sketch on a plane with origin at (-0.3, 0.75, -0.3), x-axis direction (1, 0, 0), and normal direction (0, -1, 0). Within this sketch, define a single rectangular loop centered at (0.3, 0.3) where both the width and height are controlled by a shared parameter of 0.6. Extrude this sketch by a distance of 1.5 to ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0.6, 0)) .segment((0.6, 0), (0.6, 0.6)) .segment((0.6, 0.6), (0, 0.6)) .segment((0, 0.6), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.3, 0.75, -0.3), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.3, 0.3)]).rect(0.6, 0.6).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.3, 0.75, -0.3), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1
import cadquery as cq var_1_center = (0.3, 0.3) var_2 = 0.6 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_2, var_2).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.3, 0.75, -0.3), cq.Vector(1, 0, 0), cq.Vector(0, -1, 0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1
0000/00000131
Create a sketch on a plane with origin at (-0.105468, 0.0, 0.0), X-axis direction (0.0, 1.0, 0.0), and normal direction (1.0, 0.0, 0.0). The sketch consists of two concentric circles centered at the plane origin: an outer circle with a radius of 0.75 and an inner circle with a radius of 0.39375. Subtract the inner circ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) loop_2 = cq.Sketch().circle(0.39375) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.105468, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.210937) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() loop_2 = cq.Sketch().circle(0.39375).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.105468, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.210937) result = ...
import cadquery as cq var_1_radius = 0.75 var_2_radius = 0.39375 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.105468, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 ...
0000/00000133
Create a sketch on a plane with origin at (-0.123046, 0.0, 0.0), X-axis along (0.0, 1.0, 0.0), and normal along (1.0, 0.0, 0.0). Define two concentric circular loops centered at the origin of this plane: an outer loop with a radius of 0.75 and an inner loop with a radius of 0.39375. Subtract the inner loop from the out...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) loop_2 = cq.Sketch().circle(0.39375) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.123046, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.246093) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() loop_2 = cq.Sketch().circle(0.39375).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.123046, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.246093) result = ...
import cadquery as cq var_1_radius = 0.75 var_2_radius = 0.39375 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.123046, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 ...
0000/00000134
Create a sketch on a plane with origin at (-0.345339, 0.097131, -0.019384), X-axis direction (0.0, 1.0, 0.0), and normal direction (1.0, 0.0, 0.0). Define a single polygonal loop in this sketch using the ordered vertices: (-0.844334, 0.639946), (0.65007, 0.769384), (0.65007, -0.730615), and (-0.844334, -0.730615). Extr...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.844334, 0.639946), (0.65007, 0.769384)) .segment((0.65007, 0.769384), (0.65007, -0.730615)) .segment((0.65007, -0.730615), (-0.844334, -0.730615)) .segment((-0.844334, -0.730615), (-0.844334, 0.639946)) .assemble() ) sketch_1 = cq.Workplane(cq.P...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.844334, 0.639946), (0.65007, 0.769384), (0.65007, -0.730615), (-0.844334, -0.730615)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.345339, 0.097131, -0.019384), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sk...
import cadquery as cq var_1_points = [(-0.844334, 0.639946), (0.65007, 0.769384), (0.65007, -0.730615), (-0.844334, -0.730615)] # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.345339, 0.097131, -0.019384), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).pla...
0000/00000144
Create a sketch on a plane with origin at (0, 0, -0.208333), X-axis along (1, 0, 0), and normal along (0, 0, 1). The sketch contains three circular loops: a primary loop with a radius of 0.749999 centered at the origin, and two smaller loops sharing a common radius of 0.187467. The first smaller loop is centered at (0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.749999) loop_2 = cq.Sketch().push([(0.5208, 0)]).circle(0.187467).reset() loop_3 = cq.Sketch().push([(-0.5208, 0)]).circle(0.187467).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.208333), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0,...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.749999).reset() loop_2 = cq.Sketch().push([(0.5208, 0)]).circle(0.187467).reset() loop_3 = cq.Sketch().push([(-0.5208, 0)]).circle(0.187467).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.208333), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0...
import cadquery as cq var_1_radius = 0.749999 var_2_center = (0.5208, 0) var_3 = 0.187467 var_4_center = (-var_2_center[0], var_2_center[1]) # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().push([var_2_center]).circle(var_3).reset() loop_3 = cq.Sketch().push([var_4_center]).circle...
0000/00000168
Construct a single body by first defining a sketch on a plane with origin at (-0.75, 0.5625, -0.453125), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). The sketch profile is a closed loop formed by the following ordered segments: a line from (0, 0) to (0, 0.125), a line to (0.375, 0.125), a li...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.125)) .segment((0, 0.125), (0.375, 0.125)) .segment((0.375, 0.125), (0.375, 0.90625)) .segment((0.375, 0.90625), (0.4375, 0.90625)) .arc((0.4375, 0.90625), (0.75, 0.59375), (1.0625, 0.90625)) .segment((1.0625, 0.90625), (1.125, 0.90625...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.125)) .segment((0, 0.125), (0.375, 0.125)) .segment((0.375, 0.125), (0.375, 0.90625)) .segment((0.375, 0.90625), (0.4375, 0.90625)) .arc((0.4375, 0.90625), (0.75, 0.59375), (1.0625, 0.90625)) .segment((1.0625, 0.90625), (1.125, 0.90625...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.125)) .segment((0, 0.125), (0.375, 0.125)) .segment((0.375, 0.125), (0.375, 0.90625)) .segment((0.375, 0.90625), (0.4375, 0.90625)) .arc((0.4375, 0.90625), (0.75, 0.59375), (1.0625, 0.90625)) .segment((1.0625, 0.90625), (1.125, 0.90625...
0000/00000178
Create a sketch on a plane with origin at (0.0, 0.0, -0.01905), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). In this sketch, draw a single circular loop with a radius of 0.75 centered at the plane origin. Extrude this sketch by a height of 0.0381 to form the final solid body.
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.01905), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.0381) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.01905), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.0381) result = body_1
import cadquery as cq var_1_radius = 0.75 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.01905), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.0381) result = body_1
0000/00000190
Create a sketch on a plane with origin at (0, 0, -0.149999), X-axis direction (1, 0, 0), and normal direction (0, 0, 1). In this sketch, define a single rectangular loop where both the width and height are equal to a shared parameter of 1.499998. Extrude this sketch by a distance of 0.299999 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.749999), (0.749999, 0.749999)) .segment((0.749999, 0.749999), (0.749999, -0.749999)) .segment((0.749999, -0.749999), (-0.749999, -0.749999)) .segment((-0.749999, -0.749999), (-0.749999, 0.749999)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.499998).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.149999), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.299999) result = body_1
import cadquery as cq var_1 = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, -0.149999), cq.Vector(1, 0, 0), cq.Vector(0, 0, 1))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.299999) result = body_1
0000/00000346
Construct the first body by defining a sketch on a plane with origin (-0.314516, 0.0, -0.07258), X-axis (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). This sketch contains three loops: the first loop consists of a semi-circular arc from (0, 0.435483) through (-0.435483, 0) to (0, -0.435483) closed by a vertical segment b...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0, 0.435483), (-0.435483, 0), (0, -0.435483)) .segment((0, -0.435483), (0, 0.435483)) .assemble() ) loop_2 = ( cq.Sketch() .arc((0, 0.435483), (0.435483, 0), (0, -0.435483)) .segment((0, -0.435483), (1.064516, -0.435483)) .segment((1.064516, -0.435483)...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0, 0.435483), (-0.435483, 0), (0, -0.435483)) .segment((0, -0.435483), (0, 0.435483)) .assemble() ) loop_2 = ( cq.Sketch() .arc((0, 0.435483), (0.435483, 0), (0, -0.435483)) .segment((0, -0.435483), (1.064516, -0.435483)) .segment((1.064516, -0.435483)...
import cadquery as cq var_1_center = (-0.310012, 0.0) var_1_radius = 0.387096 # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0, 0.435483), (-0.435483, 0), (0, -0.435483)) .segment((0, -0.435483), (0, 0.435483)) .assemble() ) loop_2 = ( cq.Sketch() .arc((0, 0.435483), (0.435483, 0), (0, -0.435483)) .segment((0, -0.435483...
0000/00000348
Construct the first body by defining a sketch on a plane with origin (-0.75, -0.193298, -0.305412), X-axis (1, 0, 0), and normal (0, 0, 1). This sketch contains a primary rectangular loop centered at (0.749999, 0.193298) with width 1.499999 and height 0.386597, with all vertices filleted by a radius of 0.030927. From t...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.030927, 0), (1.469072, 0)) .arc((1.469072, 0), (1.490941, 0.009058), (1.499999, 0.030927)) .segment((1.499999, 0.030927), (1.499999, 0.35567)) .arc((1.499999, 0.35567), (1.490941, 0.377539), (1.469072, 0.386597)) .segment((1.469072, 0.386597), (0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.749999, 0.193298)]).rect(1.499999, 0.386597).reset().vertices().fillet(0.030927).reset() loop_2 = cq.Sketch().push([(0.170103, 0.193298)]).circle(0.096619).reset() loop_3 = cq.Sketch().push([(1.329896, 0.193298)]).circle(0.096619).reset() sketch_1 = c...
import cadquery as cq var_1_center = (0.749999, 0.193298) var_1_fillet_radius = 0.030927 var_1_height = 0.386597 var_1_width = 1.499999 var_2_center = (0.170103, 0.193298) var_3 = 0.096619 var_4_center = (1.329896, 0.193298) var_5_center = (0.326674, 0) var_5_height = 0.386596 var_6 = 0.278351 var_7_center = (0.798324,...
0000/00000356
Create a sketch on a plane with origin at (0, 0, -0.75), X-axis direction (1, 0, 0), and normal direction (0, 0, 1). Within this sketch, define two concentric regular hexagonal loops: an outer loop with a radius of 0.697768 and an inner loop with a radius of 0.618588, both rotated by 30 degrees. Subtract the inner loop...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.697769, 0), (-0.348884, 0.604285)) .segment((-0.348884, 0.604285), (0.348884, 0.604285)) .segment((0.348884, 0.604285), (0.697769, 0)) .segment((0.697769, 0), (0.348884, -0.604285)) .segment((0.348884, -0.604285), (-0.348884, -0.604285)) .segmen...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().regularPolygon(0.697768, 6, angle=30).reset() loop_2 = cq.Sketch().regularPolygon(0.618588, 6, angle=30).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) bo...
import cadquery as cq var_1_angle = 30 var_1_radius = 0.697768 var_1_sides = 6 var_2_radius = 0.618588 # --- Body 1 --- loop_1 = cq.Sketch().regularPolygon(var_1_radius, var_1_sides, angle=var_1_angle).reset() loop_2 = cq.Sketch().regularPolygon(var_2_radius, var_1_sides, angle=var_1_angle).reset() sketch_1 = cq.Workpl...
0000/00000363
Create the first body by defining a sketch on a plane with origin (0, 0.75, 0), X-axis (1, 0, 0), and normal (0, -1, 0). In this sketch, construct a rectangular loop with a width and height that share a common dimension of 1.5, and subtract a circular loop with a radius of 0.6 centered at the origin. Extrude this resul...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.75, 0.75), (-0.75, 0.75)) .segment((-0.75, 0.75), (-0.75, -0.75)) .segment((-0.75, -0.75), (0.75, -0.75)) .segment((0.75, -0.75), (0.75, 0.75)) .assemble() ) loop_2 = cq.Sketch().circle(0.6) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, 0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.5, 1.5).reset() loop_2 = cq.Sketch().circle(0.6).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(1.5) result = body_1 # --...
import cadquery as cq var_1 = 1.5 var_2_radius = 0.6 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0.75, 0), cq.Vector(1, 0, 0), cq.Vector(0, -1, 0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extru...
0000/00000386
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis along (1.0, 0.0, 0.0), and normal along (0.0, 0.0, 1.0). The sketch consists of two concentric circular loops: an outer loop with a radius of 0.75 and an inner loop with a radius of 0.340909. Subtract the inner loop from the outer loop to form an annular...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) loop_2 = cq.Sketch().circle(0.340909) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.051954, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() loop_2 = cq.Sketch().circle(0.340909).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.051954, both=True) res...
import cadquery as cq var_1_radius = 0.75 var_2_radius = 0.340909 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loo...
0000/00000413
Construct the first body by defining a sketch on a plane with origin (0, -0.281905, -0.05431), X-axis (1, 0, 0), and normal (0, 0, 1). The sketch profile consists of a primary polygon defined by the ordered vertices (-0.597419, 1.031905), (0.597419, 1.031905), (0.597419, 0.70604), (0.242871, -0.468094), (-0.242871, -0....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.597419, 1.031905), (0.597419, 1.031905)) .segment((0.597419, 1.031905), (0.597419, 0.70604)) .segment((0.597419, 0.70604), (0.242871, -0.468094)) .segment((0.242871, -0.468094), (-0.242871, -0.468094)) .segment((-0.242871, -0.468094), (-0.597419...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.597419, 1.031905), (0.597419, 1.031905), (0.597419, 0.70604), (0.242871, -0.468094), (-0.242871, -0.468094), (-0.597419, 0.70604)]) loop_2 = cq.Sketch().circle(0.081235).reset() loop_3 = cq.Sketch().push([(0, 0.868973)]).circle(0.040728).reset() l...
import cadquery as cq var_1_points = [(-0.597419, 1.031905), (0.597419, 1.031905), (0.597419, 0.70604), (0.242871, -0.468094), (-0.242871, -0.468094), (-0.597419, 0.70604)] var_2_radius = 0.081235 var_3_center = (0, 0.868973) var_3_radius = 0.040728 var_4_center = (-0.217243, 0.125419) var_5 = 0.025658 var_6_center = (...
0000/00000447
Create a sketch on a plane with origin at (0.0, 0.0, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). In this sketch, draw a single circular loop with a radius of 0.129618 centered at the plane origin. Extrude this sketch by a height of 0.518473 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.129618) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.518473) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.129618).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.518473) result = body_1
import cadquery as cq var_1_radius = 0.129618 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.518473) result = body_1
0000/00000470
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, draw a single circular loop with a radius of 0.180707 centered at the origin. Extrude this sketch symmetrically by a total length of 1.499942 (extending 0.749971 in both di...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.180707) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0.749971, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.180707).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0.749971, both=True) result = body_1
import cadquery as cq var_1_radius = 0.180707 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0.749971, both=True) result = body_1
0000/00000544
Construct the first body by defining a rectangular loop centered at (0.019141, -0.083526) with a width of 1.499998 and a height of 1.458235. Place this sketch on a plane with origin (-0.019141, 0.709169, 0.083526), x-axis (1.0, 0.0, 0.0), and normal (0.0, -1.0, 0.0), then extrude the profile by 1.418339. Construct a se...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.730858, 0.645591), (0.769141, 0.645591)) .segment((0.769141, 0.645591), (0.769141, -0.812645)) .segment((0.769141, -0.812645), (-0.730858, -0.812645)) .segment((-0.730858, -0.812645), (-0.730858, 0.645591)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.019141, -0.083526)]).rect(1.499998, 1.458235).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.019141, 0.709169, 0.083526), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.418339) result = bod...
import cadquery as cq var_1_center = (0.019141, -0.083526) var_1_height = 1.458235 var_1_width = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.019141, 0.709169, 0.083526), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0,...
0000/00000615
Create a sketch on a plane with origin at (-0.485064, 0.0, -0.175324), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch consists of two concentric circles centered at the plane origin: an outer circle with a radius of 0.264904 and an inner circle with a radius of 0.189896. Subtract the...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.264904) loop_2 = cq.Sketch().circle(0.189896) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.485064, 0.0, -0.175324), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.224025) result = body_...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.264904).reset() loop_2 = cq.Sketch().circle(0.189896).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.485064, 0.0, -0.175324), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.224025...
import cadquery as cq var_1_radius = 0.264904 var_2_radius = 0.189896 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.485064, 0.0, -0.175324), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSket...
0000/00000638
Construct a single body by first defining a sketch on a plane with origin at (0.0, 0.032312, -0.025119), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). The sketch consists of a single closed polygonal loop defined by the ordered vertices: (-0.749999, 0.195187), (0.749999, 0.195187), (0.749999,...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.195187), (0.749999, 0.195187)) .segment((0.749999, 0.195187), (0.749999, -0.144948)) .segment((0.749999, -0.144948), (0.685374, -0.144948)) .segment((0.685374, -0.144948), (0.685374, 0.025119)) .segment((0.685374, 0.025119), (0.566326,...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.749999, 0.195187), (0.749999, 0.195187), (0.749999, -0.144948), (0.685374, -0.144948), (0.685374, 0.025119), (0.566326, 0.025119), (0.566326, -0.144948), (-0.566326, -0.144948), (-0.566326, 0.025119), (-0.685374, 0.025119), (-0.685374, -0.144948),...
import cadquery as cq var_1_points = [(-0.749999, 0.195187), (0.749999, 0.195187), (0.749999, -0.144948), (0.685374, -0.144948), (0.685374, 0.025119), (0.566326, 0.025119), (0.566326, -0.144948), (-0.566326, -0.144948), (-0.566326, 0.025119), (-0.685374, 0.025119), (-0.685374, -0.144948), (-0.749999, -0.144948)] # --- ...
0000/00000679
Create a sketch on a plane with origin at (-1.161937, 0.043269, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). Define a single polygonal loop with vertices at (0.411937, 0.44874), (1.463196, 1.499999), (1.911937, 1.499999), and (0.411937, 0) in the sketch plane coordinates. Extrude thi...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.411937, 0.44874), (1.463196, 1.499999)) .segment((1.463196, 1.499999), (1.911937, 1.499999)) .segment((1.911937, 1.499999), (0.411937, 0)) .segment((0.411937, 0), (0.411937, 0.44874)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-1.16...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(0.411937, 0.44874), (1.463196, 1.499999), (1.911937, 1.499999), (0.411937, 0)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-1.161937, 0.043269, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrud...
import cadquery as cq var_1_points = [(0.411937, 0.44874), (1.463196, 1.499999), (1.911937, 1.499999), (0.411937, 0)] # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-1.161937, 0.043269, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop...
0000/00000695
Create a sketch on a plane with origin at (-0.711864, -0.75, -0.330508), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop centered at (0.711864, 0.749999) with a width of 1.423728 and a height of 1.499999. Extrude this sketch by a distance of 0.661...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.423728, 0)) .segment((1.423728, 0), (1.423728, 1.499999)) .segment((1.423728, 1.499999), (0, 1.499999)) .segment((0, 1.499999), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.711864, -0.75, -0.330508), cq.Vector(1.0, ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.711864, 0.749999)]).rect(1.423728, 1.499999).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.711864, -0.75, -0.330508), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.661016) result = body_1
import cadquery as cq var_1_center = (0.711864, 0.749999) var_1_height = 1.499999 var_1_width = 1.423728 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.711864, -0.75, -0.330508), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0....
0000/00000696
Create a sketch on a plane with origin at (-0.75, -0.491379, -0.375), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). Within this sketch, define a single rectangular loop centered at (0.75, 0.491379) with a width of 1.5 and a height of 0.982758. Extrude this sketch by a distance of 0.75 to form the final ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.982758)) .segment((1.5, 0.982758), (0, 0.982758)) .segment((0, 0.982758), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.491379, -0.375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.491379)]).rect(1.5, 0.982758).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.491379, -0.375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75) result = body_1
import cadquery as cq var_1_center = (0.75, 0.491379) var_1_height = 0.982758 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.491379, -0.375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).pl...
0000/00000711
Construct a single body by first defining a sketch on a plane with origin at (0.0, 0.0095, 0.0), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). The sketch profile consists of a primary rectangular loop with width 1.5 and height 0.4, from which three internal regions are subtracted: a centered ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.75, 0.2), (0.75, 0.2)) .segment((0.75, 0.2), (0.75, -0.2)) .segment((0.75, -0.2), (-0.75, -0.2)) .segment((-0.75, -0.2), (-0.75, 0.2)) .assemble() ) loop_2 = ( cq.Sketch() .segment((-0.5, 0.0095), (0.5, 0.0095)) .segment((0.5, 0.0095), (0.5, -0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.5, 0.4).reset() loop_2 = cq.Sketch().rect(1, 0.019).reset() loop_3 = cq.Sketch().polygon([(-0.681, 0.15), (-0.662, 0.15), (-0.662, -0.15), (-0.681, -0.15), (-0.681, -0.11), (-0.7, -0.11), (-0.7, 0.11), (-0.681, 0.11)]) loop_4 = cq.Sketch().polygon([(0.6...
import cadquery as cq var_1_height = 0.4 var_1_width = 1.5 var_2_height = 0.019 var_2_width = 1 var_3_points = [(-0.681, 0.15), (-0.662, 0.15), (-0.662, -0.15), (-0.681, -0.15), (-0.681, -0.11), (-0.7, -0.11), (-0.7, 0.11), (-0.681, 0.11)] var_4_points = [(0.662, 0.15), (0.681, 0.15), (0.681, 0.11), (0.7, 0.11), (0.7, ...
0000/00000714
Construct a sketch on a plane with origin at (0.0, 0.019372, -0.5245), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). The sketch profile is defined by the difference between two loops. The first loop boundary consists of an arc from (-0.105434, -0.206145) through (0, -0.225499) to (0.105434, -...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-0.105434, -0.206145), (0, -0.225499), (0.105434, -0.206145)) .arc((0.105434, -0.206145), (0.160787, -0.155686), (0.166728, -0.081022)) .segment((0.166728, -0.081022), (0.071372, 0.230874)) .segment((0.071372, 0.230874), (0.071372, 1.2745)) .segment((0...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-0.105434, -0.206145), (0, -0.225499), (0.105434, -0.206145)) .arc((0.105434, -0.206145), (0.160787, -0.155686), (0.166728, -0.081022)) .segment((0.166728, -0.081022), (0.071372, 0.230874)) .segment((0.071372, 0.230874), (0.071372, 1.2745)) .segment((0...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-0.105434, -0.206145), (0, -0.225499), (0.105434, -0.206145)) .arc((0.105434, -0.206145), (0.160787, -0.155686), (0.166728, -0.081022)) .segment((0.166728, -0.081022), (0.071372, 0.230874)) .segment((0.071372, 0.230874), (0.071372, 1.2745)) .segment((0...
0000/00000767
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis along (0.0, 1.0, 0.0), and normal along (1.0, 0.0, 0.0). In this sketch, draw a single circular loop with a radius of 0.026785 centered at the origin. Extrude this sketch symmetrically by a total height of 0.75 (0.375 in each direction) to form the final...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.026785) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.026785).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq var_1_radius = 0.026785 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
0000/00000843
Create a sketch on a plane with origin at (0.0, 0.0, 0.068181), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). The sketch profile consists of a rectangular loop with width 1.499998 and height 1.363636, from which a circular loop with radius 0.42613 is subtracted. Extrude this resulting profile by a dista...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.681818), (0.749999, 0.681818)) .segment((0.749999, 0.681818), (0.749999, -0.681818)) .segment((0.749999, -0.681818), (-0.749999, -0.681818)) .segment((-0.749999, -0.681818), (-0.749999, 0.681818)) .assemble() ) loop_2 = cq.Sketch().cir...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.363636).reset() loop_2 = cq.Sketch().circle(0.42613).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.068181), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(-0.13636...
import cadquery as cq var_1_height = 1.363636 var_1_width = 1.499998 var_2_radius = 0.42613 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.068181), cq.Vector(1.0, 0.0, 0.0), cq.Vector(...
0000/00000849
Construct a single body by first defining a sketch on a plane with origin at (0.1875, 0.75, -0.37875), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). Within this sketch, create a single closed polygonal loop defined by the ordered vertices: (-0.374999, 0.94125), (0, 0.94125), (0, 0.7575), (-0....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.374999, 0.94125), (0, 0.94125)) .segment((0, 0.94125), (0, 0.7575)) .segment((0, 0.7575), (-0.194999, 0.7575)) .segment((-0.194999, 0.7575), (-0.194999, 0)) .segment((-0.194999, 0), (0, 0)) .segment((0, 0), (0, -0.18375)) .segment((0, -0.18375),...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.374999, 0.94125), (0, 0.94125), (0, 0.7575), (-0.194999, 0.7575), (-0.194999, 0), (0, 0), (0, -0.18375), (-0.374999, -0.18375)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.1875, 0.75, -0.37875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0...
import cadquery as cq var_1_points = [(-0.374999, 0.94125), (0, 0.94125), (0, 0.7575), (-0.194999, 0.7575), (-0.194999, 0), (0, 0), (0, -0.18375), (-0.374999, -0.18375)] # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.1875, 0.75, -0.37875), cq.Vector(1.0, 0.0, 0....
0000/00000850
Create a sketch on a plane with origin at (0.015625, 0, -0.75), X-axis direction (0, 1, 0), and normal direction (1, 0, 0). In this sketch, define a single rectangular loop centered at (0, 0.75) with a width of 0.0625 and a height of 1.5. Extrude this sketch by a distance of -0.03125 along the plane normal to form the ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.03125, 0), (0.03125, 0)) .segment((0.03125, 0), (0.03125, 1.5)) .segment((0.03125, 1.5), (-0.03125, 1.5)) .segment((-0.03125, 1.5), (-0.03125, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.015625, 0.0, -0.75), cq.Vector(0.0, 1.0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0, 0.75)]).rect(0.0625, 1.5).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.015625, 0.0, -0.75), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0.03125) result = body_1
import cadquery as cq var_1_center = (0, 0.75) var_1_height = 1.5 var_1_width = 0.0625 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.015625, 0.0, -0.75), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loo...
0000/00000860
Construct the model on a plane with origin (0.027353, 0.75, -0.110118), X-axis (1, 0, 0), and normal (0, -1, 0). First, create a sketch containing two concentric circles sharing a common center at (-0.23283, 0.220984) with radii 0.009372 and 0.004653, subtract the inner circle from the outer, and extrude the resulting ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.23283, 0.220984)]).circle(0.009372).reset() loop_2 = cq.Sketch().push([(-0.23283, 0.220984)]).circle(0.004653).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.027353, 0.75, -0.110118), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeS...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.23283, 0.220984)]).circle(0.009372).reset() loop_2 = cq.Sketch().push([(-0.23283, 0.220984)]).circle(0.004653).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.027353, 0.75, -0.110118), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeS...
import cadquery as cq var_1_center = (-0.23283, 0.220984) var_1_radius = 0.009372 var_2_radius = 0.004653 var_3_center = (-0.232866, 0.220842) var_3_radius = 0.002805 var_4_center = (0.042555, 0) var_4_radius = 0.010122 var_5_radius = 0.006 var_6_center = (0.042507, 0) var_6_radius = 0.002935 # --- Body 1 --- loop_1 = ...
0000/00000894
Create a sketch on a plane with origin at (0, 0, -0.525), X-axis direction (1, 0, 0), and normal direction (0, 0, 1). In this sketch, define a single rectangular loop where both the width and height are determined by a shared parameter of 0.125. Extrude this sketch by a distance of 1 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.0625, -0.0625), (0.0625, -0.0625)) .segment((0.0625, -0.0625), (0.0625, 0.0625)) .segment((0.0625, 0.0625), (-0.0625, 0.0625)) .segment((-0.0625, 0.0625), (-0.0625, -0.0625)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(0.125, 0.125).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.525), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1) result = body_1
import cadquery as cq var_1 = 0.125 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, -0.525), cq.Vector(1, 0, 0), cq.Vector(0, 0, 1))).placeSketch(loop_1) body_1 = sketch_1.extrude(1) result = body_1
0000/00000903
Construct the first body by defining a polygonal loop with vertices at (0, 0), (0.493128, 0.488662), (0.728998, 0.209002), and (0.334244, -0.12394) on a sketch plane originating at (0.021001, 0.107895, -0.18236) with an X-axis of (1.0, 0.0, 0.0) and a normal of (0.0, -1.0, 0.0); extrude this sketch by -0.391059. Constr...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0.493128, 0.488662)) .segment((0.493128, 0.488662), (0.728998, 0.209002)) .segment((0.728998, 0.209002), (0.334244, -0.12394)) .segment((0.334244, -0.12394), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.021001, 0.10789...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(0, 0), (0.493128, 0.488662), (0.728998, 0.209002), (0.334244, -0.12394)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.021001, 0.107895, -0.18236), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0...
import cadquery as cq var_1_points = [(0, 0), (0.493128, 0.488662), (0.728998, 0.209002), (0.334244, -0.12394)] var_2_center = (-0.569986, -0.405847) var_2_radius = 0.201003 # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.021001, 0.107895, -0.18236), cq.Vector(1....
0000/00000908
Construct the first body by defining a rectangular loop centered at (0.749999, 0.460526) with a width of 1.421053 and a height of 0.789474 on a plane originating at (-0.749999, -0.279947, -0.460526) with an X-axis of (1, 0, 0) and a normal of (0, -1, 0), then extruding this sketch by 0.065785. Construct the second body...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.039473, 0.065789), (1.460526, 0.065789)) .segment((1.460526, 0.065789), (1.460526, 0.855263)) .segment((1.460526, 0.855263), (0.039473, 0.855263)) .segment((0.039473, 0.855263), (0.039473, 0.065789)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.749999, 0.460526)]).rect(1.421053, 0.789474).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.749999, -0.279947, -0.460526), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.065785) result = bo...
import cadquery as cq var_1_center = (0.749999, 0.460526) var_1_height = 0.789474 var_1_width = 1.421053 var_2_height = 0.921052 var_2_width = 1.499999 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.749999, -0.279947, -0.4...
0000/00000915
Create a sketch on a plane with origin at (1.26678, 0.75, -1.128082), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, define a single rectangular loop centered at (-1.26678, 1.128081) with a width of 1.377739 and a height of 1.081849. Extrude this sketch by a distance of 0.74999...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-1.95565, 1.669006), (-0.577911, 1.669006)) .segment((-0.577911, 1.669006), (-0.577911, 0.587157)) .segment((-0.577911, 0.587157), (-1.95565, 0.587157)) .segment((-1.95565, 0.587157), (-1.95565, 1.669006)) .assemble() ) sketch_1 = cq.Workplane(cq.P...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-1.26678, 1.128081)]).rect(1.377739, 1.081849).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(1.26678, 0.75, -1.128082), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.749999) result = body_1
import cadquery as cq var_1_center = (-1.26678, 1.128081) var_1_height = 1.081849 var_1_width = 1.377739 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(1.26678, 0.75, -1.128082), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0,...
0000/00000931
Create a workplane with origin at (-0.159374, -0.398437, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). On this plane, sketch a single rectangular loop centered at (0.159374, 0.398437) with a width of 0.318749 and a height of 0.796874. Extrude this sketch by a distance of 0.796874 to form the fin...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0.318749, 0)) .segment((0.318749, 0), (0.318749, 0.796874)) .segment((0.318749, 0.796874), (0, 0.796874)) .segment((0, 0.796874), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.159374, -0.398437, -0.75), cq.Vector(1.0, ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.159374, 0.398437)]).rect(0.318749, 0.796874).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.159374, -0.398437, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.796874) result = body_1
import cadquery as cq var_1_center = (0.159374, 0.398437) var_1_height = 0.796874 var_1_width = 0.318749 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.159374, -0.398437, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0....
0000/00001000
Create a sketch on a plane with origin at (0.0, 0.0, -0.046874), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop with a width of 1.499998 and a height of 1.312498. Extrude this sketch by a distance of 0.093749 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.656249), (0.749999, 0.656249)) .segment((0.749999, 0.656249), (0.749999, -0.656249)) .segment((0.749999, -0.656249), (-0.749999, -0.656249)) .segment((-0.749999, -0.656249), (-0.749999, 0.656249)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.312498).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.046874), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.093749) result = body_1
import cadquery as cq var_1_height = 1.312498 var_1_width = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.046874), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.093749)...
0000/00001006
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis direction (0.0, 1.0, 0.0), and normal direction (1.0, 0.0, 0.0). In this sketch, draw a single circular loop with a radius of 0.01875 centered at the origin. Extrude this sketch symmetrically by a total height of 0.75 (0.375 in each direction) to form th...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.01875) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.01875).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq var_1_radius = 0.01875 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
0000/00001014
Create a sketch on a plane with origin at (0, 0, -0.053571), X-axis direction (1, 0, 0), and normal (0, 0, 1). The sketch consists of a rectangular loop with width and height both defined by a shared parameter of 1.5, from which a circular loop is subtracted. The circular loop has a radius of 0.396512 and is centered a...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.75, 0.75), (0.75, 0.75)) .segment((0.75, 0.75), (0.75, -0.75)) .segment((0.75, -0.75), (-0.75, -0.75)) .segment((-0.75, -0.75), (-0.75, 0.75)) .assemble() ) loop_2 = cq.Sketch().push([(0.000253, -0.001164)]).circle(0.396512).reset() sketch_1 = c...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.5, 1.5).reset() loop_2 = cq.Sketch().push([(0.000253, -0.001164)]).circle(0.396512).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.053571), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = ske...
import cadquery as cq var_1 = 1.5 var_2_center = (0.000253, -0.001164) var_2_radius = 0.396512 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() loop_2 = cq.Sketch().push([var_2_center]).circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, -0.053571), cq.Vector(1, 0, 0), cq.Vecto...
0000/00001020
Construct the first body by defining a sketch on a plane with origin (-0.044117, 0.070069, -0.088495), X-axis (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). In this sketch, create a single rectangular loop centered at (0.044117, -0.070069) with a width of 1.442905 and a height of 1.499999, then extrude the sketch by 0.17...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.677335, 0.67993), (0.76557, 0.67993)) .segment((0.76557, 0.67993), (0.76557, -0.820069)) .segment((0.76557, -0.820069), (-0.677335, -0.820069)) .segment((-0.677335, -0.820069), (-0.677335, 0.67993)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.044117, -0.070069)]).rect(1.442905, 1.499999).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.044117, 0.070069, -0.088495), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.176982) result = bod...
import cadquery as cq var_1_center = (0.044117, -0.070069) var_1_height = 1.499999 var_1_width = 1.442905 var_2_center = (-0.612345, 0.50965) var_2_radius = 0.065811 var_3_center = (-0.365728, 0.50965) var_3_radius = 0.065811 var_4_center = (-0.119112, 0.50965) var_4_radius = 0.065811 var_5_center = (0.127489, 0.50965)...
0000/00001021
Create a sketch on a plane with origin at (0.069361, -0.053755, -0.37037), X-axis direction (1, 0, 0), and normal direction (0, 0, 1). The sketch consists of two concentric circular loops sharing a common center at (-0.069351, 0.05374), with the outer loop having a radius of 0.75 and the inner loop having a radius of 0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.069351, 0.05374)]).circle(0.75).reset() loop_2 = cq.Sketch().push([(-0.069351, 0.05374)]).circle(0.74074).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.069361, -0.053755, -0.37037), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSke...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.069351, 0.05374)]).circle(0.75).reset() loop_2 = cq.Sketch().push([(-0.069351, 0.05374)]).circle(0.74074).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.069361, -0.053755, -0.37037), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSke...
import cadquery as cq var_1_center = (-0.069351, 0.05374) var_1_radius = 0.75 var_2_radius = 0.74074 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).circle(var_1_radius).reset() loop_2 = cq.Sketch().push([var_1_center]).circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.069361, -0.0537...
0000/00001034
Create a sketch on a plane with origin at (0, 0.749999, 0), X-axis direction (1, 0, 0), and normal direction (0, -1, 0). In this sketch, define a single rectangular loop where both the width and height are determined by a shared parameter of 1.499998. Extrude this sketch by a distance of 1.499999 to form the final body...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.749999), (0.749999, 0.749999)) .segment((0.749999, 0.749999), (0.749999, -0.749999)) .segment((0.749999, -0.749999), (-0.749999, -0.749999)) .segment((-0.749999, -0.749999), (-0.749999, 0.749999)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.499998).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.749999, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.499999) result = body_1
import cadquery as cq var_1 = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0.749999, 0), cq.Vector(1, 0, 0), cq.Vector(0, -1, 0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.499999) result = body_1
0000/00001049
Construct a single body by first defining a sketch on a plane with origin at (0.038516, 0.016406, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch profile is a closed loop formed by the following ordered sequence: a line segment from (-0.05483, -0.032812) to (-0.022017, -0.0328...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.05483, -0.032812), (-0.022017, -0.032812)) .segment((-0.022017, -0.032812), (-0.022017, 0)) .segment((-0.022017, 0), (-0.02483, 0)) .segment((-0.02483, 0), (-0.02483, -0.027187)) .arc((-0.02483, -0.027187), (-0.025653, -0.029176), (-0.027642, -0...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.05483, -0.032812), (-0.022017, -0.032812)) .segment((-0.022017, -0.032812), (-0.022017, 0)) .segment((-0.022017, 0), (-0.02483, 0)) .segment((-0.02483, 0), (-0.02483, -0.027187)) .arc((-0.02483, -0.027187), (-0.025653, -0.029176), (-0.027642, -0...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.05483, -0.032812), (-0.022017, -0.032812)) .segment((-0.022017, -0.032812), (-0.022017, 0)) .segment((-0.022017, 0), (-0.02483, 0)) .segment((-0.02483, 0), (-0.02483, -0.027187)) .arc((-0.02483, -0.027187), (-0.025653, -0.029176), (-0.027642, -0...
0000/00001109
Define a sketch on a plane with origin at (0.0, -0.75, -0.085227), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, create a single closed polygonal loop defined by the ordered vertices: (-0.340909, 0), (-0.340909, 0.085227), (-0.18943, 0.085227), (-0.238636, 0.170454), (0.238636...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.340909, 0), (-0.340909, 0.085227)) .segment((-0.340909, 0.085227), (-0.18943, 0.085227)) .segment((-0.18943, 0.085227), (-0.238636, 0.170454)) .segment((-0.238636, 0.170454), (0.238636, 0.170454)) .segment((0.238636, 0.170454), (0.18943, 0.08522...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.340909, 0), (-0.340909, 0.085227), (-0.18943, 0.085227), (-0.238636, 0.170454), (0.238636, 0.170454), (0.18943, 0.085227), (0.340909, 0.085227), (0.340909, 0)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.085227), cq.Vector(1.0, 0.0,...
import cadquery as cq var_1_points = [(-0.340909, 0), (-0.340909, 0.085227), (-0.18943, 0.085227), (-0.238636, 0.170454), (0.238636, 0.170454), (0.18943, 0.085227), (0.340909, 0.085227), (0.340909, 0)] # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0....
0000/00001130
Create a sketch on a plane with origin at (-0.75, -0.099897, -0.00461), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop centered at (0.75, 0.099897) with a width of 1.5 and a height of 0.199795. Extrude this sketch by a distance of 0.009221 to form the fina...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.199795)) .segment((1.5, 0.199795), (0, 0.199795)) .segment((0, 0.199795), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.099897, -0.00461), cq.Vector(1.0, 0.0, 0.0), cq.Vector(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.099897)]).rect(1.5, 0.199795).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.099897, -0.00461), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.009221) result = body_1
import cadquery as cq var_1_center = (0.75, 0.099897) var_1_height = 0.199795 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.099897, -0.00461), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))....
0000/00001164
Construct the first body by sketching a rectangular loop with a width and height both defined by a shared parameter of 1.125 on a plane originating at (0, 0, -0.75) with an X-axis of (1, 0, 0) and a normal of (0, 0, 1), then extruding this sketch by 0.5625. Construct the second body by sketching a circular loop with a ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.5625, -0.5625), (-0.5625, -0.5625)) .segment((-0.5625, -0.5625), (-0.5625, 0.5625)) .segment((-0.5625, 0.5625), (0.5625, 0.5625)) .segment((0.5625, 0.5625), (0.5625, -0.5625)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.125, 1.125).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.5625) result = body_1 # --- Body 2 --- loop_2 = cq.Sketch().circle(0.37...
import cadquery as cq var_1 = 1.125 var_2 = 0.375 var_3_radius = 0.1875 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, -0.75), cq.Vector(1, 0, 0), cq.Vector(0, 0, 1))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.5625) result = body_1 # --- Body 2 --...
0000/00001169
Create a sketch on a plane with origin at (-0.75, -0.175, -0.03), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). Within this sketch, define a rectangular loop centered at (0.75, 0.175) with a width of 1.5 and a height of 0.35. Extrude this sketch by a distance of 0.059999 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.35)) .segment((1.5, 0.35), (0, 0.35)) .segment((0, 0.35), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.175, -0.03), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).place...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.175)]).rect(1.5, 0.35).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.175, -0.03), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.059999) result = body_1
import cadquery as cq var_1_center = (0.75, 0.175) var_1_height = 0.35 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.175, -0.03), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(l...
0000/00001170
Construct a single body by first defining a sketch on a plane with origin at (-0.019285, -0.75, -0.066428), X-axis direction (0.0, 1.0, 0.0), and normal direction (1.0, 0.0, 0.0). Within this sketch, create a closed polygonal loop by connecting the following vertices in order: (0, 0), (0, 0.171428), (1.414285, 0.171428...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.171428)) .segment((0, 0.171428), (1.414285, 0.171428)) .segment((1.414285, 0.171428), (1.499999, 0.085714)) .segment((1.499999, 0.085714), (1.499999, -0.038571)) .segment((1.499999, -0.038571), (1.275, -0.038571)) .segment((1.275, -0.0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(0, 0), (0, 0.171428), (1.414285, 0.171428), (1.499999, 0.085714), (1.499999, -0.038571), (1.275, -0.038571), (1.275, 0)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.019285, -0.75, -0.066428), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).pl...
import cadquery as cq var_1_points = [(0, 0), (0, 0.171428), (1.414285, 0.171428), (1.499999, 0.085714), (1.499999, -0.038571), (1.275, -0.038571), (1.275, 0)] # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.019285, -0.75, -0.066428), cq.Vector(0.0, 1.0, 0.0), c...
0000/00001171
Create a sketch on a plane with origin at (-0.75, -0.069702, -0.012546), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). Within this sketch, define a single rectangular loop centered at (0.75, 0.069702) with a width of 1.5 and a height of 0.139405. Extrude this sketch by a distance of 0.025092 t...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.139405)) .segment((1.5, 0.139405), (0, 0.139405)) .segment((0, 0.139405), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.069702, -0.012546), cq.Vector(1.0, 0.0, 0.0), cq.Vector...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.069702)]).rect(1.5, 0.139405).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.069702, -0.012546), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.025092) result = body_1
import cadquery as cq var_1_center = (0.75, 0.069702) var_1_height = 0.139405 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.069702, -0.012546), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))...
0000/00001172
Create a sketch on a plane with origin at (-0.75, 0.012546, -0.073187), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, define a single rectangular loop centered at (0.75, 0.073187) with a width of 1.5 and a height of 0.146375. Extrude this sketch by a distance of 0.025092 along...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.146375)) .segment((1.5, 0.146375), (0, 0.146375)) .segment((0, 0.146375), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.012546, -0.073187), cq.Vector(1.0, 0.0, 0.0), cq.Vector(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.073187)]).rect(1.5, 0.146375).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.012546, -0.073187), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.025092) result = body_1
import cadquery as cq var_1_center = (0.75, 0.073187) var_1_height = 0.146375 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.012546, -0.073187), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0)))...
0000/00001175
Create a sketch on a plane with origin at (0, 0, -0.062499), X-axis direction (1, 0, 0), and normal direction (0, 0, 1). In this sketch, define a single rectangular loop where both the width and height are equal to a shared parameter of 1.499998. Extrude this sketch symmetrically by a total distance of 0.124999 (0.0624...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, -0.749999), (0.749999, -0.749999)) .segment((0.749999, -0.749999), (0.749999, 0.749999)) .segment((0.749999, 0.749999), (-0.749999, 0.749999)) .segment((-0.749999, 0.749999), (-0.749999, -0.749999)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.499998).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.062499), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.124999, both=True) result = body_1
import cadquery as cq var_1 = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1, var_1).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, -0.062499), cq.Vector(1, 0, 0), cq.Vector(0, 0, 1))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.124999, both=True) result = body_1
0000/00001210
Construct a single body by first defining a sketch on a plane with origin at (0.308823, -0.75, -0.13981), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch profile is a closed loop formed by three sequential segments: a straight line from (0, 0) to (0, 0.55924), a circular arc starting ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.55924)) .arc((0, 0.55924), (-0.16821, 1.121938), (-0.617646, 1.5)) .segment((-0.617646, 1.5), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.308823, -0.75, -0.13981), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.55924)) .arc((0, 0.55924), (-0.16821, 1.121938), (-0.617646, 1.5)) .segment((-0.617646, 1.5), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.308823, -0.75, -0.13981), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (0, 0.55924)) .arc((0, 0.55924), (-0.16821, 1.121938), (-0.617646, 1.5)) .segment((-0.617646, 1.5), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.308823, -0.75, -0.13981), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1....
0000/00001213
Construct a sketch on a plane with origin at (-0.336734, 0.0, -0.734693), X-axis along (1.0, 0.0, 0.0), and normal along (0.0, 0.0, 1.0). The sketch profile is formed by a slot centered at (0.336734, 0) with a length of 0.673469 and a diameter of 0.82653, from which two regular hexagonal regions are subtracted: the fir...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, -0.413265), (0.673469, -0.413265)) .arc((0.673469, -0.413265), (1.086734, 0), (0.673469, 0.413265)) .segment((0.673469, 0.413265), (0, 0.413265)) .arc((0, 0.413265), (-0.413265, 0), (0, -0.413265)) .assemble() ) loop_2 = ( cq.Sketch() .segment((...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.336734, 0)]).slot(0.673469, 0.82653).reset() loop_2 = cq.Sketch().regularPolygon(0.303992, 6).reset() loop_3 = cq.Sketch().push([(0.734693, 0)]).regularPolygon(0.233296, 6).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.336734, 0.0, -0.734693),...
import cadquery as cq var_1_center = (0.336734, 0) var_1_diameter = 0.82653 var_1_length = 0.673469 var_2_radius = 0.303992 var_2_sides = 6 var_3_center = (0.734693, 0) var_3_radius = 0.233296 var_3_sides = 6 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).slot(var_1_length, var_1_diameter).reset() loop_2 = ...
0000/00001220
Create a sketch on a plane with origin at (0.68198, -0.219609, -0.192616), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). Within this sketch, define a single rectangular loop centered at (-0.68198, 0.219609) with a width of 1.499999 and a height of 1.27013. Extrude this sketch by a distance of ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-1.43198, 0.854675), (0.068019, 0.854675)) .segment((0.068019, 0.854675), (0.068019, -0.415455)) .segment((0.068019, -0.415455), (-1.43198, -0.415455)) .segment((-1.43198, -0.415455), (-1.43198, 0.854675)) .assemble() ) sketch_1 = cq.Workplane(cq.P...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.68198, 0.219609)]).rect(1.499999, 1.27013).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.68198, -0.219609, -0.192616), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.385232) result = body_1...
import cadquery as cq var_1_center = (-0.68198, 0.219609) var_1_height = 1.27013 var_1_width = 1.499999 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.68198, -0.219609, -0.192616), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0...
0000/00001227
Create a sketch on a plane with origin at (0.0, 0.75, 0.0), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, draw a single circular loop with a radius of 0.45 centered at the plane origin. Extrude this sketch by a distance of 1.2 along the plane normal to form the final solid bod...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.45) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.2) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.45).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.2) result = body_1
import cadquery as cq var_1_radius = 0.45 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.2) result = body_1
0000/00001256
Create a sketch on a plane with origin at (0.011562, 0.568724, -0.066806), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). Within this sketch, define a single rectangular loop centered at (-0.011562, 0.066806) with a width of 1.499998 and a height of 1.185692. Extrude this sketch by a distance ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.761562, 0.659652), (0.738437, 0.659652)) .segment((0.738437, 0.659652), (0.738437, -0.52604)) .segment((0.738437, -0.52604), (-0.761562, -0.52604)) .segment((-0.761562, -0.52604), (-0.761562, 0.659652)) .assemble() ) sketch_1 = cq.Workplane(cq.P...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.011562, 0.066806)]).rect(1.499998, 1.185692).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.011562, 0.568724, -0.066806), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.137449) result = bod...
import cadquery as cq var_1_center = (-0.011562, 0.066806) var_1_height = 1.185692 var_1_width = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.011562, 0.568724, -0.066806), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0,...
0000/00001291
Construct the first body by defining a rectangular loop centered at (0, -0.1875) with a width of 1.44935 and a height of 0.375 on a sketch plane originating at (0, 0, -0.75) with an X-axis of (1, 0, 0) and a normal of (0, 0, 1); extrude this sketch by 1.5. Construct the second body by defining a separate rectangular lo...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.724675, 0), (-0.724675, -0.375)) .segment((-0.724675, -0.375), (0, -0.375)) .segment((0, -0.375), (0.724675, -0.375)) .segment((0.724675, -0.375), (0.724675, 0)) .segment((0.724675, 0), (0.553246, 0)) .segment((0.553246, 0), (0, 0)) .segment((0,...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0, -0.1875)]).rect(1.44935, 0.375).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1 # --- Body 2 --- loop_2 = cq....
import cadquery as cq var_1_center = (0, -0.1875) var_1_height = 0.375 var_1_width = 1.44935 var_2_center = (0, 0.1875) var_2_height = 0.375 var_2_width = 1.106492 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.7...
0000/00001324
Define a sketch on a plane with origin at (0.15, -0.15, 0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). Within this sketch, create a rectangular loop centered at (-0.15, -0.75) with a width of 0.3 and a height of 1.5. Extrude this sketch by a distance of -0.3 along the plane normal to fo...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (-0.3, 0)) .segment((-0.3, 0), (-0.3, -1.5)) .segment((-0.3, -1.5), (0, -1.5)) .segment((0, -1.5), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.15, -0.15, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).pla...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.15, -0.75)]).rect(0.3, 1.5).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.15, -0.15, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(-0.3) result = body_1
import cadquery as cq var_1_center = (-0.15, -0.75) var_1_height = 1.5 var_1_width = 0.3 # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.15, -0.15, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loo...
0000/00001330
Create a sketch on a plane with origin at (-0.111535, 0.586322, -0.111535), X-axis direction (1, 0, 0), and normal direction (0, -1, 0). This sketch contains four circular loops sharing a common radius of 0.095726, centered respectively at (-0.47863, 0.47863), (0.47863, 0.47863), (0.47863, -0.47863), and (-0.47863, -0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.47863, 0.47863)]).circle(0.095726).reset() loop_2 = cq.Sketch().push([(0.47863, 0.47863)]).circle(0.095726).reset() loop_3 = cq.Sketch().push([(0.47863, -0.47863)]).circle(0.095726).reset() loop_4 = cq.Sketch().push([(-0.47863, -0.47863)]).circle(0.0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.47863, 0.47863)]).circle(0.095726).reset() loop_2 = cq.Sketch().push([(0.47863, 0.47863)]).circle(0.095726).reset() loop_3 = cq.Sketch().push([(0.47863, -0.47863)]).circle(0.095726).reset() loop_4 = cq.Sketch().push([(-0.47863, -0.47863)]).circle(0.0...
import cadquery as cq var_1_center = (-0.47863, 0.47863) var_2 = 0.095726 var_3_center = (0.47863, 0.47863) var_4_center = (0.47863, -0.47863) var_5_center = (-0.47863, -0.47863) # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).circle(var_2).reset() loop_2 = cq.Sketch().push([var_3_center]).circle(var_2).rese...
0000/00001341
Construct the first body by sketching a rectangular loop centered at (-0.426463, -0.373155) with a width of 0.852927 and a height of 0.746311 on a plane defined by origin (0.102927, 0.11831, -0.009328), X-axis (1, 0, 0), and normal (0, 0, 1), then extruding the sketch by 0.018657. Construct the second body on the same ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.852927, -0.746311), (0, -0.746311)) .segment((0, -0.746311), (0, 0)) .segment((0, 0), (-0.852927, 0)) .segment((-0.852927, 0), (-0.852927, -0.746311)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.102927, 0.11831, -0.009328), cq.Vec...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(-0.426463, -0.373155)]).rect(0.852927, 0.746311).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.102927, 0.11831, -0.009328), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.018657) result = body...
import cadquery as cq var_1_center = (-0.426463, -0.373155) var_1_height = 0.746311 var_1_width = 0.852927 var_2_center = (0.325686, 0.395078) var_2_fillet_radius = 0.026653 var_3 = 0.229225 var_4 = 0.013326 array_centers_0 = [(0.237721, 0.307117), (0.413638, 0.307117), (0.413638, 0.483034), (0.237721, 0.483034)] # ---...
0000/00001348
Create a sketch on a plane with origin at (0.0, 0.0, -0.042857), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). Define a rectangular loop with a width of 0.642856 and a height of 1.5, then apply a fillet with a radius of 0.053571 to all vertices of this loop. Extrude the resulting sketch profile by a dis...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.267857, 0.75), (-0.267857, 0.75)) .arc((-0.267857, 0.75), (-0.305737, 0.734309), (-0.321428, 0.696428)) .segment((-0.321428, 0.696428), (-0.321428, -0.696428)) .arc((-0.321428, -0.696428), (-0.305737, -0.734309), (-0.267857, -0.75)) .segment((-0....
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(0.642856, 1.5).reset().vertices().fillet(0.053571).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.042857), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.085714) result = body_1
import cadquery as cq var_1_fillet_radius = 0.053571 var_1_height = 1.5 var_1_width = 0.642856 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset().vertices().fillet(var_1_fillet_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.042857), cq.Vector(1.0, 0.0, 0.0), cq.Vector...
0000/00001390
Construct the first body by defining a sketch on a plane with origin at (-0.004597, 0.333333, -0.749999), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). The sketch profile is a polygon defined by the ordered vertices: (-0.328735, 0), (-0.300957, 0), (-0.300957, 1.472222), (0.310153, 1.472222),...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.328735, 0), (-0.300957, 0)) .segment((-0.300957, 0), (-0.300957, 1.472222)) .segment((-0.300957, 1.472222), (0.310153, 1.472222)) .segment((0.310153, 1.472222), (0.310153, 0)) .segment((0.310153, 0), (0.337931, 0)) .segment((0.337931, 0), (0.337...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.328735, 0), (-0.300957, 0), (-0.300957, 1.472222), (0.310153, 1.472222), (0.310153, 0), (0.337931, 0), (0.337931, 1.499999), (-0.328735, 1.499999)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.004597, 0.333333, -0.749999), cq.Vector(1.0, 0.0, 0....
import cadquery as cq var_1_points = [(-0.328735, 0), (-0.300957, 0), (-0.300957, 1.472222), (0.310153, 1.472222), (0.310153, 0), (0.337931, 0), (0.337931, 1.499999), (-0.328735, 1.499999)] var_2_center = (0.004597, 1.208333) var_2_height = 0.027777 var_2_width = 0.666666 # --- Body 1 --- loop_1 = cq.Sketch().polygon(v...
0000/00001398
Construct the first body by sketching on the plane with origin (0, 0, 0), X-axis (0, 1, 0), and normal (1, 0, 0). This sketch consists of a circular loop with radius 0.187491 centered at the origin, with a concentric circular cutout of radius 0.107142. Extrude this profile symmetrically by a total height of 1.5 (0.75 i...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.187491) loop_2 = cq.Sketch().circle(0.107142) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) result = body_1 # -...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.187491).reset() loop_2 = cq.Sketch().circle(0.107142).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) res...
import cadquery as cq var_1_radius = 0.187491 var_2_radius = 0.107142 var_3_center = (-0.235714, 0) var_4 = 0.03 var_5_center = (0.184285, 0) # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0, 0, 0), cq.Vecto...
0000/00001399
Create a sketch on a plane with origin at (0, 0, 0), X-axis along (0, 1, 0), and normal along (1, 0, 0). Define two concentric circular loops centered at the origin with radii of 0.43748 and 0.25 respectively. Subtract the inner loop from the outer loop to form an annular region. Extrude this sketch symmetrically by a ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.43748) loop_2 = cq.Sketch().circle(0.25) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.43748).reset() loop_2 = cq.Sketch().circle(0.25).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) result =...
import cadquery as cq var_1_radius = 0.43748 var_2_radius = 0.25 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(0.0, 1.0, 0.0), cq.Vector(1.0, 0.0, 0.0))).placeSketch((loop_1 - loop...
0000/00001402
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis along (1.0, 0.0, 0.0), and normal along (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop with a width of 1.499998 and a height of 0.613636. Extrude this sketch symmetrically by a total distance of 0.01704 (0.00852 in each direction) to f...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.749999, 0.306818), (-0.749999, 0.306818)) .segment((-0.749999, 0.306818), (-0.749999, -0.306818)) .segment((-0.749999, -0.306818), (0.749999, -0.306818)) .segment((0.749999, -0.306818), (0.749999, 0.306818)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 0.613636).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.01704, both=True) result = body_1
import cadquery as cq var_1_height = 0.613636 var_1_width = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.01704, both=T...
0000/00001405
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, -1.0, 0.0). In this sketch, draw a single circular loop with a radius of 0.04686 centered at the origin. Extrude this sketch symmetrically by a total height of 0.749999 (0.37499995 in each direction) ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.04686) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.749999, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.04686).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.749999, both=True) result = body_1
import cadquery as cq var_1_radius = 0.04686 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.749999, both=True) result = body_1
0000/00001407
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis along (1.0, 0.0, 0.0), and normal along (0.0, -1.0, 0.0). Define two concentric circular loops centered at the origin: an outer loop with a radius of 0.43748 and an inner loop with a radius of 0.25. Subtract the inner loop from the outer loop to form an ...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.43748) loop_2 = cq.Sketch().circle(0.25) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.43748).reset() loop_2 = cq.Sketch().circle(0.25).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.75, both=True) result ...
import cadquery as cq var_1_radius = 0.43748 var_2_radius = 0.25 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch((loop_1 - loo...
0000/00001409
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis along (1.0, 0.0, 0.0), and normal along (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop with a width of 1.5 and a height of 0.375. Extrude this sketch symmetrically by a total distance of 0.06248 (0.03124 in both directions) to form the...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.75, 0.1875), (-0.75, 0.1875)) .segment((-0.75, 0.1875), (-0.75, -0.1875)) .segment((-0.75, -0.1875), (0.75, -0.1875)) .segment((0.75, -0.1875), (0.75, 0.1875)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.5, 0.375).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.03124, both=True) result = body_1
import cadquery as cq var_1_height = 0.375 var_1_width = 1.5 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.03124, both=True) res...
0000/00001410
Create a sketch on a plane with origin at (0.0, 0.0, 0.0), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). In this sketch, define a single rectangular loop with a width of 1.499998 and a height of 0.999998. Extrude this sketch symmetrically by a total distance of 0.06248 (0.03124 in both directi...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.749999, 0.499999), (-0.749999, 0.499999)) .segment((-0.749999, 0.499999), (-0.749999, -0.499999)) .segment((-0.749999, -0.499999), (0.749999, -0.499999)) .segment((0.749999, -0.499999), (0.749999, 0.499999)) .assemble() ) sketch_1 = cq.Workplane(...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 0.999998).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.03124, both=True) result = body_1
import cadquery as cq var_1_height = 0.999998 var_1_width = 1.499998 # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.03124, both=T...
0000/00001449
Construct a single body by first defining a sketch on a plane with origin at (2.019999, 0.0, -0.28), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch profile is a closed loop formed by the following ordered sequence: an arc from (-2.141081, -0.095) through (-2.089226, -0.135554) to (-2...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-2.141081, -0.095), (-2.089226, -0.135554), (-2.025, -0.15)) .segment((-2.025, -0.15), (-1.805, -0.15)) .segment((-1.805, -0.15), (-1.805, 0.15)) .segment((-1.805, 0.15), (-2.025, 0.15)) .arc((-2.025, 0.15), (-2.089226, 0.135554), (-2.141081, 0.095)) ....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-2.141081, -0.095), (-2.089226, -0.135554), (-2.025, -0.15)) .segment((-2.025, -0.15), (-1.805, -0.15)) .segment((-1.805, -0.15), (-1.805, 0.15)) .segment((-1.805, 0.15), (-2.025, 0.15)) .arc((-2.025, 0.15), (-2.089226, 0.135554), (-2.141081, 0.095)) ....
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((-2.141081, -0.095), (-2.089226, -0.135554), (-2.025, -0.15)) .segment((-2.025, -0.15), (-1.805, -0.15)) .segment((-1.805, -0.15), (-1.805, 0.15)) .segment((-1.805, 0.15), (-2.025, 0.15)) .arc((-2.025, 0.15), (-2.089226, 0.135554), (-2.141081, 0.095)) ....
0000/00001490
Create a sketch on a plane with origin at (0.0, 0.0, -0.243243), X-axis direction (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). The sketch consists of two concentric circular loops: an outer loop with a radius of 0.75 and an inner loop with a radius of 0.121621. Subtract the inner loop from the outer loop to form an ann...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) loop_2 = cq.Sketch().circle(0.121621) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.243243), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.486486) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() loop_2 = cq.Sketch().circle(0.121621).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.243243), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.486486) result =...
import cadquery as cq var_1_radius = 0.75 var_2_radius = 0.121621 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.243243), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1...
0000/00001497
Construct the first body by defining a sketch on a plane with origin (0.0, 0.75, -0.007499), X-axis (1.0, 0.0, 0.0), and normal (0.0, -1.0, 0.0). The sketch contains a single polygonal loop with vertices at (-0.168749, 0), (0.168749, 0), (0.108749, -0.06), and (-0.108749, -0.06). Extrude this sketch by 1.5 to form the ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.168749, 0), (0.168749, 0)) .segment((0.168749, 0), (0.108749, -0.06)) .segment((0.108749, -0.06), (-0.108749, -0.06)) .segment((-0.108749, -0.06), (-0.168749, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, -0.007499), cq...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.168749, 0), (0.168749, 0), (0.108749, -0.06), (-0.108749, -0.06)]) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, -0.007499), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, -1.0, 0.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = ...
import cadquery as cq var_1_points = [(-0.168749, 0), (0.168749, 0), (0.108749, -0.06), (-0.108749, -0.06)] var_2_center = (0, -0.75) var_2_height = 0.75 var_2_width = 0.337498 # --- Body 1 --- loop_1 = cq.Sketch().polygon(var_1_points) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.75, -0.007499), cq.Vector(1.0, 0....
0000/00001503
Construct the first body by sketching a rectangle centered at (0.75, 0.34375) with a width of 1.5 and a height of 0.6875 on a plane defined by the origin (-0.75, -0.34375, -0.03125), x-axis (1, 0, 0), and normal (0, 0, 1), then extruding this sketch by 0.0625. Construct the second body by sketching two circles on a pla...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (1.5, 0)) .segment((1.5, 0), (1.5, 0.6875)) .segment((1.5, 0.6875), (0, 0.6875)) .segment((0, 0.6875), (0, 0)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.34375, -0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0,...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().push([(0.75, 0.34375)]).rect(1.5, 0.6875).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.34375, -0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(0.0625) result = body_1 # --- Body 2 ---...
import cadquery as cq var_1_center = (0.75, 0.34375) var_1_height = 0.6875 var_1_width = 1.5 var_2_center = (-0.671875, -0.265593) var_3 = 0.054687 var_4_center = (0.671875, 0.265625) # --- Body 1 --- loop_1 = cq.Sketch().push([var_1_center]).rect(var_1_width, var_1_height).reset() sketch_1 = cq.Workplane(cq.Plane(cq.V...
0000/00001519
Construct a single body by first defining a sketch on a plane with origin at (-0.416184, 0.416184, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch profile is a closed loop formed by the following ordered segments: a line from (0.277456, 0) to (0.832369, 0); a line from (0.8323...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.277456, 0), (0.832369, 0)) .segment((0.832369, 0), (0.832369, -0.381502)) .arc((0.832369, -0.381502), (0.700314, -0.700314), (0.381502, -0.832369)) .segment((0.381502, -0.832369), (0, -0.832369)) .segment((0, -0.832369), (0, -0.277456)) .arc((0, ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.277456, 0), (0.832369, 0)) .segment((0.832369, 0), (0.832369, -0.381502)) .arc((0.832369, -0.381502), (0.700314, -0.700314), (0.381502, -0.832369)) .segment((0.381502, -0.832369), (0, -0.832369)) .segment((0, -0.832369), (0, -0.277456)) .arc((0, ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.277456, 0), (0.832369, 0)) .segment((0.832369, 0), (0.832369, -0.381502)) .arc((0.832369, -0.381502), (0.700314, -0.700314), (0.381502, -0.832369)) .segment((0.381502, -0.832369), (0, -0.832369)) .segment((0, -0.832369), (0, -0.277456)) .arc((0, ...
0000/00001533
Create a sketch on a plane with origin at (0.0, 0.0, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). In this sketch, draw a single circular loop with a radius of 0.0625 centered at the plane origin. Extrude this sketch by a height of 1.5 to form the final body.
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.0625) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.0625).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1
import cadquery as cq var_1_radius = 0.0625 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch(loop_1) body_1 = sketch_1.extrude(1.5) result = body_1
0000/00001534
Create a sketch on a plane with origin at (0.0, 0.0, -0.75), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). The sketch consists of two concentric circular loops: an outer loop with a radius of 0.3125 and an inner loop with a radius of 0.25. Subtract the inner loop from the outer loop to form an...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.3125) loop_2 = cq.Sketch().circle(0.25) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(1.5) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.3125).reset() loop_2 = cq.Sketch().circle(0.25).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(1.5) result = body_1
import cadquery as cq var_1_radius = 0.3125 var_2_radius = 0.25 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loo...
0000/00001535
Construct the first body by defining a sketch on a plane with origin (0.0, 0.0, -0.272727), X-axis (1.0, 0.0, 0.0), and normal (0.0, 0.0, 1.0). This sketch consists of an annular region formed by a circle of radius 0.749978 centered at the origin with a concentric circular cutout of radius 0.545454. Extrude this sketch...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.749978) loop_2 = cq.Sketch().circle(0.545454) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.272727), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.545454) result = body_1 # --...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.749978).reset() loop_2 = cq.Sketch().circle(0.545454).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.272727), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.545454) resu...
import cadquery as cq var_1_radius = 0.749978 var_2_radius = 0.545454 var_3_center = (0.0, 0.272727) var_3_radius = 0.06816 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.272727), cq.Vector(1.0,...
0000/00001537
Construct a sketch on a plane with origin at (0, 0, -0.076271), X-axis direction (1, 0, 0), and normal (0, 0, 1). Define the first loop as a polygon with vertices at (-0.749999, 0.165254), (0.749999, 0.165254), (0.749999, 0.13983), (0.521186, 0.13983), (0.521186, -0.13983), (0.749999, -0.13983), (0.749999, -0.165254), ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.165254), (0.749999, 0.165254)) .segment((0.749999, 0.165254), (0.749999, 0.13983)) .segment((0.749999, 0.13983), (0.521186, 0.13983)) .segment((0.521186, 0.13983), (0.521186, -0.13983)) .segment((0.521186, -0.13983), (0.749999, -0.1398...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().polygon([(-0.749999, 0.165254), (0.749999, 0.165254), (0.749999, 0.13983), (0.521186, 0.13983), (0.521186, -0.13983), (0.749999, -0.13983), (0.749999, -0.165254), (-0.749999, -0.165254), (-0.749999, -0.13983), (-0.648305, -0.13983), (-0.648305, 0.13983), (-0.7...
import cadquery as cq var_1_points = [(-0.749999, 0.165254), (0.749999, 0.165254), (0.749999, 0.13983), (0.521186, 0.13983), (0.521186, -0.13983), (0.749999, -0.13983), (0.749999, -0.165254), (-0.749999, -0.165254), (-0.749999, -0.13983), (-0.648305, -0.13983), (-0.648305, 0.13983), (-0.749999, 0.13983)] var_2_center =...
0000/00001538
Create a sketch on a plane with origin at (0.0, 0.0, -0.0625), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). Define the sketch profile by subtracting a circle of radius 0.5 from a concentric circle of radius 0.75. Extrude this resulting annular profile by a height of 0.125 to form the final bo...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75) loop_2 = cq.Sketch().circle(0.5) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.0625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.125) result = body_1
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().circle(0.75).reset() loop_2 = cq.Sketch().circle(0.5).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.0625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop_2)) body_1 = sketch_1.extrude(0.125) result = body_1
import cadquery as cq var_1_radius = 0.75 var_2_radius = 0.5 # --- Body 1 --- loop_1 = cq.Sketch().circle(var_1_radius).reset() loop_2 = cq.Sketch().circle(var_2_radius).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.0625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0))).placeSketch((loop_1 - loop...
0000/00001539
Construct a sketch on a plane with origin at (0, 0, -0.018145), X-axis along (1, 0, 0), and normal along (0, 0, 1). The sketch consists of a rectangular loop with width 1.499998 and height 1.354838, from which two circular cutouts are subtracted. The first circular cutout is centered at (-0.471774, 0.314516), and the s...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((-0.749999, 0.677419), (0.749999, 0.677419)) .segment((0.749999, 0.677419), (0.749999, -0.677419)) .segment((0.749999, -0.677419), (-0.749999, -0.677419)) .segment((-0.749999, -0.677419), (-0.749999, 0.677419)) .assemble() ) loop_2 = cq.Sketch().pus...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 1.354838).reset() loop_2 = cq.Sketch().push([(-0.471774, 0.314516)]).circle(0.048387).reset() loop_3 = cq.Sketch().push([(0.387096, 0.314516)]).circle(0.048387).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.018145), cq.Vector(1...
import cadquery as cq var_1_height = 1.354838 var_1_width = 1.499998 var_2_center = (-0.471774, 0.314516) var_3 = 0.048387 var_4_center = (0.387096, 0.314516) # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset() loop_2 = cq.Sketch().push([var_2_center]).circle(var_3).reset() loop_3 = cq.Sketch(...
0000/00001541
Construct a workplane with origin at (0.75, 0.474264, -0.033088), X-axis direction (1.0, 0.0, 0.0), and normal direction (0.0, 0.0, 1.0). On this plane, define a sketch containing three loops. The first loop is a closed profile formed by a segment from (0, 0) to (-1.489485, 0), followed by an arc from (-1.489485, 0) th...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (-1.489485, 0)) .arc((-1.489485, 0), (-1.357747, -0.59952), (-0.852799, -0.948529)) .segment((-0.852799, -0.948529), (-0.661764, -0.948529)) .segment((-0.661764, -0.948529), (0, 0)) .assemble() ) loop_2 = ( cq.Sketch() .arc((-1.432657, -0.17...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (-1.489485, 0)) .arc((-1.489485, 0), (-1.357747, -0.59952), (-0.852799, -0.948529)) .segment((-0.852799, -0.948529), (-0.661764, -0.948529)) .segment((-0.661764, -0.948529), (0, 0)) .assemble() ) loop_2 = ( cq.Sketch() .arc((-1.432657, -0.17...
import cadquery as cq var_1_center = (-0.661764, -0.132352) var_1_radius = 0.055147 # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0, 0), (-1.489485, 0)) .arc((-1.489485, 0), (-1.357747, -0.59952), (-0.852799, -0.948529)) .segment((-0.852799, -0.948529), (-0.661764, -0.948529)) .segment((-0.661764, -0.948529), (0, 0...
0000/00001579
Construct the first body by defining a sketch on a plane with origin at (0, 0.030821, 0), x-axis along (1, 0, 0), and normal along (0, -1, 0). The sketch profile consists of a rectangular loop with width 1.499998 and height 0.678082, with all corners filleted by a radius of 0.061643. From this rectangle, subtract two c...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .segment((0.688356, -0.339041), (-0.688356, -0.339041)) .arc((-0.688356, -0.339041), (-0.731944, -0.320986), (-0.749999, -0.277397)) .segment((-0.749999, -0.277397), (-0.749999, 0.277397)) .arc((-0.749999, 0.277397), (-0.731944, 0.320986), (-0.688356, 0.3390...
import cadquery as cq # --- Body 1 --- loop_1 = cq.Sketch().rect(1.499998, 0.678082).reset().vertices().fillet(0.061643).reset() loop_2 = cq.Sketch().push([(0.39041, 0.215753)]).circle(0.046232).reset() loop_3 = cq.Sketch().push([(-0.39041, -0.215753)]).circle(0.046232).reset() sketch_1 = cq.Workplane(cq.Plane(cq.Vecto...
import cadquery as cq var_1_fillet_radius = 0.061643 var_1_height = 0.678082 var_1_width = 1.499998 var_2_center = (0.39041, 0.215753) var_3 = 0.046232 var_4_center = (-0.39041, -0.215753) # --- Body 1 --- loop_1 = cq.Sketch().rect(var_1_width, var_1_height).reset().vertices().fillet(var_1_fillet_radius).reset() loop_2...
0000/00001590
Construct a single body by first defining a sketch on a plane with origin at (0.0, -0.079999, 0.0), X-axis direction (0.0, 1.0, 0.0), and normal direction (1.0, 0.0, 0.0). The sketch profile consists of a single closed loop formed by an arc starting at (0.001285, 0.014944), passing through (-0.014999, 0), and ending at...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0.001285, 0.014944), (-0.014999, 0), (0.001285, -0.014944)) .segment((0.001285, -0.014944), (0.175, 0)) .segment((0.175, 0), (0.001285, 0.014944)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.079999, 0.0), cq.Vector(0.0, 1.0, 0.0), ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0.001285, 0.014944), (-0.014999, 0), (0.001285, -0.014944)) .segment((0.001285, -0.014944), (0.175, 0)) .segment((0.175, 0), (0.001285, 0.014944)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.079999, 0.0), cq.Vector(0.0, 1.0, 0.0), ...
import cadquery as cq # --- Body 1 --- loop_1 = ( cq.Sketch() .arc((0.001285, 0.014944), (-0.014999, 0), (0.001285, -0.014944)) .segment((0.001285, -0.014944), (0.175, 0)) .segment((0.175, 0), (0.001285, 0.014944)) .assemble() ) sketch_1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.079999, 0.0), cq.Vector(0.0, 1.0, 0.0), ...
End of preview. Expand in Data Studio

Intent2CAD

Official dataset for Intent2CAD: How Semantic–Parametric Supervision Shapes Text-to-CAD Generation, accepted at NeurIPS 2026.

Paper · Code

Intent2CAD provides natural language descriptions paired with executable CadQuery programs, along with source–target pairs for intent-preserving CAD editing. Each model has three aligned code representations:

  • Primitive: low-level sketch and extrusion operations.
  • Semantic: feature-level operations such as rectangles, polygons, slots, fillets, and arrays.
  • Semantic–parametric: semantic features with shared parameters and derived expressions.

Datasets

Subset Splits Description
generation train / validation / test IntentCAD-100K: text descriptions and three aligned code representations.
editing test IntentCAD-Edit-1K: editing instructions with source and target programs for each representation.

The editing dataset covers Feature Edit (FE), Consistency Edit (CE), and Derived-Relation Edit (DE), stored as feature, consistency, and dependency.

The editing examples are drawn from the generation test set.

Data Format

Generation

Field Description
id Sample identifier
text Natural language description
code_primitive Primitive CadQuery program
code_semantic Semantic CadQuery program
code_semparam Semantic–parametric CadQuery program

Editing

Each example contains id, category, instruction, and a source–target pair for each representation: source_primitive / target_primitive, source_semantic / target_semantic, and source_semparam / target_semparam.

Usage

from datasets import load_dataset

generation = load_dataset("scottyjb/Intent2CAD", "generation", token=True)
train = generation["train"]
validation = generation["validation"]
test = generation["test"]

editing = load_dataset(
    "scottyjb/Intent2CAD", "editing", split="test", token=True
)

Evaluation

Evaluation annotations are provided in metadata/editing.tsv, matched to examples by id.

They specify the loops checked for edit success, edit types, and relation subtypes.

Models should receive the source program and editing instruction. Target programs and evaluation annotations are used only for scoring.

Citation

@inproceedings{yang2026intent2cad,
  title     = {{Intent2CAD}: How Semantic--Parametric Supervision Shapes Text-to-CAD Generation},
  author    = {Jinbo Yang and Mingyue Yuan and Shikai Jing},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}

Acknowledgements

The CAD construction sequences are derived from DeepCAD. Programs use CadQuery.

License

This dataset is released under CC BY-NC 4.0. Source materials retain their original licenses.

Downloads last month
26

Paper for scottyjb/Intent2CAD