input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design involves creating a rectangular bar with rounded edges and a slight curve along its length. The process starts by defining a new coordinate system and drawing a two-dimensional rectangular sketch. This sketch is then scaled, rotated, and translated to the desired position. The sketch is extruded to create a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0353, 0) .lineTo(0.0353, 0.0703) .lineTo(0, 0.0703) .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 design consists of three main parts. The first part is a U-shaped object with a length of approximately 0.193, a width of 0.694, and a height of 0.156. This part is created by extruding a 2D sketch that includes arcs and lines to form the U-shape. The second part is a cylindrical object with a length of about 0.062...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.070895) .threePointArc((0.095435, 0), (0.193597, 0.070895)) .lineTo(0.193597, 0.695312) .lineTo(0.147243, 0.695312) .lineTo(0.147243, 0.095435) .threePointArc((0.095435, 0.046354), (0.046354, 0.095435)) .line...
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangular sketch on the first face, forming a closed loop with four straight lines. Scale the sketch to reduce its size, then transform it into a three-dimensional object by extruding it along the normal direction. 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.1559) .lineTo(0, 0.1559) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0014/00146986.stl")
The design consists of three parts that are assembled to form a complex 3D structure. The first part is a cylindrical cup with a height of 0.28125 units, a width and length of 0.29625 units. This part is created by extruding a circular sketch. The second part is a smaller cylindrical section with a height of 0.15 units...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .moveTo(0.149, 0.149) .circle(0.1164) .extrude(0.2812) ) part_1 = part_1.translate((0.226562, 0.226562, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) ....
Start by creating a new coordinate system with specific Euler angles and a translation vector. Sketch a circle and a series of lines and arcs to form a complex shape on the first face. This shape includes a circular section and a rectangular section with rounded corners. Scale the sketch to fit the desired size and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0712, 0) .lineTo(0.6484, 0) .lineTo(0.6484, 0.1755) .threePointArc((0.5238, 0.2263), (0.473, 0.3509)) .lineTo(0.0712, 0.3509) .threePointArc((0.2441, 0.1755), (0.0712, 0)) .close() .moveTo(0.0712, 0.1755) ...
The design involves creating a rectangular block with rounded edges and a circular hole in the middle. The first step is to establish a new coordinate system aligned with the global axes. The block's outer boundary is defined by a series of lines and arcs that form a rounded rectangle. Inside this boundary, a smaller c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.1235) .threePointArc((0.15, 0.3735), (0, 0.6265)) .lineTo(0, 0.75) .lineTo(0.6676, 0.75) .threePointArc((0.75, 0.3735), (0.6676, 0)) .close() .moveTo(0.3941, 0.3471) .threePointArc((0.51...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a larger circle and a smaller circle inside it to form the first face. Scale the entire sketch to reduce its size. Rotate and translate the scaled sketch according to the defined coordinate system. Extrude the sketch to ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2902, 0.2902) .circle(0.2879) .moveTo(0.2902, 0.2902) .circle(0.0748) .extrude(0.3203) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.085938, 0.320312, 0.085938)) result = part_1 cq.exporters.export(r...
The base of the L-shaped CAD model starts with a two-dimensional sketch that forms a complex outline. This outline includes straight lines and arcs, creating a unique shape. After the initial sketch, the design is scaled down and transformed into a three-dimensional object. The part is then extruded in both directions ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6706) .lineTo(0.6206, 0.6706) .lineTo(0.6206, 0.5412) .lineTo(0.6206, 0.2088) .threePointArc((0.5971, 0.1529), (0.5412, 0.1294)) .lineTo(0.2088, 0.1294) .threePointAr...
The design consists of four parts. The first part is a cylindrical base with a height of 0.7317 units, a length of 0.1829 units, and a width of 0.1829 units. This part is positioned at a specific location and orientation. The second part is a rectangular top with a height of 0.0915 units, a length of 0.4573 units, and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0902, 0.0902) .circle(0.0895) .extrude(0.7344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.164062, 0.75, 0.265625)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4609, 0) ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a single face and within this face, create a single loop containing a circle. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it accordi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .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/0098/00987640.stl")
The design involves creating a cylindrical object with a height of zero point seven five units and a square cross-section measuring zero point one three two four units on each side. Start by setting up a new coordinate system and drawing a circular sketch on one face. This circle is then scaled, rotated, and translated...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0667, 0.0667) .circle(0.0661) .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, "./stlcq/0086/00862304.stl")
Start by creating a new coordinate system with specific angles and translations. Draw a rectangular shape in a two-dimensional sketch, then scale this sketch down. Transform the scaled sketch into three dimensions by rotating and translating it according to the initial coordinate system settings. Extrude the transforme...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3941, 0) .lineTo(0.3941, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1406) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.210938, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two concentric circles. Apply a scaling factor to adjust the size of the sketch. Transform this scaled sketch into a three-dimensional object by rotating and translating it accordin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1373, 0.1373) .circle(0.1362) .moveTo(0.1373, 0.1373) .circle(0.1147) .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/0089...
Start by creating a new coordinate system with default settings. Draw two circular faces, each with a small radius, positioned vertically apart from each other. The first face is centered slightly above the origin, and the second face is positioned higher, maintaining a consistent gap between them. Scale the entire 2D ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0081, 0.0081) .circle(0.0081) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0081, 0.1012) .circle(0.0081) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0073/00733...
The design consists of three main parts. The first part is a rectangular base with a height of 0.5962, a width of 0.1154, and a length of 0.5962. This base forms the foundation of the structure. The second part is a rectangular protrusion that extends from the base, with a height of 0.2577, a width of 0.3077, and a len...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5938, 0) .lineTo(0.5938, 0.1141) .lineTo(0, 0.1141) .close() .extrude(0.5938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.59375, 0.054688)) # Part 2: join part_2 = ( cq.Work...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a circle within a new face, then scale the circle to the desired size. Transform this scaled circle into a three-dimensional shape by applying a rotation and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.098, 0.098) .circle(0.0973) .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/0099/00990280.stl")
The design involves creating a base cube with a smaller cube extending from its top surface. The base cube has a height of 10 units and a width of 10 units. A smaller cube, with a height of 5 units and a width of 5 units, is centered on the top of the base cube. The smaller cube is integrated with the base cube to form...
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.5, 0.75) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1,...
The design consists of three main parts. The first part is a cylindrical base with a flat top and bottom, rounded edges, and a smooth surface. It has a length of 0.75, a width of 0.3, and a height of 0.075. The second part is a cylindrical protrusion with a smooth surface and rounded edges. It has a length, width, and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.15, 0) .lineTo(0.6, 0) .threePointArc((0.75, 0.15), (0.6, 0.3)) .lineTo(0.15, 0.3) .threePointArc((0, 0.15), (0.15, 0)) .close() .extrude(0.0781) ) part_1 = part_1.translate((0, 0, 0.148438)) # Part 2: join par...
Create a rectangular plate with rounded edges and a flat surface. Begin by setting up a new coordinate system with no rotation or translation. Draw a rectangular sketch on the first face, ensuring the proportions are maintained. Scale the sketch to fit the desired size. Transform the sketch into a three-dimensional obj...
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.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0010/00104029.stl")
The design involves creating a rounded cylindrical object with a uniform height, width, and depth of 0.75 units. The process starts by defining a new coordinate system and drawing a circular sketch. This sketch is then scaled down, rotated, and translated to its final position. Finally, the sketch is extruded to form a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0059/00598962.stl")
The design involves creating a rectangular block with a specific orientation and position. Start by defining a new coordinate system with a rotation of negative ninety degrees around the z-axis and a translation of zero point seven five units along the y-axis. The block is created by extruding a rectangular sketch, whi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1094, 0) .lineTo(0.1094, 0.0232) .lineTo(0, 0.0232) .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...
Start by creating a new coordinate system with default settings. Draw a rectangular face on the X-Y plane. This rectangle will serve as the base of the vertical cylindrical rod. Once the rectangle is drawn, scale it down to fit the desired dimensions. Transform the scaled rectangle into a three-dimensional shape by ext...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0234, 0) .lineTo(0.0234, 0.0234) .lineTo(0, 0.0234) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0095/00953412.stl")
The design consists of two main parts. The first part is a square ring with rounded edges and a rectangular hole in the center. The outer square has a side length of 0.75 units, while the inner square has a side length of approximately 0.375 units. The height of this part is 0.00065625 units. The second part is a cross...
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.1882, 0.1882) .lineTo(0.5618, 0.1882) .lineTo(0.5618, 0.5618) .lineTo(0.1882, 0.5618) .close() .extrude(0.0078) ) # P...
The design consists of two parts. The first part is an L-shaped structure with a length of approximately 0.75 units, a width of about 0.43 units, and a height of 0.19 units. This part is created by drawing a two-dimensional sketch and then extruding it to form a solid body. The second part is a cube with a length of ab...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4647, 0) .lineTo(0.4647, 0.1382) .lineTo(0.75, 0.1382) .lineTo(0.75, 0.4324) .lineTo(0, 0.4324) .close() .extrude(0.1875) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
The first part of the CAD model is a three-dimensional object with a rectangular base and a smaller rectangular protrusion on top. The base features a slight indentation on one side. The overall dimensions of the part are approximately 0.159 units in length, 0.75 units in width, and 0.296 units in height. The base and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1559, 0) .lineTo(0.1559, 0.35) .lineTo(0.1559, 0.4324) .lineTo(0.0735, 0.4324) .lineTo(0.0735, 0.5706) .lineTo(0.1588, 0.5706) .lineTo(0.1588, 0.75) .lineTo(0, 0.75) .close() .extru...
Construct a hollow cylindrical object with a smooth surface and uniform diameter. Start by creating a new coordinate system and drawing a two-dimensional sketch consisting of two concentric circles. After scaling the sketch, transform it into a three-dimensional shape by rotating and translating it. Finally, extrude th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2431, 0.2431) .circle(0.2412) .moveTo(0.2431, 0.2431) .circle(0.1197) .extrude(0.7266) ) 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, "....
The design consists of two cylindrical parts. The first part has a base that is 0.219 units in both length and width, and it stands 0.292 units tall. This part forms the foundation of the structure. The second part is a smaller cylinder placed on top of the first part. It measures 0.305 units in both length and width a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1098, 0.1098) .circle(0.1089) .moveTo(0.1098, 0.1098) .circle(0.1021) .extrude(0.2891) ) part_1 = part_1.translate((0.046875, 0.046875, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0.1529, 0.1529) ...
The first part involves creating a cube with rounded corners. A two-dimensional sketch is drawn and scaled down, then extruded to form a solid body. The final dimensions of this part are approximately 0.75 units in length, 0.363 units in width, and 0.7297 units in height. For the second part, a rectangular prism is con...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1618) .lineTo(0.4941, 0) .lineTo(0.75, 0.1618) .lineTo(0.6088, 0.3618) .lineTo(0, 0.3618) .close() .extrude(0.7266) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0.2271) .lineTo(0.8516...
The rectangular wall socket features rounded edges and two vertical slots. The first face is defined by two loops, creating a rounded rectangular shape with a smaller inner loop that follows a similar contour. The second face also has two primary loops, replicating the inner loop of the first face, along with two addit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0706) .threePointArc((0.0206, 0.0206), (0.0706, 0)) .lineTo(0.6794, 0) .threePointArc((0.7294, 0.0206), (0.75, 0.0706)) .lineTo(0.75, 0.6794) .threePointArc((0.7294, 0.7294), (0.6794, 0.75)) .lineTo(0.0706, 0...
Start by creating a new coordinate system with the Euler angles set to zero degrees and the translation vector set to negative 0.1029, negative 0.0164, and negative 0.0697 units. Draw a two-dimensional rectangle on the XY plane of this coordinate system. The rectangle has a length and width that define its base. Scale ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3682, 0) .lineTo(0.3682, 0.7891) .lineTo(0, 0.7891) .close() .extrude(0.1641) ) part_1 = part_1.translate((-0.101562, -0.015625, -0.070312)) result = part_1 cq.exporters.export(result, "./stlcq/0031/...
The design consists of two cylindrical parts that are joined together to form a single structure. The first part is a short cylinder with a flat circular top and bottom, measuring 0.6 units in both length and width, and 0.1 units in height. The top surface is slightly recessed compared to the bottom. The second part is...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.302, 0.302) .circle(0.2996) .extrude(0.1016) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2392, 0.2392) .circle(0.2373) .extrude(0.6484) ) part_2 = part_2.translate((0.0625, 0.0625, 0.101562)) resu...
The design involves creating a rounded cylindrical 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 consists of two concentric circles. Scale this sketch to achieve the desired size. Transform the scaled sketch ...
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.0176) .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/0...
The design involves creating a cylindrical base with a rounded bottom. The base is formed by extruding a circular profile to create a solid body. The height of the cylinder is 0.75 units, while the width and depth are both 0.63 units. The circular profile is transformed and scaled to achieve the desired dimensions befo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3152, 0.3152) .circle(0.3176) .moveTo(0.3152, 0.3152) .circle(0.3077) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0091/00913091.stl")
Start by creating a new coordinate system with specific angles and translations. Then, draw a rectangular shape on the first face. This rectangle will be scaled down and rotated to align with the desired orientation. After transforming the shape, extrude it to form a solid rectangular block. The final dimensions of thi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4531, 0) .lineTo(0.4531, 0.3021) .lineTo(0, 0.3021) .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 design consists of two main parts. The first part is a cylindrical object with a flat circular top and bottom. It has a length and width of 0.4636 and a height of 0.0818. The second part is a solid cylindrical object with rounded edges, measuring 0.3573 in length and width, and 0.3409 in height. Both parts are alig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2314, 0.2314) .circle(0.2296) .moveTo(0.2314, 0.2314) .circle(0.2025) .extrude(0.0781) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2314, 0.2314) .circle(0.2025) .moveTo(0.2314, 0.2314) .cir...
Start by creating a new coordinate system aligned with the default axes. Draw a complex two-dimensional shape on the first face, consisting of several connected lines that form a unique outline. After completing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3199, 0) .lineTo(0.536, 0.139) .lineTo(0.3199, 0.2294) .lineTo(0.5625, 0.3353) .lineTo(0.3199, 0.4875) .lineTo(0, 0.4875) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(res...
Start by creating a new coordinate system and then draw a two-dimensional sketch on the first face. This sketch includes two concentric circles, one larger and one smaller. On the second face, draw only the smaller circle. Scale the entire sketch to reduce its size, then transform it into three dimensions by rotating a...
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.2) .extrude(0.5547) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.2) .extrude(0.5547) ) part_1 = part_1.rot...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two concentric circles to define the outer and inner boundaries of the cylindrical object. Scale the entire sketch to reduce its size. Transform the scaled sketch into a 3D object by rotating and trans...
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.3029) .extrude(0.5469) ) 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, "....
The rectangular box base is created by drawing a two-dimensional sketch of a rectangle and then transforming it into a three-dimensional object. The sketch is scaled down to fit the desired dimensions. After scaling, the sketch is rotated and translated to align with the coordinate system. The sketch is then extruded t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6029, 0) .lineTo(0.6029, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2578) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00237446.stl")
To construct the model, start by setting up a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch that forms a rectangle with a smaller rectangle cut out from one corner. Transform this sketch into three dimensions by applying the same rotations and translations used in the coo...
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.3765, 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)) r...
Construct a U-shaped base with a rectangular cross-section. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on a new face, forming a U-shape with several straight lines. After completing the sketch, apply a scale factor to adjust its size. T...
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.5, 0.5) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.5) .lineTo(0, 0.5) .close() .extrude(0.625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0,...
The design involves creating a cylindrical object. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a circle on the plane defined by this coordinate system and scale it down. Transform this scaled circle into 3D space using the coordinate system's orientation. Extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1412, 0.1412) .circle(0.1401) .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/0095/00950457.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw two concentric circles to define the outer and inner boundaries of the washer. The larger circle represents the outer edge, while the smaller circle defines the central hole. Scale down the entire sketch to fit the desired ...
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.1441) .extrude(0.0859) ) result = part_1 cq.exporters.export(result, "./stlcq/0061/00614935.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular 2D sketch and apply a scale factor to adjust its size. Transform this scaled 2D sketch into 3D by rotating and translating it. Extrude the 2D sketch along the normal direction to create a solid body. The fi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0377, 0) .lineTo(0.0377, 0.6406) .lineTo(0, 0.6406) .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...
Begin by setting up a new coordinate system with default angles and positions. Draw a two-dimensional sketch on the first face, consisting of a larger circle and a smaller concentric circle, forming a ring. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object without changing...
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.1353) .extrude(0.2344) ) result = part_1 cq.exporters.export(result, "./stlcq/0055/00557523.stl")
The design involves creating a rectangular hollow section. Start by setting up a new coordinate system with specific rotations and translations. Draw a larger square and a smaller square inside it on a flat surface. Scale the entire drawing to reduce its size. Transform the scaled drawing into a three-dimensional shape...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.125, 0) .lineTo(0.125, 0.125) .lineTo(0, 0.125) .close() .moveTo(0.0157, 0.0157) .lineTo(0.1093, 0.0157) .lineTo(0.1093, 0.1093) .lineTo(0.0157, 0.1093) .close() .extrude(0.75) ) pa...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on the first face, ensuring the lines form a closed loop. Scale the sketch to fit the desired size, then rotate and translate it according to the specified angles and vector. Extrude the sketch to cr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4176) .lineTo(0, 0.4176) .close() .extrude(0.3359) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.335938, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a ring-shaped object with a flat, circular base. The object has a central hole and is designed to have a consistent thickness throughout. The outer diameter of the ring is slightly larger than the inner diameter, forming a circular band. The height of the object is 0.075 units, while the length and wi...
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.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0045/00454205.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circular sketch on a new face and scale it down. Transform this scaled sketch into 3D space using the coordinate system settings. Extrude the sketch to create a solid body. The final cylindrical object will have a heig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1137, 0.1137) .circle(0.1128) .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, "./stlcq/0030/00306916.stl")
The design involves creating a cylinder with a central hole. The process starts by defining a new coordinate system aligned with the default axes. A circular shape is drawn, followed by a smaller concentric circle to define the hole. These shapes are then scaled down to fit the desired proportions. The scaled shapes ar...
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.0824) .extrude(0.2422) ) result = part_1 cq.exporters.export(result, "./stlcq/0032/00322715.stl")
To construct the cylindrical base, start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circle on a new face, then scale the circle to reduce its size. Transform the scaled circle into a 3D object by applying the specified rotation and translation. Extrude the 3D object ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.5469) ) 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/0081/00810864.stl")
Start by creating a rectangular base. Define a new coordinate system and draw a two-dimensional sketch on the specified plane. The sketch forms a rectangle with a length of approximately 0.75 units and a width of approximately 0.425 units. Scale the sketch to adjust its size, then rotate and translate it to position it...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4235) .lineTo(0, 0.4235) .close() .extrude(0.2109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.210938, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of two main parts. The first part is a rectangular prism with slightly rounded edges. It has a length of 0.2037, a width of 0.2407, and a height of 0.0014. The second part is a rectangular plate with a small notch. This plate has a length of 0.1232, a width of 0.2407, and a height of 0.0014. Both pa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0095) .lineTo(0.0142, 0.0095) .lineTo(0.0142, 0) .lineTo(0.2051, 0) .lineTo(0.2051, 0.1244) .lineTo(0.2051, 0.1805) .lineTo(0.2051, 0.2422) .lineTo(0.0123, 0.2422) .lineTo(0.0123, 0.2308) .lineTo(...
The cylindrical wristband base starts with a circular shape on a flat surface. Two concentric circles are drawn, one slightly larger than the other, to define the inner and outer edges of the band. The entire shape is then scaled down to fit the desired size. The scaled shape is transformed into a three-dimensional obj...
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.3559) .extrude(0.1328) ) result = part_1 cq.exporters.export(result, "./stlcq/0026/00268239.stl")
The design involves creating a cylindrical object with a specific height, width, and depth. Start by defining a coordinate system with no rotation or translation. Then, draw a circle on the first face of the object. This circle serves as the base of the cylinder. After drawing the circle, scale it down to fit the desir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.3359) ) result = part_1 cq.exporters.export(result, "./stlcq/0089/00891005.stl")
Create a rectangular block by starting with a 2D sketch on a face. The sketch forms a rectangle, which is then scaled down and transformed into a 3D object. The final dimensions of the block are a length of 0.75 units, a width of 0.178125 units, and a height of 0.178125 units. The block is created by extruding the 2D s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1794) .lineTo(0, 0.1794) .close() .extrude(0.1797) ) result = part_1 cq.exporters.export(result, "./stlcq/0031/00312801.stl")
Start by creating a new coordinate system aligned with the global axes. Draw the first face of the rectangular prism using four lines to form a rectangle. After completing the sketch, scale it down to create a slightly smaller version. Transform the scaled sketch to its final position without altering its orientation. ...
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.6016) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00925210.stl")
Start by creating a new coordinate system with specific rotations and translations. Next, draw a rectangular sketch on the first face. The rectangle has a longer side and a shorter side, forming a typical rectangular shape. After drawing the sketch, scale it down to seventy-five percent of its original size. Transform ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3206, 0) .lineTo(0.3206, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.0625, 0)) result = part_1 cq.exporters.export(result, "./s...
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 lines. Scale the sketch to fit the desired dimensions. Transform the sketch into a three-dimensional object by applying the same rotations and translations. Ex...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3906, 0) .lineTo(0.3906, 0.0551) .lineTo(0, 0.0551) .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 design consists of two cylindrical parts. The first part has a cylindrical shape with a flat circular base and top, smooth curved surfaces, and a uniform diameter throughout. Its dimensions are approximately 0.484 units in length and width, and 0.390 units in height. The second part is also cylindrical, with a smoo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2431, 0.2431) .circle(0.2412) .extrude(0.3906) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2392, 0.2392) .circle(0.2373) .ex...
To create the rectangular plate with rounded corners and edges, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, which consists of a series of arcs and lines forming a loop. This loop defines the outline of the plate. After completing t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0618) .threePointArc((0.0176, 0.0176), (0.0618, 0)) .lineTo(0.6882, 0) .threePointArc((0.7324, 0.0176), (0.75, 0.0618)) .lineTo(0.7176, 0.0618) .threePointArc((0.7088, 0.0412), (0.6882, 0.0324)) .lineTo(0.376...
The design consists of two cylindrical parts that are joined together to form a larger structure. The first part is a cylinder with a slightly rounded top and bottom. It has a length and width of 0.4431 and a height of 0.375. The second part is a larger cylinder with similar dimensions but slightly bigger, measuring 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2235, 0.2235) .circle(0.2218) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.015625, 0.375, 0.015625)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0...
The design involves creating a rectangular block with rounded edges and a flat top. Initially, a coordinate system is established with specific Euler angles and a translation vector. A two-dimensional sketch of a rectangle is drawn, and then scaled down. This sketch is transformed into a three-dimensional object by app...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2265) .lineTo(0, 0.2265) .close() .extrude(0.0312) ) 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(resul...
The design consists of three parts that form a composite structure. The first part is a rectangular plate with a length of approximately 0.504 units, a width of about 0.195 units, and a height of roughly 0.0055 units. This plate is positioned at coordinates (0.1476, 0.1952, 0.249). The second part is a smaller rectangu...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.1941) .lineTo(0, 0.1941) .close() .extrude(0.0078) ) part_1 = part_1.translate((0.148438, 0.195312, 0.242188)) # Part 2: new part_2 = ( cq.Workplane("XY") ...
The design consists of three cylindrical sections, each with distinct dimensions and positioned relative to each other. The first cylindrical section has a height of 0.0666 units, a width and length of approximately 0.2653 units. This section forms the base of the structure. The second cylindrical section is smaller, w...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1333, 0.1323) .circle(0.1333) .extrude(0.0703) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0.0667, 0.0667) .circle(0.0661) .extrude(0.0391) ) part_2 = part_2.translate((0.40625, 0.0625, 0)) # Part 3:...
The first part involves creating a cube with a circular hole. This cube has a flat top and bottom, with the circular hole centered on the top face. The cube measures 0.6 units in length, 0.75 units in width, and 0.3 units in height. The second part is a rectangular block with rounded edges and a flat surface. This bloc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6, 0) .lineTo(0.6, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.3, 0.2912) .circle(0.2529) .extrude(0.2969) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc(...
The design involves creating a triangular prism with a flat base and a smaller triangular top. The structure consists of three faces that form the sides of the prism. The first face is a quadrilateral, the second face is a triangle, and the third face is another quadrilateral. These faces are combined to form a three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.1147, 0.6412) .lineTo(0, 0.75) .close() .extrude(0.0938) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.1147, 0.6412) .lineTo(0.2235, 0.75) ...
The hexagonal plate is a flat, six-sided shape with rounded edges. The plate is created by first drawing a two-dimensional hexagonal sketch, which is then scaled down and transformed into a three-dimensional model. The final hexagonal plate has a length of approximately 0.662 units, a width of about 0.750 units, and a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1971) .lineTo(0.3176, 0) .lineTo(0.65, 0.1765) .lineTo(0.6618, 0.5529) .lineTo(0.3441, 0.75) .lineTo(0.0118, 0.5735) .close() .extrude(0.1172) ) result = part_1 cq.exporters.export(result, "./stlcq/0042...
The design consists of a cylinder with a rectangular top. Start by creating a rectangular base and a circular feature on a flat surface. These shapes are then scaled down and transformed into a three-dimensional form. The rectangular base forms the top of the cylinder, while the circular feature defines the bottom. The...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1618, 0) .lineTo(0.1618, 0.1235) .lineTo(0, 0.1235) .close() .extrude(0.1016) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.6206, 0.1618) .circle(0.1324) .extrude(0.1016) ) # P...
The object is a rectangular prism with a hollow center. It features a flat base and top, with straight sides that have slight inward curves at the corners. The hollow center is composed of three parallel rectangular cavities. The overall dimensions of the prism are 0.75 units in length, 0.42 units in width, and 0.3 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0412) .lineTo(0.6971, 0.0412) .lineTo(0.6971, 0.3618) .lineTo(0.75, 0.3618) .lineTo(0.75, 0.4206) .lineTo(0.3765, 0.4206) .lineTo(0, 0.4206) .lineTo(0, 0.3618) ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the plane defined by this coordinate system, draw a two-dimensional sketch consisting of a single face and one loop. Inside the loop, draw a circle. Scale the sketch to the desired size and transform it using the coordinat...
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/0076/00768552.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a rectangle. Transform this sketch into a three-dimensional shape by applying a rotation and translation. Extrude the sketch to create a solid body. The final dimension...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5625, 0) .lineTo(0.5625, 0.0949) .lineTo(0, 0.0949) .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 first part consists of a rectangular prism with rounded edges and a cylindrical hole. The dimensions are approximately 0.695 units in length, 0.297 units in width, and 0.380 units in height. The second part is a triangle-shaped object with rounded edges and a flat base. It measures about 0.317 units in length, 0.36...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1145, 0.2972) .threePointArc((0, 0), (0.2863, 0.1391)) .threePointArc((0.2999, 0.1827), (0.3436, 0.2018)) .lineTo(0.6953, 0.2018) .lineTo(0.6953, 0.2972) .close() .moveTo(0.1145, 0.1254) .circle(0.1145) ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two concentric circles to define the boundaries of the sketch. Apply a scale factor to resize the sketch appropriately. Transform the sketch using the defined coordinate system parameters. Extrude the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .moveTo(0.3735, 0.3735) .circle(0.3147) .extrude(0.3438) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.34375, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
The design involves creating a cylindrical object. Start by setting up a new coordinate system with default angles and positions. Draw a circle on the first face, then scale it down to achieve the desired size. This scaled circle is then extruded to create a three-dimensional cylinder. The final dimensions of the cylin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0001/00017740.stl")
Start by creating a rectangular plate. The plate has a length slightly less than 0.75 units, a width just under 0.19 units, and a height of approximately 0.01 units. The plate is formed by extruding a two-dimensional rectangle along the normal direction to create a solid body. The overall shape is a thin rectangular pr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1853) .lineTo(0, 0.1853) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0048/00485453.stl")
The design consists of two main parts. The first part is a rectangular plate with a protruding arm. It has a length of approximately 0.715 units, a width of about 0.430 units, and a height of 0.011 units. The second part is a vertical rectangular section that attaches to the first part. It has a length of about 0.011 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0) .lineTo(0.7109, 0.4266) .lineTo(0.2732, 0.4266) .lineTo(0.2732, 0.0112) .lineTo(0.0558, 0.0112) .lineTo(0.0139, 0.0585) .lineTo(0.0112, 0.4266) .lineTo(0, 0.4266) .close() ...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system aligned with the default axes. On the first face, draw two concentric circles; the outer circle serves as the boundary, and the inner circle defines the hollow area. Scale the entire sketch to reduce its size proporti...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2588, 0.2588) .circle(0.2568) .moveTo(0.2588, 0.2588) .circle(0.2507) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0047/00472699.stl")
The first part involves creating a rectangular block with a length of approximately 0.75 units, a width of 0.5625 units, and a height of 0.0625 units. This block is positioned at the origin and forms the base of the assembly. The second part is a cube with rounded edges, positioned slightly to the right and above the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.0625) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.5625) .lin...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular shape with rounded corners and two smaller circular cutouts. On the second and third faces, draw smaller circular shapes. After completing the sketch, scale it down and rotate it to align...
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...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a 2D sketch that forms a loop consisting of an arc and several lines. The arc connects the top and bottom edges of the loop, while the lines form a rectangular shape. Scale the 2D sketch to fit the des...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1861, 0) .threePointArc((0, 0.048), (0.1861, 0.096)) .lineTo(0.1861, 0.0869) .lineTo(0.2109, 0.0869) .lineTo(0.2109, 0.0091) .lineTo(0.1861, 0.0091) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0...
Start by creating a new coordinate system with the origin positioned at (0.0, 0.0, 0.2727). Draw a two-dimensional rectangular sketch on the first face, forming a closed loop with four straight lines. After completing the sketch, scale it down by a factor of 0.75. Transform this scaled sketch into a three-dimensional o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4912, 0) .lineTo(0.4912, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2734) ) result = part_1 cq.exporters.export(result, "./stlcq/0064/00641956.stl")
The design involves creating a rectangular base with a narrow vertical section. Start by setting up a new coordinate system with specific angles and translations. Draw a two-dimensional sketch that forms a complex shape with multiple lines and loops. This sketch is then scaled down and transformed into a three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0147) .lineTo(0, 0.2853) .lineTo(0.3735, 0.0147) .lineTo(0.75, 0.2853) .lineTo(0.75, 0.0147) .lineTo(0.4088, 0.0147) .lineTo(0.4088, 0) .lineTo(0.3412, 0) .lineTo(0.3412, 0.0147) .close() .ext...
The design involves creating a stepped rectangular prism with three distinct sections. Each section is a smaller rectangular face aligned along the length of the prism. These sections are evenly spaced and have the same width and height. The overall structure is created by defining a coordinate system, drawing a two-di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1059, 0) .lineTo(0.1059, 0.1059) .lineTo(0, 0.1059) .close() .extrude(0.2656) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3206, 0) .lineTo(0.4294, 0) .lineTo(0.4294, 0.1059) ...
Start by creating a new coordinate system with the Euler angles set to zero and a translation vector of 0.0102, 0.0102, 0.0. Draw a two-dimensional sketch on the first face, consisting of two concentric circles. The outer circle has a larger radius, while the inner circle has a smaller radius. Scale the sketch to fit t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1529, 0.1529) .circle(0.1517) .moveTo(0.1529, 0.1529) .circle(0.1458) .extrude(0.2266) ) part_1 = part_1.translate((0.007812, 0.007812, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0017/00174379.stl")
The design consists of a rectangular base with a vertical extension and two cylindrical holes. The rectangular base has a length of approximately 0.75 units, a width of 0.75 units, and a height of 0.75 units. A vertical extension rises from one side of the base, adding to the overall height. Two cylindrical holes are c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.1882, 0.5618) .lineTo(0.1882, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1882, 0.5618) .lineTo(0.75, 0.5618)...
The cylindrical base is created by first drawing a circular sketch on the XY plane. This circle is centered at [0.375, 0.375] and has a radius of 0.375. The sketch is then scaled down by 75% before being transformed into a 3D model. The final step involves extruding the sketch along the normal direction by a depth of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0059/00595319.stl")
The cylindrical object is constructed by first defining a new coordinate system with specific angles and translations. A circular sketch is created and scaled down to fit the desired dimensions. This sketch is then transformed into three dimensions and extruded to create the final shape. The cylinder has a height of ze...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0471, 0.0471) .circle(0.0467) .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/0006/00062310.stl")
Start by creating a new coordinate system with default settings. On the first face, draw a rectangular loop using four lines. After completing the loop, apply a scaling factor to adjust the size of the rectangle. Transform the scaled two-dimensional sketch into a three-dimensional object by extruding it along the norma...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5118) .lineTo(0, 0.5118) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00629090.stl")
Start by creating a new coordinate system with specific angles and a translation vector to orient the model correctly. Next, draw a 2D sketch on the first face, forming a closed loop with four lines that define the base shape. This sketch is then scaled to fit the desired size. After scaling, the sketch is rotated and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0094, 0) .lineTo(0.2188, 0.121) .lineTo(0.2188, 0.1261) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.1875, 0, 0)) result = ...
The design consists of four main parts. The first part is a rectangular plate with a circular hole, measuring approximately 0.36 meters in length, 0.72 meters in width, and 0.0075 meters in height. This plate is positioned at a height of 0.1794 meters above the base plane. The second part is a pair of parallel, elongat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.360784, 0) .lineTo(0.360784, 0.71875) .lineTo(0, 0.71875) .close() .moveTo(0.180392, 0.583456) .circle(0.045098) .extrude(0.007812) ) part_1 = part_1.translate((0, 0, 0.179688)) # Part 2: new ...
The first intermediate part is a rectangular prism with a tapering effect. The part starts as a two-dimensional rectangle, which is then scaled down and transformed into a three-dimensional shape. The final dimensions of this part are 0.75 units in length, 0.15 units in width, and 0.12 units in height. This part forms ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.15) .lineTo(0, 0.15) .close() .extrude(0.1172) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00923907.stl")
Create a rectangular block with two circular holes. Start by defining a coordinate system with no rotation or translation. Draw a rectangular outline on one face, and within this rectangle, place two smaller circles. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4) .lineTo(0, 0.4) .close() .moveTo(0.2088, 0.2) .circle(0.0471) .moveTo(0.5412, 0.2) .circle(0.0471) .extrude(0.25) ) result = part_1 cq.exporters.export(resul...
The CAD model consists of three main parts. The first part is a rectangular prism with a small triangular protrusion on one of its sides, measuring approximately 0.6667 units in length, 0.3542 units in width, and 0.4125 units in height. The second part is a cylinder with a rectangular section at the top, measuring abou...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0208) .lineTo(0.0234, 0.0026) .lineTo(0.3307, 0.3125) .lineTo(0.6458, 0.0026) .lineTo(0.6641, 0.0208) .lineTo(0.3307, 0.3516) .close() .extrude(0.4141) ) part_1 = part_1.translate((0.085938, 0, 0)) # Par...
Construct a staircase with five steps. Start by creating a new coordinate system and drawing a series of two-dimensional sketches for each step. Each step consists of a trapezoidal shape with a slight offset. After completing the sketches, scale the entire design by a factor of 0.75. Transform the scaled sketches into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0265, 0) .lineTo(0.0824, 0.0765) .lineTo(0.0559, 0.0765) .close() .extrude(0.0391) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1618, 0) .lineTo(0.1882, 0) .lineTo(0.2618, 0.09...
Create a rectangular block with a flat top and bottom and straight edges. The block's dimensions are defined by its length, width, and height. The length measures 0.75 units, the width is 0.5357 units, and the height is 0.1339 units. The block is formed by extruding a two-dimensional rectangle along its normal directio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5353) .lineTo(0, 0.5353) .close() .extrude(0.1328) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00050288.stl")
Start by setting up a new coordinate system with specific Euler angles and a translation vector to orient the model correctly. Then, draw a two-dimensional sketch that forms the base of a triangular prism. This sketch consists of a series of connected lines that outline the shape. Once the sketch is complete, scale it ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0) .lineTo(0.75, 0) .lineTo(0.4206, 0.5618) .lineTo(0.3765, 0.5618) .lineTo(0.3294, 0.5618) .close() .extrude(0.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09...
This cylindrical part features a flat top and bottom with a central hole and three protruding tabs on one side. The main body is created by extruding a complex two-dimensional sketch that includes several loops of lines and arcs. The first loop forms the outer boundary, while the second and fifth loops create smaller r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.121) .threePointArc((0.1555, 0), (0.3283, 0.0922)) .lineTo(0.4118, 0.0893) .threePointArc((0.5933, 0.0115), (0.7344, 0.1526)) .threePointArc((0.7257, 0.2534), (0.6624, 0.3341)) .lineTo(0.5731, 0.4953) .threeP...
The design consists of a rectangular box with an internal partition, a rectangular plate, and two cylindrical holes. The rectangular box measures 0.75 units in length, 0.75 units in width, and 0.3 units in height. The internal partition divides the box into smaller compartments. The rectangular plate measures 0.375 uni...
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.0382, 0.0382) .lineTo(0.15, 0.0382) .lineTo(0.1882, 0.0382) .lineTo(0.5618, 0.0382) .lineTo(0.6, 0.0382) .lineTo(0.711...
Start by defining a new coordinate system with specific rotations and translations. Draw a 2D sketch on a face, which includes two concentric circles. Scale this sketch to fit the desired size. Transform the scaled sketch into 3D by rotating and translating it accordingly. Extrude the sketch to form a hollow cylindrica...
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.2266) .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/0061...