input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
Start by creating a new coordinate system and rotating it by negative ninety degrees around the z-axis. Translate this coordinate system slightly along the y-axis. Draw a two-dimensional sketch on the xy plane of the transformed coordinate system, forming the first face of the rectangular block. Scale the sketch to fit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0382) .lineTo(0, 0.0382) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw two circles on separate faces, each with a defined center and radius. Scale both circles to reduce their size. Transform the scaled circles into 3D objects by rotating and translating them according to the specified angl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1529, 0.1529) .circle(0.1529) .extrude(0.2266) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.4824, 0.5971) .circle(0.1529) .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0...
The design involves creating a rectangular bar with rounded edges and two cylindrical holes. The bar has a length of approximately 0.75 units, a width of about 0.103 units, and a height of around 0.032 units. The bar features two smaller cylindrical holes near its ends, each with a diameter that is significantly smalle...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0529, 0) .lineTo(0.6971, 0) .threePointArc((0.75, 0.0529), (0.6971, 0.1029)) .lineTo(0.0529, 0.1029) .threePointArc((0, 0.0529), (0.0529, 0)) .close() .moveTo(0.0529, 0.0529) .circle(0.0324) .moveTo(0.69...
The design involves creating a rectangular plate with rounded corners and a flat surface. The plate is initially sketched in two dimensions and then transformed into a three-dimensional object. The final dimensions of the plate are approximately 0.75 units in length, 0.6387 units in width, and 0.0091 units in height. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0265) .lineTo(0.0294, 0.0029) .lineTo(0.7235, 0) .lineTo(0.75, 0.0265) .lineTo(0.75, 0.6118) .lineTo(0.7265, 0.6412) .lineTo(0.0265, 0.6382) .lineTo(0, 0.6118) .close() .extrude(0.0078) ) result ...
The design consists of two main parts. The first part is a rectangular block with a length of 0.75 units, a width of 0.45 units, and a height of 0.3 units. The second part is a cylindrical object with a diameter of 0.45 units and a height of 0.3 units. The cylindrical object is positioned centrally along the length of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.45) .lineTo(0, 0.45) .close() .extrude(0.2969) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.296875, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
The first part involves creating a cylindrical object with a hollow center and rounded edges. This cylinder has a length and width of 0.705 units and a height of 0.75 units. The second part is a smaller, solid cylinder with a smooth surface and rounded edges. It measures 0.405 units in length and width and 0.225 units ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3529, 0.3529) .circle(0.3502) .moveTo(0.3529, 0.3529) .circle(0.2013) .extrude(0.75) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2039, 0.2039) .circle(0.2023) .extrude(0.2266) ) part_2 = pa...
The design involves creating a rectangular block with curved edges. Start by setting up a new coordinate system with no rotation or translation. Draw a two-dimensional sketch that forms the outline of the block on two faces. The first face has a complex shape with six lines forming a closed loop, while the second face ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0412) .lineTo(0.0441, 0.0029) .lineTo(0.0971, 0.0559) .lineTo(0.3765, 0.0559) .lineTo(0.3765, 0.1147) .lineTo(0.0735, 0.1147) .close() .extrude(0.2344) ) part_1 = part_1.union( cq.Workplane("XY") ...
Start by creating a new coordinate system with all angles and translations set to zero. On the first face, draw a circle with its center positioned at (0.2584, 0.2584). Scale this circle to fit the desired size and transform it into a three-dimensional object using the initial coordinate settings. Extrude the circle al...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2588, 0.2588) .circle(0.2568) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/00524783.stl")
The first part of the design involves creating a hollow cylindrical object. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Next, draw two concentric circles to form the first face, with the outer circle being larger than the inner one. Scale the entire sketch to fit the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .moveTo(0.0941, 0.0941) .circle(0.0625) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./s...
Create a new coordinate system and draw a two-dimensional sketch of a square on the first face. The square has a length of 0.75 units and a width of 0.7181 units. Scale the sketch to fit the desired dimensions and transform it into a three-dimensional object. Extrude the sketch 0.016 units to form a thin plate. The fin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7176) .lineTo(0, 0.7176) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0028/00281751.stl")
The design consists of two main parts. The first part is a rectangular prism with a square base, measuring 0.375 units in both length and width, and 0.75 units in height. The second part is a smaller rectangular prism with rounded edges and corners, measuring 0.1875 units in both length and width, and 0.0469 units in h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.375) .lineTo(0, 0.375) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1875, 0) .lineTo(0.1875, 0.1875) .line...
Start by creating a rectangular plate with a circular hole in the center. The plate has a length slightly over 0.4 units, a width just under 0.8 units, and a height of about 0.05 units. The circular hole is positioned near the top of the plate and is relatively small compared to the overall size of the plate. The plate...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4186, 0) .lineTo(0.4186, 0.7734) .lineTo(0, 0.7734) .close() .moveTo(0.2093, 0.6188) .circle(0.0334) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0067/00676208.stl"...
The design consists of three parts that form a complex structure. The first part is a cube with rounded edges and corners, measuring approximately 0.744 units in length, 0.750 units in width, and 0.149 units in height. This part is created by extruding a two-dimensional sketch into a three-dimensional solid. The secon...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7441, 0) .lineTo(0.7441, 0.75) .lineTo(0, 0.7441) .close() .extrude(0.1484) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1188, 0) .lineTo(0.1188, 0.4436) ...
Construct a rounded cylindrical object by first creating a new coordinate system with specific rotational and translational settings. Draw a circular loop on a new face and scale it appropriately. Transform the scaled sketch into three-dimensional space and then extrude it to form a solid body. The final object will ha...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0817, 0.0817) .circle(0.0824) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0027/00274076.stl")
The design involves creating a square base with several holes and cutouts. The base is defined by a series of arcs and lines that form a rounded rectangle. Inside this rectangle, there are two smaller circular holes near the top and bottom edges, and a larger rectangular cutout in the middle. The middle cutout also has...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0529) .threePointArc((0.0147, 0.0147), (0.0529, 0)) .lineTo(0.6971, 0) .threePointArc((0.7353, 0.0147), (0.75, 0.0529)) .lineTo(0.75, 0.6971) .threePointArc((0.7353, 0.7353), (0.6971, 0.75)) .lineTo(0.0529, 0...
Create a new coordinate system and draw a two-dimensional sketch that forms the base of the fidget spinner. The sketch includes a complex outer boundary made up of six arcs and four smaller circles. After drawing the sketch, scale it down to fit the desired size. Transform the scaled sketch into three dimensions and ex...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1437, 0.2537) .threePointArc((0, 0.0592), (0.2424, 0.0451)) .threePointArc((0.3523, 0.1127), (0.4735, 0.0648)) .threePointArc((0.7159, 0.0366), (0.606, 0.2537)) .threePointArc((0.4904, 0.3157), (0.4707, 0.4453)) .th...
To create the torus, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, consisting of two concentric circles. Scale the sketch to reduce its size, then rotate and translate it according to the coordinate system settings. Finally, extrude ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.25) .extrude(0.125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.265625, -0.007812)) result = part_1 cq.exporters.export(result, "....
The design involves creating a rounded cylindrical object. Begin by setting up a new coordinate system with no rotation and a translation vector of [0.2917, 0.2917, 0.0]. Draw a circle on the first face, then scale and transform this circle into a three-dimensional shape. The circle is extruded to form a solid cylinder...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0824, 0.0824) .circle(0.0817) .extrude(0.2031) ) part_1 = part_1.translate((0.289062, 0.289062, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0014/00147514.stl")
The first part of the CAD model is an L-shaped structure with a rectangular top and a square base. This part has a length of 0.5 units, a width of 0.25 units, and a height of 0.375 units. The second part is a smaller rectangular protrusion that attaches to one side of the first part. This protrusion has a length of 0.5...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.251, 0) .lineTo(0.251, 0.1255) .lineTo(0.5, 0.1255) .lineTo(0.5, 0.251) .lineTo(0, 0.251) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) #...
Construct a rectangular block with a slightly rounded top and bottom edge. The block has a uniform thickness throughout its length and width. The overall dimensions are 0.75 units in length, 0.3462 units in width, and 0.1154 units in height. The block is created by transforming a two-dimensional sketch into a three-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3471) .lineTo(0, 0.3471) .close() .extrude(0.1172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.132812, 0)) result = part_1 cq.exporters.export(result, "....
To create the rectangular prism with rounded edges, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a rectangle with rounded corners. Transform this sketch into three dimensions by applying a rotation and translation based on the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5618, 0) .lineTo(0.5618, 0.75) .lineTo(0, 0.5618) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = part_1 cq.exporters.export(result, "./s...
Start by creating a rectangular block with two circular holes. The first face of the block is defined by a rectangle and two circles. The rectangle has a length of approximately 0.5 units and a width of approximately 0.75 units. Two smaller circles are positioned within the rectangle, each with a diameter that fits com...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.25, 0.6265) .circle(0.0559) .moveTo(0.25, 0.1265) .circle(0.0559) .extrude(0.2812) ) result = part_1 cq.exporters.export(r...
Create a new coordinate system with specific angles and no translation. Sketch a rectangle on the first face. The rectangle has a length slightly longer than four times its width. After scaling the sketch, rotate and translate it to align with the coordinate system. Extrude the sketch to form a solid body that resemble...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0625, 0) .lineTo(0.0625, 0.0147) .lineTo(0, 0.0147) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(res...
The design involves creating a cylindrical shape with a base that is a scaled-down circle. The circle is centered and then transformed into a three-dimensional object by extruding it along its normal axis. The final dimensions of the cylinder are a length and width of 0.75 units and a height of 0.0109 units. This proce...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0096/00969015.stl")
The design involves creating a rectangular prism with a curved top and a notch on one side. The object starts as a two-dimensional sketch that is scaled and transformed into a three-dimensional shape. The final model is a solid body with a symmetrical form, featuring a flat base and a slightly rounded top. The length o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1206, 0.1206) .lineTo(0, 0.1206) .lineTo(0, 0.2441) .lineTo(0.75, 0.2441) .lineTo(0.75, 0.1206) .lineTo(0.6294, 0.1206) .lineTo(0.7529, 0.0029) .close() .extrude(0.7188) ) result = par...
The design involves creating a rectangular plate with a series of cutouts. The plate has a central opening and two smaller circular holes. The overall shape is a flat rectangular plate with a length of 0.75 units, a width of 0.1741 units, and a height of 0.0134 units. The central opening is a smaller rectangle, and the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1735) .lineTo(0, 0.1735) .close() .moveTo(0.1941, 0.0324) .lineTo(0.5559, 0.0324) .lineTo(0.5559, 0.1412) .lineTo(0.1941, 0.1412) .close() .moveTo(0.0941, 0.0...
The design consists of two main parts. The first part is a rectangular base with a v-shaped top surface. This base has a length of 0.375 units, a width of 0.375 units, and a height of 0.75 units. The second part is a cylindrical hole centered in the middle of the rectangular base. The cylindrical hole has a diameter of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.1132) .lineTo(0.1132, 0.1132) .lineTo(0.1132, 0.375) .lineTo(0, 0.375) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0661, 0....
The first part involves creating a rectangular plate. This plate has a flat surface with rounded edges and measures approximately 0.4844 in length, 0.0312 in width, and 0.7500 in height. The second part involves creating a smaller rectangular block that will be used to cut a hole into the first part. The block has a fl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4844, 0) .lineTo(0.4844, 0.0304) .lineTo(0, 0.0304) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a circular shape on a new face. Scale this circular shape to the desired size and transform it into a three-dimensional object by rotating and translating it accordingly. Extrude the transformed shape along its normal directi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0863, 0.0863) .circle(0.0856) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0071/00714370.stl")
The design consists of three main parts. The first part is a thin rectangular plate with a length of 0.75 units, a width of 0.375 units, and a height of 0.0134 units. The second part is a rectangular prism with a similar length and width but a slightly thicker height of 0.0198 units. This prism features a smaller inner...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0156) ) part_1 = part_1.translate((0, 0, 0.390625)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0...
The CAD model consists of three main parts that are combined to form an L-shaped structure. The first part is a rectangular base with a height of 0.1875 units, a width of 0.75 units, and a length of 0.75 units. The second part is a rectangular block that sits on top of the base, extending upwards with a height of 0.562...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1875) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.1882, 0.75) .lineTo(...
The design consists of four main parts: a rectangular frame, a horizontal crossbar, a vertical support, and a diagonal support. The rectangular frame has a length of 0.4839, width of 0.037, and height of 0.7394. It forms the primary structure of the assembly. The horizontal crossbar, positioned across the top of the fr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0418, 0) .lineTo(0.0418, 0.0361) .lineTo(0, 0.0361) .close() .extrude(0.7422) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.4426, 0) .lineTo(0.4844, 0) .lineTo(0.4844, 0.0361) ...
The design involves creating a circular disk with a central hole. Start by setting up a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two concentric circles, one larger and one smaller. Scale the entire sketch to reduce its size. Transform the sketch into a three-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.0353) .extrude(0.0781) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.117188, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular sketch on a new face. This circle will serve as the base of the cylindrical object. After drawing the circle, scale the sketch to the desired size. Transform the scaled sketch into a three-dimensional sh...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0902, 0.0902) .circle(0.0895) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0060/00607646.stl")
Start by creating a new coordinate system with specific rotations to align the work plane correctly. Draw a rectangular shape on the first face, forming a closed loop with four straight lines. Scale the rectangle to reduce its size proportionally. Transform this scaled rectangle into a three-dimensional object by rotat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/003...
The first part involves creating a cylindrical shape with a rectangular top and curved edges. The dimensions of this part are approximately 0.433 units in length, 0.366 units in width, and 0.148 units in height. The second part is a cube with rounded edges and corners, measuring around 0.433 units in length, 0.384 unit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4297, 0) .threePointArc((0.4128, 0.1634), (0.3606, 0.3202)) .threePointArc((0.214, 0.364), (0.0691, 0.3202)) .threePointArc((0.0169, 0.1634), (0, 0)) .close() .extrude(0.1484) ) part_1 = part_1.rot...
The design consists of two cylindrical parts. The first part is a larger cylinder with a length and width of 0.75 units and a height of 0.15 units. The top surface of this cylinder is slightly recessed compared to the bottom. The second part is a smaller cylinder with a length and width of 0.15 units and a height of 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1484) ) part_1 = part_1.translate((0, 0, 0.078125)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .extrude(0.0781) ) part_2 = part...
To create a wedge-shaped object, start by defining a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, which includes a straight line, an arc, and another line forming a closed loop. Scale the sketch to reduce its size. Transform this scaled sket...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .threePointArc((0.2912, 0.2676), (0, 0.7118)) .close() .extrude(0.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.1875, 0)) result = part_1 cq.exporters.export(result, "./...
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on the first face, then scale this shape to reduce its size. Transform the scaled shape into a three-dimensional object by rotating and translating it to maintain its position. Finally, extrude the shape along the vertical ax...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0938) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00626940.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circular 2D sketch on the first face. Scale the sketch to the desired size and then transform it using the defined rotation and translation. Extrude the transformed sketch to create a solid cylindrical object. The fina...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0235, 0.0235) .circle(0.0233) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0002/00021993.stl")
The design involves creating a cylindrical object with a central circular hole. Start by setting up a coordinate system with default angles and no translation. Draw two concentric circles on a single face, with the outer circle having a larger radius and the inner circle forming the hole. Scale the entire sketch to red...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1971) .extrude(0.4531) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00691808.stl")
The first part of the design involves creating a cylindrical object with rounded edges. Start by setting up a new coordinate system with default angles and no translation. Draw two concentric circles on the first face, then scale the entire sketch to reduce its size. Transform this scaled sketch into three-dimensional ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3373, 0.3373) .circle(0.3346) .moveTo(0.3373, 0.3373) .circle(0.2608) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0026/00264937.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a circular face and scale it down. Transform this scaled circle into a three-dimensional shape using the defined coordinate system. Extrude the shape to form a solid cylinder. The final cylindrical object will have a height of zero...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0094/00945322.stl")
Create a rectangular block by starting with a new coordinate system aligned with the default axes. Draw a rectangle on a new face, ensuring it has a length of 0.75 units and a width of 0.1875 units. Scale the rectangle to reduce its size uniformly. Transform the scaled rectangle into a three-dimensional object by extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0013/00131598.stl")
The design involves creating a U-shaped structure with a rectangular base and a smaller rectangular protrusion on top. The structure is built by defining a new coordinate system and drawing three two-dimensional sketches that form the faces of the structure. These sketches are then scaled, transformed into three dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1882) .lineTo(0.1882, 0.1882) .lineTo(0.1882, 0) .lineTo(0.3765, 0) .lineTo(0.3765, 0.75) .lineTo(0.1882, 0.75) .lineTo(0.1882, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.375) ) part_1 = part_...
Start by creating a new coordinate system with specific angles and translations. On the first face, draw a two-dimensional sketch of a rounded rectangular base with a vertical extension. This sketch includes several lines forming a complex shape. Scale the sketch to reduce its size. Rotate and translate the scaled sket...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.5) .lineTo(0.25, 0.5) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) result = part...
Start by creating a new coordinate system that is rotated and translated to position the object correctly. On the first face, draw two concentric circles to define the outline of the object. Scale the entire sketch to reduce its size proportionally. Transform the scaled sketch into three dimensions by rotating and tran...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2441) .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with no rotation or translation. Draw a rectangular shape on the first face, ensuring it forms a closed loop. Scale this rectangle to fit the desired size. Transform the scaled rectangle into a three-dimensional object by extruding it along the normal direction. The final part ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00397764.stl")
Start by creating a new coordinate system aligned with the global axes. Draw the first face using two nested rectangles. The outer rectangle has sides of 0.75 units, while the inner rectangle is slightly smaller, maintaining a consistent border. Scale the entire 2D sketch to fit the desired dimensions. Transform the 2D...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0147, 0.0147) .lineTo(0.7353, 0.0147) .lineTo(0.7353, 0.7353) .lineTo(0.0147, 0.7353) .close() .extrude(0.375) ) resu...
The design involves creating a rectangular block with a circular hole and three parallel slots. The block has rounded corners and a smaller inner rectangle with rounded corners. Two parallel slots are located above the inner rectangle, and a circular hole is positioned near the top of the block. The block is then scale...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0676) .threePointArc((0.0206, 0.0206), (0.0676, 0)) .lineTo(0.4765, 0) .threePointArc((0.5265, 0.0206), (0.5441, 0.0676)) .lineTo(0.5441, 0.6824) .threePointArc((0.5265, 0.7294), (0.4765, 0.75)) .lineTo(0.067...
Start by creating a new coordinate system with default settings. Sketch the first face, which includes two concentric circles. The outer circle forms the boundary, while the inner circle creates a hollow section. Scale this sketch to fit the desired size. Transform the scaled sketch into a three-dimensional object by r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0235, 0.0235) .circle(0.0233) .moveTo(0.0235, 0.0235) .circle(0.0195) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0024/00248835.stl")
A cylindrical object is created by defining a new coordinate system and drawing a circle on a face. This circle is then scaled, rotated, and translated into three-dimensional space. The circle is extruded along its normal direction to form a solid cylindrical body. The final shape has a height of 0.75 units and a circu...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.0118) .circle(0.0117) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0002/00021683.stl")
Draw a square plate with rounded edges and a flat surface. The plate has a square outline with rounded corners, creating a smooth transition between the sides. After drawing the initial sketch, scale it down to 75% of its original size. Transform the scaled sketch into a three-dimensional object and extrude it to give ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0765) .threePointArc((0.0206, 0.0206), (0.0765, 0)) .lineTo(0.6941, 0) .threePointArc((0.7324, 0.0176), (0.75, 0.0559)) .lineTo(0.75, 0.7118) .threePointArc((0.7382, 0.7382), (0.7118, 0.75)) .lineTo(0.0176, 0...
Start by setting up a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two loops: the first loop consists of a vertical line and an arc, and the second loop also includes a vertical line and an arc. Scale the entire two-dimensional sketch to fit the desired size. Transf...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2031, 0) .lineTo(0.2031, 0.1171) .threePointArc((0, 0.0589), (0.2031, 0)) .close() .moveTo(0.1904, 0.004) .lineTo(0.1904, 0.1131) .threePointArc((0.0127, 0.0589), (0.1904, 0.004)) .close() .extrude(0.75)...
The cylindrical object is created by extruding a circular profile to form a solid body. The top and bottom surfaces are circular, and the side is a smooth, straight surface. The final dimensions of the cylinder are a height of 0.75 units and a diameter of 0.3333 units. This basic cylindrical shape serves as a foundatio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1686, 0.1686) .circle(0.1673) .moveTo(0.1686, 0.1686) .circle(0.1541) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00057075.stl")
The design involves creating a rounded rectangular base with several faces and loops. The first face forms the main body of the base, with a series of lines defining its perimeter. The second face adds a smaller rectangular section at the top left corner, while the third face mirrors this section on the top right corne...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2828, 0) .lineTo(0.2828, 0.3186) .lineTo(0.2728, 0.3186) .lineTo(0.2728, 0.01) .lineTo(0.01, 0.01) .lineTo(0.01, 0.2469) .lineTo(0.01, 0.3186) .lineTo(0, 0.3186) .close() .extrude(0...
The part consists of a rectangular block with a curved edge. A new coordinate system is established with specific angles and a translation vector. A 2D sketch is drawn on the first face, featuring a loop that includes an arc and several lines forming a rectangular shape with a curved corner. This sketch is then scaled ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0794) .threePointArc((0.0794, 0), (0.1588, 0.0794)) .lineTo(0.75, 0.0794) .lineTo(0.75, 0.1588) .lineTo(0, 0.1588) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0....
The design involves creating a rectangular prism with curved edges and a slightly curved top surface. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms the base of the prism, consisting of a series of lines and an arc. After scaling...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0886, 0.0307) .threePointArc((0.329, 0.132), (0.4302, 0.3724)) .lineTo(0.4609, 0.3724) .lineTo(0.4609, 0) .lineTo(0.0886, 0) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, ...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. Scale the sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by applying the necessary rotations...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.2912) .lineTo(0, 0.2912) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "./...
The first part of the CAD model is an L-shaped structure. It consists of two main faces, one forming a complex L-shape and the other a simple rectangle. The L-shaped face has a series of connected lines that form its unique geometry, while the rectangular face adds to the overall structure. After scaling and transformi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.093015) .lineTo(0.112745, 0) .lineTo(0.434069, 0) .lineTo(0.434069, 0.028186) .lineTo(0.434069, 0.312868) .lineTo(0.405882, 0.312868) .lineTo(0.405882, 0.028186) .lineTo(0.12402, 0.028186) .lineTo(0.0...
The design consists of three main parts. The first part is a rectangular plate with circular holes. It has a length of 0.20625, a width of 0.721875, and a height of 0.028125. This plate features several circular cutouts, including two larger circles and one smaller circle. The second part is a series of cylindrical obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1015) .threePointArc((0.1015, 0), (0.2058, 0.1015)) .lineTo(0.2058, 0.6173) .threePointArc((0.1015, 0.7188), (0, 0.6173)) .close() .moveTo(0.1015, 0.3608) .circle(0.0761) .moveTo(0.1015, 0.5694) .circ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw two concentric circles on the first face to define the outer and inner boundaries of the washer. Scale the sketch to reduce its size proportionally. Transform the scaled sketch using the same coordinate system settings. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3412, 0.3412) .circle(0.3385) .moveTo(0.3412, 0.3412) .circle(0.1519) .extrude(0.0547) ) part_1 = part_1.translate((0.03125, 0.03125, 0.132812)) result = part_1 cq.exporters.export(result, "./stlcq/0087/00877827.stl")...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch that forms a closed loop with five straight lines. This sketch outlines a trapezoidal shape. After completing the sketch, scale it down to fit the desired dimensions. Transform this scaled sketch into...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0735) .lineTo(0.15, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.226562, 0)) result = part_1 cq.e...
Start by creating a new coordinate system. On the first face, draw a two-dimensional sketch that includes two concentric circles. The larger circle has a center at [0.0921, 0.0921], and the smaller circle shares the same center. Scale the entire sketch to reduce its size. Transform the scaled sketch into three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0934, 0.0934) .circle(0.0941) .moveTo(0.0934, 0.0934) .circle(0.0257) .extrude(0.125) ) part_1 = part_1.translate((0.03125, 0.015625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0065/00652705.stl")
The first part involves creating a rectangular prism with a trapezoidal base. This part has a length of approximately 0.4889 units, a width of approximately 0.2507 units, and a height of approximately 0.0029 units. The second part is a rectangular prism with rounded edges. It has a length of approximately 0.2473 units,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4922, 0) .lineTo(0.4922, 0.2528) .lineTo(0, 0.2528) .close() .extrude(0.0078) ) part_1 = part_1.translate((0, 0, 0.328125)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineT...
The L-shaped CAD model consists of a rectangular section that forms an L-shape. The first face has a rectangular loop, while the second face has a more complex loop forming an L-shape. These sketches are scaled down by 0.75 and transformed into a three-dimensional object. The final shape is created by extruding the ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3029) .lineTo(0.2265, 0.3029) .lineTo(0.2265, 0.5265) .lineTo(0, 0.5265) .close() .extrude(0.1562) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2265, 0) .lineTo(0.2265, 0.3029) .lineTo(0....
The cylindrical object starts with a circular base that is extruded to form a solid cylinder. The base has a diameter of approximately 0.104 units, and the cylinder extends to a height of 0.75 units. This creates a simple yet robust structure that can be used in various applications requiring a cylindrical shape.
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.051, 0.051) .circle(0.0506) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00622713.stl")
The design consists of two main parts. The first part is a rectangular block with rounded edges. It has a length of approximately zero point seven five units, a width of around zero point five units, and a height of zero point one two five units. The second part is a cylinder that is positioned and joined to the first ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.3125, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .mo...
The first part is a cylindrical object with a flat top and bottom, featuring a small cylindrical protrusion at one end. This part has a length and width of zero point zero three one four units and a height of zero point seven one four three units. The second part is a smaller cylindrical object with a hollow center and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.015686, 0.015686) .circle(0.015564) .moveTo(0.015686, 0.015686) .circle(0.009926) .extrude(0.710938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.023438, 0.007812, 0.0...
The design involves creating a rectangular base with a right triangle top. Start by setting up a new coordinate system with default settings. Draw the first face with a complex shape consisting of six lines that form a trapezoid with a triangular section on top. Next, draw a simpler rectangular face adjacent to the fir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0647) .lineTo(0.2441, 0.0647) .lineTo(0.7353, 0.0647) .lineTo(0.75, 0.0647) .lineTo(0.6029, 0.4824) .lineTo(0.2059, 0.4824) .close() .extrude(0.0234) ) part_1 = part_1.union( cq.Workplane("XY") .m...
The design involves creating a rectangular box and a rectangular cutout. The first part is a rectangular box with a length of approximately 0.554 units, a width of 0.75 units, and a height of 0.163 units. The second part is a smaller rectangular cutout that is positioned on the top surface of the box. The cutout has a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5529, 0) .lineTo(0.5529, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1641) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0521, 0) .lineTo(0.0521, 0.6328) .li...
Construct a rectangular prism with curved edges by creating a new coordinate system and drawing two faces. The first face includes an arc and a straight line, while the second face consists of an arc and two straight lines. After completing the 2D sketch, scale it down and transform it into 3D space by rotating and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1953) .threePointArc((0.0804, 0.1164), (0.1164, 0.01)) .close() .extrude(0.2656) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1164, 0.01) .threePointArc((0.118, 0.0046), (0.1172, 0)) .lineTo(0.12...
The design involves creating a cylindrical object with rounded edges. Start by setting up a new coordinate system and drawing a series of shapes on a single face. These shapes include a central circle, a rectangular area with rounded corners, and another smaller circle. After drawing, scale the entire sketch to fit the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0338, 0) .lineTo(0.6511, 0) .threePointArc((0.7188, 0.0676), (0.6511, 0.1353)) .lineTo(0.0338, 0.1353) .threePointArc((0.1015, 0.0676), (0.0338, 0)) .close() .moveTo(0.0338, 0.0676) .circle(0.0338) .move...
The design consists of two main parts. The first part is a thin rectangular prism with a length of 0.375 units, a width of 0.75 units, and a height of 0.0104 units. This part forms the base of the structure. The second part is a series of vertical bars with a gap between them. These bars are positioned directly above t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0) .lineTo(0.3765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0324, 0) .lineTo(0.0324, 0.0324) .l...
Create a ring-shaped part with a circular cross-section and smooth, rounded edges. Start by setting up a new coordinate system with specific angles and translations. Draw a two-dimensional sketch consisting of two concentric circles, then scale the sketch down. Transform the scaled sketch into three dimensions by rotat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.3265) .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.046875, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The design involves creating a cube with rounded edges and corners. The process starts by drawing a two-dimensional sketch of the base shape, which consists of a series of arcs and lines forming a rounded rectangle. This sketch is then scaled down to 75% of its original size and transformed into a three-dimensional obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0206) .threePointArc((0.0059, 0.0059), (0.0206, 0)) .lineTo(0.7294, 0) .threePointArc((0.7441, 0.0059), (0.75, 0.0206)) .lineTo(0.75, 0.5588) .threePointArc((0.7441, 0.5735), (0.7294, 0.5794)) .lineTo(0.0206,...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a circle on a face to form the base of the rounded cylinder. Scale the circle to adjust its size. Transform the scaled circle into three-dimensional space by applying the same Euler angles and translation vector us...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4453) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./stlcq/0089/00897087.stl")
The design consists of two main parts: a larger cylindrical base and a smaller cylindrical top. The cylindrical base has a height of 0.2083 units and a diameter of 0.75 units. The smaller cylindrical top sits on top of the base, positioned slightly offset from the center. It has a height of 0.2917 units and a diameter ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2109) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2568, 0.2568) .circle(0.2588) .extrude(0.2891) ) part_2 = part_2.translate((0.117188, 0.117188, 0.210938))...
The design involves creating a cylindrical object with smooth surfaces and rounded edges. Start by setting up a new coordinate system and drawing a circle on the first face. After scaling the circle to the appropriate size, transform it into three-dimensional space and extrude it to form the cylinder. The final part, n...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.302, 0.302) .circle(0.2996) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0033/00334219.stl")
Start by creating a new coordinate system with default settings. Draw the first face of a square plate by connecting four lines to form a square. Add four small circles within the square, evenly spaced, to serve as holes. Scale the entire sketch to fit the desired size. Transform the 2D sketch into a 3D model by extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.6882, 0.5324) .circle(0.0235) .moveTo(0.0618, 0.5324) .circle(0.0235) .moveTo(0.6882, 0.2176) .circle(0.0235) .mov...
The design consists of two main parts. The first part is a rectangular box with a length of approximately 0.705 units, a width of approximately 0.75 units, and a height of approximately 0.25 units. This part is created by drawing a 2D rectangle, scaling it, transforming it into 3D, and then extruding it. The second par...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7059, 0) .lineTo(0.7059, 0.75) .lineTo(0, 0.75) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ....
The design involves creating a circular flange with symmetrically placed holes. Start by setting up a new coordinate system with zero rotation and no translation. On the first face, draw a complex shape consisting of lines and arcs to form the outer boundary. Inside this boundary, place three circles: two smaller ones ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0647, 0.1235) .lineTo(0.2794, 0.0206) .threePointArc((0.3765, 0), (0.4706, 0.0206)) .lineTo(0.6853, 0.1235) .threePointArc((0.75, 0.2235), (0.6853, 0.3265)) .lineTo(0.4706, 0.4294) .threePointArc((0.3765, 0.45),...
The design involves creating a cylindrical object with a specific orientation and size. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two concentric circles, then scale the sketch to reduce its size. Transform this scaled ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2941) .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The design consists of three parts that are assembled to form a complex structure. The first part is a cylindrical object with a rectangular cross-section and rounded edges. It has a length of 0.048918269230769224, a width of 0.03004807692307692, and a height of 0.6640625. The second part is a rectangular prism with sl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0469, 0) .lineTo(0.0469, 0.0289) .lineTo(0, 0.0289) .close() .extrude(0.6641) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.3125, -0.03125, 0.078125))...
The design consists of three main parts. The first part is a rectangular plate with a length of approximately 0.75 units, a width of 0.375 units, and a height of 0.0312 units. The second part is a rectangular bar with a length of approximately 0.75 units, a width of 0.0459 units, and a height of 0.0625 units. The third...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09375, 0.375)) # Part 2: join part_2 = ( cq.Workplane("...
The design consists of three main parts. The first part is a rectangular prism with a length of 0.75, a width of 0.3, and a height of 0.375. The second part features two cylindrical protrusions, each with a length of 0.675, a width of 0.225, and a height of 0.075. These protrusions are positioned on the top surface of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3) .lineTo(0, 0.3) .close() .extrude(0.375) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1133, 0.1107) .circle(0.1133) .extrude(0.0781) ) part_2 = pa...
Create a rectangular prism with rounded edges and a slightly curved top surface. Start by defining a new coordinate system at the origin with no rotation or translation. Draw the first face of the prism, which consists of a series of connected lines forming a shape that tapers slightly at the top. Scale this shape to r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3059) .lineTo(0.4206, 0.3971) .lineTo(0.3294, 0.3971) .lineTo(0, 0.3059) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0058/00586303....
Start by creating a new coordinate system aligned with the default axes. Draw a circular face with a concentric inner circle, forming an annular ring. Scale the entire sketch to reduce its size. Transform the sketch into a three-dimensional object by extruding it along the vertical axis to create a cylindrical shape. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0706, 0.0706) .circle(0.07) .moveTo(0.0706, 0.0706) .circle(0.0469) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00408380.stl")
Start by creating a new coordinate system with specific angles and translations. Draw the first two-dimensional sketch on the first face, including a larger circle and a smaller concentric circle. On the second face, draw another two-dimensional sketch with a medium-sized circle and a smaller concentric circle. Scale t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.15, 0.15) .circle(0.15) .moveTo(0.15, 0.15) .circle(0.0765) .extrude(0.125) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.6735, 0.6735) .circle(0.0765) .moveTo(0.6735, 0.6735) .circle(0.0471)...
The design consists of two main sections that are combined to form a straight, elongated, rectangular bar with rounded edges. The first section has a height of zero point zero-one-four-three units, a width of zero point zero-three-five-seven units, and a length of zero point seven-five units. This section is created by...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0353) .lineTo(0, 0.0353) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) # Part 2: join part_2 = ( cq.Workplane...
Start by creating a new coordinate system with specific rotations and translations. Draw a square in a two-dimensional sketch, ensuring it forms a closed loop. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the necessary rotations and translations. Extrude ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/004...
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on the first face, forming a closed loop with four lines. Scale the sketch to the desired size. Transform the sketch into a three-dimensional object by applying default rotation and translation. Extrude the sketch 0.75 units to c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3453, 0) .lineTo(0.3453, 0.4609) .lineTo(0, 0.4609) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0026/00267841.stl")
The first part involves creating a cube with rounded edges and corners. The cube has a length of approximately 0.75, a width of about 0.55, and a height of around 0.42. The second part involves constructing a cylinder that will create a hole through the cube. The cylinder has a diameter of about 0.21 and a height of ro...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5529) .lineTo(0, 0.5529) .close() .extrude(0.4219) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.102, 0.102) .circle(0.1012) .extrude(0.2109) ) part_2 ...
The rectangular prism is a solid object with a flat top and bottom and four rectangular faces. The top and bottom faces are parallel and congruent, and the sides are perpendicular to these faces. The length of the prism is slightly more than twice its width, and the height is significantly smaller compared to both the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0.3765, 0.3765) .lineTo(0.2441, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0061/00615098....
Create a rectangular plate with rounded corners by starting with a new coordinate system that has specific Euler angles and a translation vector. Draw a two-dimensional sketch of a rectangle on the first face, then scale this sketch down. Transform the scaled sketch into a three-dimensional object by applying the rotat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2969, 0) .lineTo(0.2969, 0.0035) .lineTo(0, 0.0035) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./s...
The cylindrical object starts with a circular base that is then extruded to form a solid body. The base has a diameter of approximately 0.16 units, and the cylinder extends to a height of about 0.75 units. The final shape is a smooth, cylindrical object with rounded edges, designed to fit seamlessly into various engine...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0824, 0.0824) .circle(0.0817) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0086/00862515.stl")
The first part consists of a circular plate with a flat surface and a uniform thickness. This plate has five evenly spaced circular holes. The plate measures 0.6271 units in both length and width, and 0.1437 units in height. The second part is a cylindrical protrusion with a smooth surface, slightly elongated in one di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.313725, 0.313725) .circle(0.311275) .moveTo(0.166667, 0.110294) .circle(0.036765) .moveTo(0.458333, 0.110294) .circle(0.036765) .moveTo(0.07598, 0.389706) .circle(0.034314) .moveTo(0.313725, 0.561275) ...
Start by creating a new coordinate system with specific rotations and no translation. Draw the first face with a complex shape that includes a smaller inner rectangle and a larger outer rectangle. Then, draw a second face that forms a small protrusion on the side of the first face. Scale the entire sketch to reduce its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4, 0) .lineTo(0.4, 0.6176) .lineTo(0.3324, 0.6176) .lineTo(0, 0.6176) .close() .extrude(0.3984) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3324, 0.6176) .lineTo(0.4, 0.6176) ...
The part consists of a rectangular prism with a curved top and a cutout on one side. The base of the part is a scaled-down version of a complex two-dimensional sketch, which forms the outline of the curved top and the cutout. This sketch is then transformed into a three-dimensional shape by extruding it along the norma...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0676, 0) .lineTo(0.1324, 0.1441) .lineTo(0.2441, 0.2265) .lineTo(0.5059, 0.2265) .lineTo(0.6176, 0.1441) .lineTo(0.6824, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2765) .lineTo(0, 0.2765) ...
Start by creating a new coordinate system aligned with the default axes. Draw the first face of the two-dimensional sketch, forming a pentagon with five straight lines. Scale the sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by aligning it with the coordinate system. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.25) .lineTo(0.2529, 0.0029) .lineTo(0.5, 0) .lineTo(0.5, 0.75) .lineTo(0, 0.75) .close() .extrude(0.25) ) result = part_1 cq.exporters.export(result, "./stlcq/0080/00800465.stl")