input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design involves creating a cylindrical base with a flat circular top and bottom. The top surface is slightly recessed compared to the bottom. The cylinder is generated by extruding a circular profile. The overall dimensions of the cylinder are approximately 0.75 units in both length and width, and 0.03 units in hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0093/00934964.stl")
The design consists of three rectangular blocks that are combined to form a complex shape. The first block has a height of 0.375 units, a width of 0.25 units, and a length of 0.75 units. The second block, which is cut out from the first block, has a height of 0.25 units, a width of 0.25 units, and a length of 0.625 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0, 0.25) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .mo...
The design consists of three main parts. The first part is a cylindrical base with a rectangular top, measuring approximately 0.053 units in both length and width, and 0.636 units in height. The second part is a rectangular section located at the middle, with dimensions of about 0.018 units in length, 0.292 units in wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0137) .threePointArc((0.0041, 0.0041), (0.0137, 0)) .lineTo(0.041, 0) .threePointArc((0.0506, 0.0041), (0.0547, 0.0137)) .lineTo(0.0547, 0.041) .threePointArc((0.0506, 0.0506), (0.041, 0.0547)) .lineTo(0.0137...
To construct the rounded cylindrical object, start by setting up a new coordinate system with default angles and translations. Draw a circle on the first face, then scale it down to fit the desired size. Transform the scaled sketch into a three-dimensional shape by extruding it along the normal direction. The final obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4062) ) result = part_1 cq.exporters.export(result, "./stlcq/0064/00641504.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first two-dimensional sketch on the first face, forming a closed loop with several lines. Then, draw the second two-dimensional sketch on the second face, also forming a closed loop. Scale the second sketch by a fact...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5941, 0) .lineTo(0.5941, 0.1824) .lineTo(0.4382, 0.3618) .lineTo(0, 0.3618) .close() .extrude(0.4609) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.5941, 0) .lineTo(0.75, 0) ...
The first part involves creating a rectangular block with a length of 0.5, a width of 0.75, and a height of 0.3. The second part forms a smaller rectangular prism with a length of 0.15, a width of 0.75, and a height of 0.15, which cuts into the first part. The third part creates a cylindrical hole with a diameter of 0....
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() .extrude(0.2969) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.75) .lineTo(0, 0.75...
The first part involves creating a cube with a triangular cutout on one face. The cube has a length of approximately 0.35 units, a width of about 0.75 units, and a height of around 0.66 units. The triangular cutout is positioned on one of the faces, giving the cube a distinctive shape. The second part is a cylinder wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3471, 0.3676) .lineTo(0, 0.75) .close() .extrude(0.6562) ) part_1 = part_1.translate((0.25, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .mov...
The design consists of four parts. The first part is an L-shaped block with a small circular cutout, measuring approximately 0.75 units in length, 0.30 units in width, and 0.16 units in height. This part is extruded in both directions to create a symmetrical shape. The second part is a rectangular block with a similar ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0824) .lineTo(0.4941, 0.0824) .lineTo(0.4941, 0.3) .lineTo(0.2294, 0.3) .lineTo(0.2294, 0.0824) .lineTo(0, 0.0824) .close() .moveTo(0.35, 0.2206) .circle(0.04...
Start by creating a new coordinate system with specific angles and translations. Then, draw a two-dimensional sketch on the defined plane, forming a rectangle. After scaling the sketch, transform it into three dimensions and extrude it to create a solid body. The resulting shape is a rectangular prism with a height of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2088) .lineTo(0, 0.2088) .close() .extrude(0.2578) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.257812, 0)) result = part_1 cq.exporters.export(result, "....
The first part involves creating a rectangular base with a protrusion. This part is constructed by defining a new coordinate system and drawing a complex two-dimensional sketch that outlines the base and the protrusion. After scaling the sketch and transforming it into three dimensions, the sketch is extruded to create...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.625, 0) .lineTo(0.625, 0.3162) .lineTo(0.5368, 0.3162) .lineTo(0.5368, 0.1005) .lineTo(0.0809, 0.1005) .lineTo(0.0809, 0.1912) .lineTo(0, 0.1936) .close() .extrude(0.375) ) part_1 = par...
To create the rounded circular base with a bite-like shape, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a loop with two arcs, creating a distinctive bite-like shape. After drawing the sketch, scale it down to fit the desired s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.4968, 0) .threePointArc((0.4434, 0.1334), (0.5234, 0.2525)) .threePointArc((0, 0.1786), (0.4968, 0)) .close() .extrude(0.1016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.257812, 0.125)) result =...
The cylindrical base is created by first establishing a new coordinate system with specific Euler angles and a translation vector. A two-dimensional circle is drawn and then scaled to the desired size. This scaled circle is rotated and translated to align correctly. The circle is then extruded along the normal directio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2706, 0.2706) .circle(0.2685) .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/0077/00772910.stl")
The design involves creating a cylindrical object. Begin by setting up a new coordinate system aligned with the default axes. Draw a circular sketch on the first face, then scale it down to fit the desired dimensions. Transform the sketch into a three-dimensional object and extrude it along the normal direction to crea...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0028/00285616.stl")
Create a rounded cylindrical object by starting with a new coordinate system aligned with the default axes. Draw a two-dimensional sketch consisting of two concentric circles, one larger and one smaller, centered at the same point. Scale the sketch to reduce its size, then extrude it to form a three-dimensional cylinde...
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.2794) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0011/00119066.stl")
A cylindrical object is created by first defining a new coordinate system with specific rotations and translations. A circular sketch is drawn and then scaled down. This scaled sketch is transformed into a three-dimensional shape by applying further rotations and translations. The sketch is then extruded to form a soli...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2078, 0.2078) .circle(0.2062) .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/0001/00017713.stl")
To create the rectangular block, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a square sketch on the first face, then scale it to the desired size. Transform the sketch into a three-dimensional object by applying the rotation and translation defined in the coordi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1562, 0) .lineTo(0.1562, 0.1562) .lineTo(0, 0.1562) .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 involves creating an elongated, flat shape with a central circular hole. The first face features an irregular, elongated outline composed of several lines and arcs. The second face contains a single circular hole. The third face has a loop formed by two lines and two arcs, while the fourth face also has a si...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0676) .lineTo(0.1441, 0.0676) .threePointArc((0.1588, 0.0706), (0.1735, 0.0647)) .lineTo(0.5412, 0) .threePointArc((0.5441, 0.0029), (0.5471, 0)) .threePointArc((0.4706, 0.0324), (0.4118, 0.0912)) .lineTo(0.2...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms the first face of the model. This face is defined by a loop of five lines, creating a unique shape with one slanted edge. Transform this sketch into three dimensions by applying a rota...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.3765, 0.3765) .lineTo(0.3765, 0.75) .lineTo(0, 0.75) .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.expor...
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 shape that includes a rectangle with a triangular section at one end. Scale this sketch to reduce its size. Transform the scaled sketch into three dimensions 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.0235) .lineTo(0.45, 0.1206) .lineTo(0, 0.1206) .close() .extrude(0.1172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.117188, 0)) result = part_1 cq.e...
The design consists of three main parts: a rectangular block, a cube, and a rectangular box. The rectangular block is a solid body with a length of 0.75 units, a width of 0.1875 units, and a height of 0.28125 units. It features slightly rounded top and bottom edges. The cube, positioned above the rectangular block, has...
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.2812) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
To construct the triangular prism, start by setting up a new coordinate system with default settings. Draw a triangular shape in a two-dimensional sketch, ensuring that the sides form a closed loop. Scale the sketch to fit the desired dimensions. Then, transform the scaled sketch into a three-dimensional object by extr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.7441) .lineTo(0.3765, 0) .lineTo(0.75, 0.7441) .close() .extrude(0.0625) ) result = part_1 cq.exporters.export(result, "./stlcq/0066/00669592.stl")
Start by creating a rectangular top with a series of small circular holes. The rectangle forms the base of the object, and the holes are strategically placed within it. After defining the basic shape, transform and rotate it to align with the desired orientation. The final step involves extruding the shape to give it a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1059, 0) .lineTo(0.1059, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0529, 0.3147) .circle(0.0059) .moveTo(0.0529, 0.2265) .circle(0.0029) .moveTo(0.0529, 0.3588) .circle(0.0029) ...
A rectangular plate with rounded corners is created by drawing a 2D sketch on the first face, which consists of a closed loop with four lines. After scaling the sketch, the plate is extruded to form a solid body with a length of approximately 0.75 units, a width of about 0.625 units, and a height of roughly 0.0117 unit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3176) .lineTo(0.6176, 0) .lineTo(0.75, 0.2588) .lineTo(0.0324, 0.6265) .close() .extrude(0.0078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0.3652) .lineTo(0.7109...
The design involves creating a circular plate with a central hole. Start by setting up a new coordinate system. Draw a larger circle and a smaller concentric circle to form the first face. Scale the sketch to fit the desired size and transform it into a three-dimensional object. Extrude the sketch to create a solid bod...
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.0676) .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0003/00036307.stl")
The first part involves creating a rectangular block with cylindrical holes. The block has a length of approximately 0.3606, a width of 0.75, and a height of 0.2501. The first face includes a rectangle, a hexagon, and two circles. The second face includes a hexagon and a circle. After scaling and transforming the sketc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3618, 0) .lineTo(0.3618, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0971, 0.1676) .lineTo(0.1382, 0.0971) .lineTo(0.2206, 0.0971) .lineTo(0.2618, 0.1676) .lineTo(0.2206, 0.2382) .lin...
Start by setting up a new coordinate system with default angles and positions. Draw a circular shape on a new face, centering it at specific coordinates and giving it a defined radius. Scale the circle to reduce its size, then transform it to maintain its position. Extrude the scaled circle to create a solid cylindrica...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1406) ) result = part_1 cq.exporters.export(result, "./stlcq/0080/00806467.stl")
The design involves creating a rounded rectangular base. First, establish a new coordinate system with default settings. Then, draw a two-dimensional sketch that forms a rounded rectangle. This sketch includes four arcs and four lines, creating a smooth, rounded shape. After completing the sketch, scale it down by 75%....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1882) .threePointArc((0.0559, 0.0559), (0.1882, 0)) .lineTo(0.5618, 0) .threePointArc((0.6941, 0.0559), (0.75, 0.1882)) .lineTo(0.75, 0.5618) .threePointArc((0.6941, 0.6941), (0.5618, 0.75)) .lineTo(0.1882, 0...
The design consists of two main parts. The first part is a rectangular block with two cylindrical holes. The block has a length of 0.25 units, a width of 0.05 units, and a height of 0.05 units. The cylindrical holes are positioned along the length of the block. The second part is a cylindrical object that is attached t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.05) .lineTo(0, 0.05) .close() .moveTo(0.2, 0.0235) .circle(0.0127) .moveTo(0.05, 0.0235) .circle(0.0127) .extrude(0.0469) ) # Part 2: join part_2 = ( cq.Work...
To create the rectangular block, start by setting up a new coordinate system with specific rotations and translations. Draw a simple square sketch on one face, then scale it down to a quarter of its original size. Transform this scaled sketch into a three-dimensional object by applying the same rotations and translatio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.25) .lineTo(0, 0.25) .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...
The design consists of two parts: a rectangular bar and a cylindrical object. The rectangular bar has a flat top and bottom with straight edges, measuring 0.1 units in length, 0.75 units in width, and 0.0010416666666666667 units in height. The cylindrical object has a straight, elongated shape with circular tops and bo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1, 0) .lineTo(0.1, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0048/00485252.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional outline of a rectangular plate with a small protrusion on one side. This outline will be scaled down to fit the desired dimensions. Transform this outline into a three-dimensional shape by extruding it 0.045 units to create ...
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.15, 0.5) .lineTo(0, 0.35) .close() .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0036/00369883.stl")
Start by creating a new coordinate system and setting the Euler angles and translation vector. Draw a two-dimensional sketch on the first face, forming a rectangle with a specific length and width. Scale the sketch to reduce its size. Transform the scaled sketch into three dimensions by applying the rotation and transl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3588) .lineTo(0, 0.3588) .close() .extrude(0.1016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.195312, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a rectangular outline with two circular cutouts near the center. The rectangle has a length slightly over three-quarters of a unit and a width just over a quarter of a unit. The two circular cutouts are evenly spaced along ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.1412) .lineTo(0, 0.2824) .lineTo(0.75, 0.2824) .lineTo(0.75, 0.1412) .lineTo(0.75, 0) .close() .moveTo(0.7029, 0.1412) .circle(0.0206) .moveTo(0.1882, 0.1412) .circle(0.0206) ...
The design consists of two main parts: a rectangular box and a triangular protrusion. The rectangular box has a length of 0.75, a width of 0.5, and a height of 0.375. This box forms the base of the structure. The triangular protrusion, which is added to the top of the box, has a length of 0.75, a width of 0.5, and a he...
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.375) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.0029, 0.5029) .close() ...
Construct a rectangular bar by creating a new coordinate system aligned with the default axes. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. Scale this sketch down by 75% to achieve the desired size. Transform the scaled sketch into a three-dimensional object by extruding ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1206) .lineTo(0, 0.1206) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0051/00516355.stl")
The process begins by setting up a new coordinate system with no rotation or translation. A circular 2D sketch is then created, centered at a specific point and with a defined radius. This sketch is scaled down to reduce its size. The scaled sketch is transformed to maintain alignment with the initial coordinate system...
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/0026/00268559.stl")
Start by setting up a new coordinate system with specific rotations and translations. Draw a circular face within this system, then scale the entire sketch to fit the desired dimensions. Transform the scaled sketch into 3D space using specified rotations and translations. Extrude the sketch to create a solid cylindrica...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .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, "./stlcq/0025/00254235.stl")
The design involves creating an octagonal box and a cylindrical object that are combined to form the final shape. The octagonal box has a length of approximately 0.75 units, a width of about 0.65 units, and a height of around 0.25 units. The cylindrical object, which is added to the octagonal box, has a diameter of rou...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.1882, 0) .lineTo(0.5618, 0) .lineTo(0.75, 0.3235) .lineTo(0.5618, 0.65) .lineTo(0.1882, 0.65) .close() .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.3035...
The first part involves creating a curved, elongated shape with a pointed tip and a small, rounded indentation near the base. The final dimensions of this part are approximately 0.30 meters in length, 0.75 meters in width, and 0.008 meters in height. The second part is a cylindrical object with a smooth surface and rou...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.079412, 0) .lineTo(0.079412, 0.05) .lineTo(0.058824, 0.05) .lineTo(0.058824, 0.035294) .lineTo(0.026471, 0.035294) .lineTo(0.026471, 0.097059) .lineTo(0.135294, 0.097059) .threePointArc((0....
The design consists of three main parts. The first part is a U-shaped base with a length of 0.75 units, a width of 0.5 units, and a height of 0.25 units. This base forms the foundation of the structure. The second part is a rectangular block that adds material to the existing body, positioned 0.25 units above the base....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1265) .lineTo(0.4676, 0.1265) .lineTo(0.4676, 0.3765) .lineTo(0.75, 0.3765) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) # Part 2: join part_2 = ...
The design involves creating a cylindrical object with a flat top and bottom, slightly elongated in the center. Start by setting up a new coordinate system with specific angles and translations. Then, draw a circular face in a two-dimensional sketch and scale it to fit the desired dimensions. Transform this sketch into...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .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/0025/00255982.stl")
Start by creating a new coordinate system with specific orientation settings. Then, draw a rectangular shape on a new face. After defining the shape, scale it to the desired size. Transform this scaled sketch into a three-dimensional object by applying the necessary rotations and translations. Finally, extrude the sket...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1094, 0) .lineTo(0.1094, 0.0163) .lineTo(0, 0.0163) .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 first part involves creating a star-shaped object. The star is constructed by drawing a complex 2D sketch and then scaling it down by 75%. This scaled sketch is then transformed into 3D space and extruded 0.1796 units to create a solid body. The dimensions of this part are approximately 0.5824 units in length, 0.75...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5853) .lineTo(0.1912, 0.5118) .lineTo(0.1353, 0.75) .lineTo(0.2765, 0.5324) .lineTo(0.5824, 0.5118) .lineTo(0.4029, 0.3559) .lineTo(0.5294, 0) .lineTo(0.3618, 0.2088) .lineTo(0.1206, 0.2265) .line...
The design involves creating a hollow cylindrical object. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw two concentric circles on a face to define the inner and outer boundaries of the cylinder. Scale the sketch to reduce its size, then rotate and translate it to ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .moveTo(0.1882, 0.1882) .circle(0.0926) .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...
Start by creating a new coordinate system aligned with the global axes. Draw a two-dimensional rectangular sketch on the first face, forming a closed loop with four lines. Transform this sketch into a three-dimensional space without altering its orientation or position. Extrude the sketch along its normal vector to cre...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0391, 0) .lineTo(0.0391, 0.0391) .lineTo(0, 0.0391) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0060/00602094.stl")
The first part involves creating a rectangular L-shaped base. This base has a horizontal arm that is longer than the vertical arm. The base is extruded to a height of 0.1355 units. The second part introduces a rounded rectangular cutout that is positioned near the corner of the base. This cutout extends 0.2259 units in...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.091176, 0) .lineTo(0.091176, 0.297059) .lineTo(0.658824, 0.297059) .lineTo(0.658824, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.035294) .lineTo(0.697059, 0.035294) .lineTo(0.697059, 0.335294) ...
Start by setting up a new coordinate system aligned with the default axes. Draw a two-dimensional sketch on a new face, creating two concentric circles with a common center. The outer circle has a larger radius, while the inner circle has a smaller radius. Scale the entire sketch to reduce its size proportionally. Conv...
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.3118) .extrude(0.1172) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00693708.stl")
The design involves creating a cylinder with slightly rounded top and bottom surfaces. Start by setting up a new coordinate system with specific Euler angles and a translation vector. A circular sketch is then drawn and scaled down. This sketch is transformed into a three-dimensional shape by rotating and translating i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3735) .circle(0.3765) .extrude(0.3906) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.390625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0063/00633366.stl")
Create a rectangular prism with a smaller rectangular prism attached to its side. Start by setting up a new coordinate system with specific angles and no translation. Draw a two-dimensional sketch that forms a complex shape with eight lines, then scale this sketch down. Transform the scaled sketch into three-dimensiona...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2206) .lineTo(0.6265, 0.2206) .lineTo(0.6265, 0.0941) .lineTo(0.5, 0.0941) .lineTo(0.5, 0.2206) .lineTo(0, 0.2206) .close() .extrude(0.375) ) part_1 = part_1.rota...
The design consists of three main parts. The first part is a rounded rectangular base with a length of approximately 0.75, a width of 0.3, and a height of 0.075. This base forms the foundation of the model. The second part is a cylindrical protrusion positioned at one corner of the base, with a diameter of 0.15 and a h...
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...
Start by creating a new coordinate system with specific angles and translations. On the first face, draw a rectangular shape with curved ends. This involves drawing a line, an arc, another line, and a closing arc to form the outer boundary. Inside this boundary, draw two smaller circles. Scale the entire sketch to redu...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0676, 0) .lineTo(0.6824, 0) .threePointArc((0.75, 0.0676), (0.6824, 0.1353)) .lineTo(0.0676, 0.1353) .threePointArc((0, 0.0676), (0.0676, 0)) .close() .moveTo(0.0676, 0.0676) .circle(0.0324) .moveTo(0.68...
Start by creating a rectangular base that transitions into a smaller rectangular top. The base has a length of zero point seven five units and a width of zero point five units. The height of the entire structure is zero point three seven five units. The top section is smaller in width compared to the base, giving the m...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0.5, 0.25) .lineTo(0.5, 0.5) .lineTo(0, 0.5) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = pa...
Create a rectangular plate by starting with a two-dimensional sketch of a square on a flat surface. The sketch is then scaled down to fit the desired dimensions. Transform this scaled sketch into a three-dimensional object and extrude it to create a thin rectangular plate. The final dimensions of the plate are 0.75 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() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00232672.stl")
Start by creating a new coordinate system with specific angles and a translation vector. Draw two loops on the first face: the outer loop forms a square, and the inner loop forms a smaller square inside it. Scale the sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object using...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0781, 0) .lineTo(0.0781, 0.0781) .lineTo(0, 0.0781) .close() .moveTo(0.0052, 0.0052) .lineTo(0.0729, 0.0052) .lineTo(0.0729, 0.0729) .lineTo(0.0052, 0.0729) .close() .extrude(0.75) ...
The design involves creating a torus with a cylindrical base and a circular cross-section. A new coordinate system is established with specific rotations and translations. Two concentric circles are drawn on a face, and the sketch is scaled down. After transforming the sketch into 3D space, it is extruded to form a sol...
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.3294) .extrude(0.3516) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.351562, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The rounded cylindrical object begins with a circular base that forms the foundation of the model. This base is then scaled to achieve the desired dimensions and transformed into a three-dimensional shape. The object is extruded upwards to create a cylinder with a rounded edge, resulting in a smooth transition from the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0588, 0.0588) .circle(0.0584) .moveTo(0.0588, 0.0588) .circle(0.0519) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/00709410.stl")
The cylindrical object has a small circular base and a slightly larger circular top. The base and top are created by extruding a two-dimensional sketch that consists of two concentric circles. The outer circle forms the base, while the inner circle defines the inner boundary. After scaling and transforming the sketch, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.019608, 0.019455) .circle(0.019608) .moveTo(0.019608, 0.019455) .circle(0.016544) .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(...
To create the rounded cylindrical object, start by setting up a new coordinate system with specific rotations and translations. Then, draw a simple circular shape on a flat surface. This circle is scaled down to a smaller size and transformed into a three-dimensional space. The circular shape is then extended in both d...
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/0059/00595750.stl")
The first part is a cross-shaped object created by drawing a complex 2D sketch and extruding it to form a solid. The cross has two perpendicular lines intersecting at a right angle, with a slight elevation at the intersection point. The second part is a cylindrical object added to the existing model. The cylinder has a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3299) .lineTo(0, 0.3654) .lineTo(0.3299, 0.3654) .lineTo(0.3299, 0.6953) .lineTo(0.3654, 0.6953) .lineTo(0.3654, 0.3654) .lineTo(0.6953, 0.3654) .lineTo(0.6953, 0.3299) .lineTo(0.3654, 0.3299) .li...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two concentric circles to form a ring. Scale the entire two-dimensional sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it. Extrude th...
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.2206) .extrude(0.5156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.515625, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The design involves creating a larger rectangular prism with a smaller rectangular prism attached to its top surface. The larger prism serves as the base, while the smaller prism is positioned on top. Both prisms are created by extruding two-dimensional sketches into three-dimensional space. The final part has a total ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.05, 0) .lineTo(0.05, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2969) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.4559, 0.0588) .lineTo(0.5059, 0.0588) .lineTo(0.5059, 0.6912)...
The design consists of two parts. The first part is a cube with a length of approximately 0.93 units, a width of 0.75 units, and a height of 0.62 units. This part is created by defining a new coordinate system, drawing a square sketch, transforming it into three dimensions, and then extruding it to form a solid body. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.9297, 0) .lineTo(0.9297, 0.751) .lineTo(0, 0.751) .close() .extrude(0.6172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((-0.3125, 0.617188, 0)) # Part 2: cut part_2 = ( cq.Workpla...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a circle and scale it appropriately. Transform this sketch into 3D space using the defined angles and vector. Extrude the sketch along the normal direction to create a cylindrical object. The final dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .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/0038/00389498.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a circle to define the base of the rounded cylinder. Scale this circle to fit the desired dimensions. Transform the scaled circle into three-dimensional space while maintaining its alignment. Extrude the circle along the no...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1484) ) result = part_1 cq.exporters.export(result, "./stlcq/0010/00104868.stl")
The cylindrical base is created by drawing a circle on a two-dimensional plane, scaling it down, and then extruding it into a three-dimensional shape. The final dimensions of the cylindrical base are approximately 0.75 units in length and width, and 0.122 units in height. The base is a simple, solid cylinder that forms...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0077/00773701.stl")
The design consists of two main parts. The first part is a rectangular prism with a flat top and bottom, and straight edges. It has a length of 0.75 units, a width of 0.1339 units, and a height of 0.0268 units. This part serves as the base of the assembly. The second part is a rectangular plate with rounded corners and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1353) .lineTo(0, 0.1353) .close() .extrude(0.0234) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7344, 0) .lineTo(0.7344, 0.1152) .li...
Start by creating a new coordinate system and then draw a two-dimensional sketch on the first face. This sketch forms a triangle with vertices at the origin, (0.75, 0.0), and (0.75, 0.1552). After drawing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensional objec...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1559) .close() .extrude(0.1094) ) part_1 = part_1.translate((0, 0, 0.0625)) result = part_1 cq.exporters.export(result, "./stlcq/0063/00633551.stl")
The rounded cylindrical cup base is constructed by creating a circular profile that forms the base of the cup. Two concentric circles define the inner and outer edges of the base. These circles are then scaled down uniformly to fit the desired size. The scaled profile is transformed into a 3D object and extruded to cre...
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.3471) .extrude(0.5547) ) result = part_1 cq.exporters.export(result, "./stlcq/0075/00759160.stl")
Create a rectangular base by defining a new coordinate system with specific rotations and translations. Draw a closed loop consisting of four lines to form a rectangle. Scale this rectangle to adjust its size, then rotate and translate it into the correct position. Extrude the scaled and transformed rectangle along its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5059) .lineTo(0, 0.5059) .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, "./s...
The L-shaped CAD model starts with a new coordinate system aligned at specific angles. A two-dimensional sketch is drawn on the first face, forming an intricate loop with eight straight lines. This sketch is then scaled down and transformed into a three-dimensional shape. The shape is extruded to create a solid body wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1109, 0) .lineTo(0.217, 0.5992) .lineTo(0.2076, 0.6016) .lineTo(0.1038, 0.0094) .lineTo(0.0094, 0.0094) .lineTo(0.0094, 0.217) .lineTo(0, 0.217) .close() .extrude(0.75) ) part_1 = part_...
The design involves creating a cylindrical shape with a rectangular top and a central hole. The structure starts with a circular base that is scaled down and then transformed into a three-dimensional object. This object is then extruded to form a cylinder with a height of zero point one zero two three units. The overal...
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.1382) .extrude(0.1016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.101562, 0)) result = part_1 cq.exporters.export(result, "./stlc...
A cylindrical object is created by defining a new coordinate system with specific Euler angles and a translation vector. A circle is drawn and then scaled, rotated, and translated according to the coordinate system settings. The circle is extruded in both directions along the normal to form a solid cylinder. The cylind...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0275, 0.0275) .circle(0.0272) .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/0016/00166437.stl")
Begin by constructing a cube with rounded edges and corners. The cube has a length of 0.75, a width of 0.5, and a height of 0.625. Next, create a slanted cut on one of the cube's faces. This cut forms a smaller cube with rounded edges and corners, measuring 0.6875 in length, 0.4375 in width, and 0.5625 in height. Final...
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 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6875, 0) .lineTo(0.6875, 0.4368) .lineTo(0,...
Create a base that forms a rounded rectangular shape. The base has a length of 0.75 units, a width of 0.6562 units, and a height of 0.0469 units. The overall structure is a solid body with smooth edges and corners, giving it a sleek appearance. The base is designed to be a fundamental component in the assembly of large...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6559) .lineTo(0, 0.6559) .close() .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0071/00719914.stl")
The first part involves constructing a cube with one corner cut off. The cube features a triangular face and has a length of 0.75 units, a width of 0.5346 units, and a height of 0.4735 units. In the second part, a rectangular block with rounded edges is created. This block has a slightly rounded top and bottom and main...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0.5353) .lineTo(0, 0.5353) .close() .extrude(0.4766) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2221, 0) .lineTo(0.2221, 0.4531) .lineTo(0, 0.4531) ....
Start by creating a new coordinate system aligned with the default axes. Draw a circle on the first face, then scale down the entire sketch to fit the desired dimensions. Transform this scaled sketch into a three-dimensional object by aligning it with the original coordinate system. Extrude the sketch along the normal ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0019/00192246.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional sketch that forms a quadrilateral shape with a slight tilt. Scale this sketch down to 75% of its original size. Transform the scaled sketch into a three-dimensional object by rotating and translating it to align with the des...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.7324) .lineTo(0.0735, 0.3618) .lineTo(0.75, 0) .lineTo(0.7, 0.2588) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00354672.stl")
The first part involves creating a rectangular box with a length of 0.75 units, a width of 0.2679 units, and a height of 0.6429 units. This part is formed by extruding a two-dimensional sketch along the normal direction. The second part involves creating a rectangular prism with a length of 0.7125 units, a width of 0.6...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2676) .lineTo(0, 0.2676) .close() .extrude(0.6406) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3485, 0) .lineTo(0.3485, 0.5994) .li...
The design consists of two cylindrical parts. The first cylinder has a height of 0.2083 units and a base diameter of 0.75 units. The second cylinder, placed on top of the first, has a height of 0.2917 units and a base diameter of 0.5167 units. Both cylinders are aligned along the vertical axis, with the smaller cylinde...
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 part is a cube with a pentagonal top and a rectangular base. The top face is a regular pentagon, while the bottom face is a rectangle. The cube has six faces, twelve edges, and eight vertices. The overall dimensions of the part are approximately 0.73 units in length, 0.75 units in width, and 0.41 units in height. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5794) .lineTo(0.0294, 0.1147) .lineTo(0.4794, 0) .lineTo(0.7294, 0.3912) .lineTo(0.4324, 0.75) .close() .extrude(0.4062) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00697881.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a square and a circle inside it. On the second face, draw another circle and a hexagon inscribed within it. Scale down the entire sketch to fit the desired dimensions. Transform the sketch into a 3D model by extruding it al...
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.3765, 0.3765) .circle(0.3265) .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .cir...
Start by creating a new coordinate system with the specified Euler angles and translation vector. On the first face, draw a rectangular loop with four lines to define the base of the box. Scale the rectangle to reduce its size proportionally. Rotate and translate the scaled rectangle to position it correctly in three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2824, 0) .lineTo(0.2824, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09375, 0)) result = part_1 cq.exporters.export(result, "./...
To create a long, thin rectangular prism with rounded edges, start by setting up a new coordinate system with specific Euler angles and a zero translation vector. Draw a two-dimensional sketch that forms a complex shape with multiple lines. This shape is then scaled and transformed into three dimensions. The final step...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0157, 0) .lineTo(0.0157, 0.0013) .lineTo(0.0013, 0.0013) .lineTo(0.0013, 0.0299) .lineTo(0.0157, 0.0299) .lineTo(0.0157, 0.0312) .lineTo(0, 0.0312) .close() .extrude(0.75) ) part_1 = pa...
The design involves creating a cylindrical object with a hollow center. The process starts by defining a new coordinate system aligned with the default axes. A two-dimensional sketch is then drawn, featuring two concentric circles. The outer circle forms the outer boundary of the cylinder, while the inner circle create...
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.1735) .extrude(0.5) ) result = part_1 cq.exporters.export(result, "./stlcq/0042/00427427.stl")
Create a rectangular prism with a triangular cutout. Start by defining a new coordinate system with no rotation or translation. Draw a two-dimensional sketch that forms a rectangle with a triangular section removed. After completing the sketch, scale it down by 75% to achieve the desired size. Transform this scaled ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2824) .lineTo(0.1559, 0) .lineTo(0.5941, 0) .lineTo(0.75, 0.2824) .close() .extrude(0.1406) ) result = part_1 cq.exporters.export(result, "./stlcq/0065/00653649.stl")
The design consists of two main parts. The first part is a cylinder with a flat top and bottom, a smooth surface, and a uniform diameter. It has a length and width of 0.75 units and a height of 0.075 units. The second part is a cylindrical hole that is cut into the first part. This hole has a length and width of 0.15 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0781) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.078125, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) ...
Create a rectangular plate with rounded edges. Begin by setting up a new coordinate system with default angles and no translation. Draw a rectangular loop on the first face, ensuring the corners are well-defined. Scale this sketch to achieve the desired dimensions. Transform the scaled sketch into a three-dimensional o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6172, 0) .lineTo(0.6172, 0.138) .lineTo(0, 0.138) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/00525337.stl")
The CAD model consists of two main parts: a rectangular base and a smaller rectangular extension. The base has a length of 0.75 units, a width of 0.45 units, and a height of 0.0062 units. This part is positioned at the bottom of the model. The smaller rectangular extension, which is placed on top of the base, has a len...
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.0078) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2995, 0) .lineTo(0.2995, 0.1238) .lineTo...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a circle on the first face and scale it appropriately. Transform this scaled sketch into three dimensions and extrude it along its normal to create a solid body. The resulting object is a cylindrical shape with a r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0157, 0.0157) .circle(0.0156) .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/0071/00711008.stl")
The design consists of two main parts. The first part is a hexagonal prism with a height of 0.2537 units, a length of approximately 0.75 units, and a width of about 0.65 units. The second part is a cylindrical top with a height of 0.1269 units and a diameter of around 0.61 units. The cylindrical top is positioned on to...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.1882, 0) .lineTo(0.5618, 0) .lineTo(0.75, 0.3235) .lineTo(0.5618, 0.65) .lineTo(0.1882, 0.65) .close() .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.3035...
The design consists of three main parts. The first part is a rectangular base with a length slightly less than 0.5 units, a width of about 0.4167 units, and a height of 0.1667 units. This base is positioned at a specific location in space. The second part is a vertical extension that sits on top of the base. It has a s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.4176) .lineTo(0, 0.4176) .close() .extrude(0.1641) ) part_1 = part_1.translate((0.25, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1656,...
The first part involves creating a cylindrical object with a central hole. The cylinder has a length and width of 0.75 units and a height of 0.50625 units. The second part consists of two rectangular blocks with rounded edges, positioned at an angle to each other. These blocks have a length of 0.8067487500000001 units,...
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.1176) .extrude(0.5078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.0852) .lineTo(0, 0.183) .lineTo(0.3661...
The cylindrical base is created by first establishing a coordinate system with no rotation or translation. A circle is drawn within a face, centered at a specific point and with a defined radius. This circle is then scaled down to fit the desired dimensions. The scaled circle is transformed into a 3D shape by extruding...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0041/00418474.stl")
The cylindrical base is constructed by first defining a new coordinate system with specific angles and a translation vector. A circular shape is drawn on the first face and then scaled down to fit the desired size. This 2D sketch is then transformed into a 3D object and extruded to form the cylindrical base. The base h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0235, 0.0235) .circle(0.0233) .extrude(0.5391) ) part_1 = part_1.translate((0, 0, 0.210938)) result = part_1 cq.exporters.export(result, "./stlcq/0067/00673873.stl")
The design involves creating a torus with a circular cross-section and a cylindrical hole in the center. Start by defining a new coordinate system with specific Euler angles and a translation vector. Draw two concentric circles on a face to form the cross-sectional profile of the torus. Scale this profile to fit the de...
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.2618) .extrude(0.0625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.0625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/...
The design consists of two main parts that combine to form a cylindrical object with a hollow center and rounded edges. The first part is a U-shaped bracket with rounded edges, measuring approximately 0.7451 units in length, 0.4178 units in width, and 0.5132 units in height. This part is created by drawing a two-dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4162) .lineTo(0.0757, 0.4162) .threePointArc((0.3725, 0.0757), (0.6665, 0.4162)) .lineTo(0.7422, 0.4162) .threePointArc((0.3725, 0), (0, 0.4162)) .close() .extrude(0.5156) ) part_1 = part_1.rotate((0, 0, 0), ...
Start by creating a new coordinate system with the specified Euler angles and translation vector. Draw a circle on the first face, then apply a scaling factor to reduce its size. Rotate and translate the scaled circle to align it correctly. Extrude the circle to form a solid cylinder. The final cylinder has a length an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2188) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.21875, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0097/00970453.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a square on a new face, ensuring that the sides are 0.75 units long. Scale the square to reduce its size by 25%. Transform the scaled square into a three-dimensional object by extruding it 0.0118 units upwards to form a thin rectangular prism...
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.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0083/00834276.stl")
The design consists of two main parts: a cylindrical base and a rectangular cylindrical shaft. The cylindrical base has a square cross-section with a length and width of approximately 0.2086 units and a height of 0.075 units. The rectangular cylindrical shaft is positioned above the base, centered and offset slightly. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.0781) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .extrude(0.6719) ) part_2 = part_2.translate((0.085938, 0.085938, 0.078125))...
The first step involves creating a new coordinate system with default settings. Next, draw a circular shape on a new face. This circle is then scaled down to fit the desired size. The scaled circle is transformed to maintain its position and orientation. Finally, the circle is extruded along the normal direction to cre...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0019/00192093.stl")