input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch that includes a single circle. Scale this sketch down to 75% of its original size. Transform the scaled sketch into three dimensions by applying the rotation and translation from the coordi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2031) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.203125, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0012/00122462.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional rectangular shape on a new face, ensuring the proportions are maintained. Scale the rectangle to achieve the desired dimensions. Transform the scaled rectangle into a three-dimensional object without altering its position. Extrude t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.5625) .lineTo(0, 0.5625) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00571833.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face. The rectangle has a length of 0.75 units and a width of 0.1159 units. Scale the rectangle down by 75%. Convert the scaled rectangle into a three-dimensional object by extruding it 0.0173 units al...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1147) .lineTo(0, 0.1147) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0044/00442510.stl")
The first part involves creating a rectangular base with a length of 0.75, a width of 0.625, and a height of 0.125. This base is a solid body with rounded edges and corners. The second part involves constructing a rectangular top with a length of 0.7, a width of 0.575, and a height of 0.1. This top is a hollow structur...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6235) .lineTo(0, 0.6235) .close() .extrude(0.125) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7031, 0) .lineTo(0.7031, 0.5763) .lin...
Start by creating a rectangular base with two circular cutouts. The base measures 0.75 units in length and 0.644 units in width. Two smaller circles are positioned within the rectangle to form the holes, one near the top left and the other near the center. The entire shape is then scaled down to fit the desired dimensi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6441) .lineTo(0, 0.6441) .close() .moveTo(0.4559, 0.3853) .circle(0.0706) .moveTo(0.1471, 0.2294) .circle(0.0706) .extrude(0.2031) ) result = part_1 cq.exporter...
Start by creating a new coordinate system with specific orientation and translation settings. Draw a rectangular outline on the first face, and within this rectangle, draw two smaller circles. Scale the entire sketch to reduce its size, then rotate and translate it according to the specified parameters. Finally, extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.35) .lineTo(0, 0.35) .close() .moveTo(0.2029, 0.1735) .circle(0.0912) .moveTo(0.5471, 0.1735) .circle(0.0912) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0),...
Create a rectangular base by starting with a two-dimensional sketch that forms a rectangle. The sketch is then scaled down and transformed into a three-dimensional object. The final step involves extruding the sketch to create a solid body. The resulting rectangular base has a height of 0.01125 units, a width of 0.75 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0324, 0) .lineTo(0.0324, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0024/00240586.stl")
Create a new coordinate system and draw a two-dimensional sketch on the first face. The sketch consists of a larger rectangle with a smaller rectangle cut out from one corner, forming a step-like feature. Transform the sketch into three dimensions by rotating and translating it according to the coordinate system settin...
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.3765, 0.75) .lineTo(0.3765, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) r...
The design consists of two main parts. The first part is a rectangular prism with a length of approximately 0.75, a width of about 0.345, and a height of around 0.286. This part is created by extruding a 2D sketch of a rectangle. The second part is a cylindrical protrusion with a diameter of about 0.228 and 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.3441) .lineTo(0, 0.3441) .close() .extrude(0.2891) ) part_1 = part_1.translate((0, 0, 0.039062)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1137, 0.1137) ...
The first part involves creating a hexagonal prism. The hexagonal base has a length of 0.75 units and a width of 0.6495 units. The prism stands 0.2537 units tall. For the second part, a cylindrical top is constructed. This cylinder has a diameter of 0.6089 units and a height of 0.1269 units. The cylindrical top is then...
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 is a dog tag with a rounded top and a central hole. It has a flat bottom with a small hole near the top. The dog tag measures 0.75 units in length, 0.3 units in width, and 0.0273 units in height. The second part is a rectangular plate with rounded corners and parallel edges. The plate measures 0.4364 uni...
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() .moveTo(0.15, 0.0412) .lineTo(0.3735, 0.0412) .lineTo(0.6, 0.0412) .li...
The first part involves creating a rectangular plate. Start by setting up a coordinate system and drawing a two-dimensional sketch of a rectangle. The rectangle is then scaled, rotated, and translated to its final position. Finally, the sketch is extruded to create a solid body. The dimensions of this plate are approxi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4882) .lineTo(0, 0.4882) .close() .extrude(0.0234) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0058, 0.121) .circle(0.0029) .extrude(0.0312) ) part_2...
The design consists of two main components: a cylinder array and a rectangular plate. The cylinder array features six identical cylinders arranged in a grid pattern, each with a diameter of 0.225 and spaced evenly apart. The entire array is scaled down to fit within a length of 0.675, a width of 0.45, and a height of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1133, 0.1133) .circle(0.1107) .extrude(0.5625) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1133, 0.3373) .circle(0.1107) .extrude(0.5625) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3...
The design involves two main parts. The first part is a cube with a rectangular cutout on one face. This part has a height of 0.75 units, a width of 0.525 units, and a length of 0.525 units. The second part is a smaller cube with rounded edges and corners, positioned within the larger cube. This smaller cube has a heig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5234, 0) .lineTo(0.5234, 0.5234) .lineTo(0, 0.5234) .close() .moveTo(0.0369, 0.0369) .lineTo(0.4865, 0.0369) .lineTo(0.4865, 0.4865) .lineTo(0.0369, 0.4865) .close() .extrude(0.75) ...
Create a new coordinate system aligned with the default axes. Draw a rectangular two-dimensional sketch on the first face, forming a closed loop with four straight lines. Scale this sketch by a factor of 0.75 to adjust its size. Transform the scaled 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.3176, 0) .lineTo(0.3176, 0.75) .lineTo(0, 0.75) .close() .extrude(0.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00909756.stl")
Create a rectangular block by defining a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch of a rectangle and scale it down. Transform this sketch into three dimensions by applying the defined rotations and translations. Extrude the sketch to form a solid body. The final dime...
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.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, "./s...
The Rectangular Prism is a three-dimensional object with a slightly rounded top and bottom and sharp edges. It is created by transforming a two-dimensional sketch into a three-dimensional model. The sketch consists of a closed loop with rounded corners, forming a rectangle. After scaling and rotating the sketch, it is ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0072) .threePointArc((0.0022, 0.0022), (0.0072, 0)) .lineTo(0.1335, 0) .threePointArc((0.1384, 0.0022), (0.1406, 0.0072)) .lineTo(0.1406, 0.1335) .threePointArc((0.1384, 0.1384), (0.1335, 0.1406)) .lineTo(0.0...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape on a new face, ensuring it forms a closed loop. Scale this rectangle to adjust its size. Then, rotate and translate the scaled rectangle to position it correctly. Extrude the rectangle along its norma...
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.1484) ) 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 involves creating a rounded rectangular section of an S-shaped object. Start by setting up a new coordinate system. Draw the first face with a rectangular shape that has rounded corners. The second face is also a rounded rectangle but positioned further along the X-axis. Both faces are then scaled down by 75...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0529, 0) .lineTo(0.1294, 0) .threePointArc((0.0647, 0.1912), (0.1294, 0.3824)) .lineTo(0.0529, 0.3824) .threePointArc((0, 0.1912), (0.0529, 0)) .close() .extrude(0.3203) ) part_1 = part_1.union( cq.Workplane...
To create the cylindrical object, start by setting up a new coordinate system with specific angles and translations. Then, draw a circular sketch on a face, scale it appropriately, and transform it into a three-dimensional shape. The sketch is then extruded in both directions to form a solid cylinder. The final dimensi...
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/0082/00827506.stl")
Start by creating a new coordinate system with the Euler angles set to zero degrees and a translation vector of 0.0, 0.0253, 0.0. Draw a two-dimensional sketch on the first face that forms a complex shape with several straight lines. After completing the sketch, scale it down to fit the desired size. Transform this sca...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.1363) .lineTo(0, 0.25) .lineTo(0.0078, 0.25) .lineTo(0.0078, 0.2422) .lineTo(0.0078, 0.1412) .lineTo(0.0078, 0.1333) .lineTo(0.0078, 0.0078) .lineTo(0.0078, 0) .close() .extrude(...
Start by creating a new coordinate system with specific orientation and position adjustments. Then, draw a two-dimensional sketch of a rectangle on the defined plane. This rectangle will serve as the base of the rectangular block. After drawing the rectangle, scale it to the desired size and rotate it to align with the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3125, 0) .lineTo(0.3125, 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...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a two-dimensional hexagonal sketch on the first face. This hexagon will be scaled down to 75% of its original size. After scaling, rotate and translate the hexagon according to the predefined coordinate system settings. Next,...
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.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.0...
The design involves creating a rectangular box base. Start by defining a new coordinate system and drawing a rectangular sketch on the first face. The sketch is then scaled down to fit the desired size. After scaling, the sketch is transformed into a three-dimensional object by extruding it along the positive normal di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3882) .lineTo(0, 0.3882) .close() .extrude(0.3359) ) result = part_1 cq.exporters.export(result, "./stlcq/0020/00204100.stl")
Start by creating a rectangular base on the X-Y plane. This base forms the first face of the rectangular prism. The base has a length slightly over half a unit and a width just under four-tenths of a unit. After defining the base, transform it into a three-dimensional object by extending it 0.75 units upwards along the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5156, 0) .lineTo(0.5156, 0.3882) .lineTo(0, 0.3882) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0076/00766093.stl")
The first part involves creating a cube with rounded edges and corners. This part has a length of 0.75 units, a width of 0.45 units, and a height of 0.75 units. The second part is a rectangular prism with a conical top, positioned above the first part. It has a length of 0.75 units, a width of 0.15 units, and a height ...
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.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.15) .lineTo(0, 0.15...
Start by setting up a new coordinate system with zero degrees for all Euler angles and a translation vector of [0.0268, 0.0, 0.0]. Draw a two-dimensional rectangle on the first face, then scale this rectangle proportionally. Transform the scaled rectangle into a three-dimensional object by applying the same rotation an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3116, 0) .lineTo(0.3116, 0.7031) .lineTo(0, 0.7031) .close() .extrude(0.1562) ) part_1 = part_1.translate((0.023438, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0080/00808939.stl")
Start by creating a large cylindrical base with a height of 0.175 units, a length of 0.75 units, and a width of 0.75 units. Next, add a smaller cylindrical section on top of the base, with a height of 0.25 units, a length of 0.3 units, and a width of 0.3 units. Finally, cut a central hole through the entire structure, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1719) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .extrude(0.25) ) part_2 = part_2.translate((0.226562, 0.226562, 0.171875)) # ...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch consisting of two concentric circles on a face. After scaling the sketch to reduce its size, transform it into a three-dimensional object by applying the same rotations and translations used earlier. ...
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.125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.125, 0)) result = part_1 cq.exporters.export(result, "./stlcq/00...
The design involves creating a rectangular object with a curved edge. Start by drawing a two-dimensional sketch that forms a rectangle with a curved segment on one side. The curved segment connects two straight lines, forming a smooth transition. After completing the sketch, scale it down to 75% of its original size. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0676) .lineTo(0.3088, 0.0676) .threePointArc((0.3765, 0), (0.4412, 0.0676)) .lineTo(0.75, 0.0676) .lineTo(0.75, 0.5765) .lineTo(0, 0.5765) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export...
The design consists of two main components. The first component is a cylindrical body with a length of 0.1125, a width of 0.1125, and a height of 0.75. This cylinder has smooth surfaces and rounded edges. The second component is a smaller cylindrical branch that is attached perpendicularly to the first cylinder. This b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.054902, 0.054902) .circle(0.054473) .extrude(0.75) ) 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.046691, 0.047059) .circle(0.04669...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a single face and within it, draw a circle. Scale the sketch appropriately and transform it into a 3D model using the coordinate system settings. Extrude the 2D sketch to create a solid cylinder with a height of 0.75 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1608, 0.1608) .circle(0.1595) .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/0077/00777327.stl")
The design consists of two main parts. The first part is a rectangular box with open ends and flat surfaces. It has a length of approximately 0.75 units, a width of about 0.53 units, and a height of around 0.17 units. The second part is a rectangular plate with rounded corners and a flat surface. It has a length of abo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5324) .lineTo(0, 0.5324) .close() .moveTo(0.0059, 0.0059) .lineTo(0.7441, 0.0059) .lineTo(0.7441, 0.5265) .lineTo(0.0059, 0.5265) .close() .extrude(0.1719) ) ...
The design consists of two rectangular prisms. The first rectangular prism has a base that is approximately 0.75 units long and 0.75 units wide, with a height of 0.0469 units. This base is positioned at a specific location and orientation defined by the coordinate system. The second rectangular prism is smaller, with d...
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.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.234375, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
The design involves creating a symmetrical two-part structure with a rectangular base and a triangular top. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw two faces, each with a rectangular and triangular shape, and scale the entire sketch by seventy-five per...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1029) .lineTo(0.1588, 0) .lineTo(0.1588, 0.75) .lineTo(0, 0.6471) .close() .extrude(0.0547) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2647, 0) .lineTo(0.4235, 0.1029) .lineTo(0.4235, 0...
The design consists of two parts. The first part is a rectangular prism with a cylindrical hole. It has a length of approximately 0.75 units, a width of about 0.635 units, and a height of 0.067 units. The second part is a cylinder with a central hole. It has a diameter of around 0.164 units and the same height of 0.067...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6353) .lineTo(0, 0.6353) .close() .moveTo(0.3765, 0.3176) .circle(0.0324) .extrude(0.0703) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.132812, 0)) ...
Start by creating a new coordinate system aligned with the default axes. Draw a square on the first face, ensuring that the sides are equal in length. Scale the square to reduce its size proportionally. Transform this scaled square into a three-dimensional object by extruding it along the normal direction to create a c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00237754.stl")
Start by creating a new coordinate system with specific angles and translations. Then, draw a rectangular shape on a flat surface. This rectangle will be transformed and scaled to fit the desired dimensions. After scaling, rotate and translate the shape into its final position. Finally, extrude the shape to create a so...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0275, 0) .lineTo(0.0275, 0.1094) .lineTo(0, 0.1094) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "...
The design consists of two rounded cylindrical washers. The first part has a length of 0.75, a width of 0.75, and a height of 0.2083. It is created by drawing two concentric circles on a face, scaling the sketch, and then extruding it to form a solid body. The second part is smaller, with a length of 0.5, a width of 0....
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.2109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.414062, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
Create a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a loop with five curves. This includes a line from the origin to a point, an arc connecting two points, and several lines to complete the shape. Scale the sketch to reduce its siz...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .threePointArc((0.6265, 0.25), (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)) re...
The design involves creating a cylindrical object. Start by setting up a new coordinate system and drawing a single face. Within this face, draw a circle, which will serve as the base of the cylinder. The circle is then scaled to the desired size and transformed into a 3D shape by extruding it along the normal directio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0667, 0.0667) .circle(0.0661) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0088/00888972.stl")
The design consists of three main parts. The first part is a rectangular base with rounded edges, created by extruding a 2D sketch 0.2958 units. The base has a length of 0.8875, a width of 0.4438, and a height of 0.2958. The second part is a cylindrical hole in the top section, formed by extruding a circular 2D sketch ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.8906, 0) .lineTo(0.8906, 0.1502) .lineTo(0.2235, 0.1502) .lineTo(0.2235, 0.4471) .lineTo(0, 0.4471) .close() .extrude(0.2969) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0....
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a complex loop that forms a rectangular shape with a small protrusion on one side. After drawing the loop, scale the entire sketch by a factor of 0.75. Transform the scaled sketch into a three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1118, 0) .lineTo(0.1118, 0.75) .lineTo(0, 0.75) .lineTo(0, 0.6) .lineTo(0.0559, 0.6) .lineTo(0.0559, 0.4882) .lineTo(0, 0.4882) .close() .extrude(0.4531) ) part_1 = part_1.rotate((0, 0,...
The design consists of two main parts. The first part is a rectangular block with a flat top and bottom and rounded edges. It has a length of 0.75, a width of 0.395, and a height of 0.0717. The second part is a rectangular box with a slightly rounded top and bottom and sharp edges. It has a length of 0.4167, a width of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3941) .lineTo(0, 0.3941) .close() .extrude(0.0703) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.289062, 0)) # Part 2: join part_2 = ( cq.Workplane("XY"...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular two-dimensional sketch. Transform this sketch using the coordinate system settings, then extrude it to form a three-dimensional rectangular block. The final part has a height of zero poin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2969, 0) .lineTo(0.2969, 0.2969) .lineTo(0, 0.2969) .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 a rectangular section that forms the base of a cylindrical object. Start by setting up a new coordinate system with specific rotations and translations. Draw a rectangular sketch, then scale and transform it into a three-dimensional shape. Extrude the sketch to create a solid body with a sp...
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) ) 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 parts that are assembled to form a complex 3D structure. The first part is a rectangular section with a curved section, measuring 0.75 units in length, 0.3343 units in width, and 0.1355 units in height. This part forms the main body of the structure. The second part is a smaller rectangular...
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) ...
The first part is a rectangular block with a height of 0.375, a width of 0.250, and a length of 0.750. This block forms the main body of the L-shaped model. The second part is a smaller rectangular block with a height of 0.250, a width of 0.250, and a length of 0.625. This block is cut out from the first part, creating...
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...
To create a rectangular box, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch on the first face, forming a rectangle. Transform this sketch into three dimensions by applying the specified rotation and translation. Finally, extrude the s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.9297, 0) .lineTo(0.9297, 0.525) .lineTo(0, 0.525) .close() .extrude(0.5703) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((-0.132812, 0.570312, 0)) result = part_1 cq.exporters.export(...
Start by creating a new coordinate system aligned with the global axes and slightly translated along the z-axis. Draw a two-dimensional rectangular sketch on the first face. This rectangle will serve as the base of the part. Scale the rectangle down to 75% of its original size. Transform the scaled sketch into a three-...
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.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0071/00711415.stl")
Start by setting up a new coordinate system with specific rotations and translations. Draw a circular shape on a new face and apply a scaling factor to adjust its size. Transform this 2D sketch into a 3D object by rotating and translating it according to the coordinate system settings. Extrude the 2D sketch to form a c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .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/0029/00290365.stl")
The design involves constructing four distinct parts to form a complex 3D model. The first part is a cylindrical object with a length and width of approximately 0.75 units and a height of 0.375 units. The second part is another cylindrical object with smooth surfaces and rounded edges, also with a length and width of 0...
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.translate((-0.078125, -0.078125, 0.1875)) # Part 2: intersect part_2 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.375...
To construct the rectangular base, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch that forms a complex shape with multiple lines. This shape is scaled down and transformed into a three-dimensional object by rotating and translating it...
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.75) .lineTo(0.25, 0.75) .lineTo(0.25, 0.25) .lineTo(0, 0.25) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1,...
The cylindrical object is created by defining a new coordinate system with specific Euler angles and a translation vector. A two-dimensional sketch is then drawn on the plane defined by this coordinate system, featuring a single circular face. This sketch is scaled, rotated, and translated according to the coordinate s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .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/0012/00129276.stl")
The cylindrical rod is constructed by creating a circular base and extending it into a 3D shape. The base is a circle positioned slightly off-center on the XY plane, which is then scaled to achieve the desired dimensions. The circle is extruded along the Z-axis by 0.75 units to form the final cylindrical shape. The rod...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.019455, 0.019608) .circle(0.019455) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00059649.stl")
Create a rectangular plate with two holes on opposite sides. The plate consists of three main sections: the first section has a rectangular face with a small hole near the center, the second section is a rectangular face without any holes, and the third section has another rectangular face with a small hole near the ce...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3118, 0) .lineTo(0.3118, 0.2088) .lineTo(0, 0.2088) .close() .moveTo(0.1559, 0.0735) .circle(0.0176) .extrude(0.0234) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.2088) ...
Construct a rectangular block with rounded edges and a flat top and bottom. Begin by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a loop with arcs and lines to define the shape. Scale the sketch and transform it into three dimensions. Ext...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.016728) .threePointArc((0.017126, 0), (0.033854, 0.016728)) .lineTo(0.033854, 0.084835) .threePointArc((0.017126, 0.101562), (0, 0.084835)) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), ...
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 that create a slightly curved edge. After completing the sketch, apply a scale factor to adjust its size. Transform the scaled ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0437, 0) .lineTo(0.0437, 0.0547) .lineTo(0.0416, 0.0547) .lineTo(0.0416, 0.0021) .lineTo(0, 0.0021) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75...
The design involves creating two ring-shaped objects. The first ring has a length and width of 0.46875 units and a height of 0.1015625 units. It is created by drawing two concentric circles, scaling the sketch, and then extruding it. The second, smaller ring has a length and width of 0.4375 units and a height of 0.0312...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .moveTo(0.2353, 0.2353) .circle(0.125) .extrude(0.1016) ) 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") .mov...
Start by creating a new coordinate system with specific angles and translations. Draw a circle on the first face, then scale the sketch to reduce its size. Transform the scaled sketch into a 3D object by applying rotation and translation based on the coordinate system settings. Extrude the 3D sketch to create a solid c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.6016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.601562, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0017/00173614.stl")
Create a square plate with four holes at the corners. Start by setting up a new coordinate system aligned with the global origin. Draw a square outline on the first face, and within this square, place four smaller circles at the corners. Scale the entire sketch to reduce its size proportionally. Transform the scaled sk...
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.6618, 0.0882) .circle(0.0294) .moveTo(0.0882, 0.0882) .circle(0.0294) .moveTo(0.6618, 0.6618) .circle(0.0265) .mov...
Start by creating a new coordinate system with the origin shifted 0.3232 units along the z-axis. Draw a two-dimensional sketch on the first face, forming a rounded rectangular shape. This shape consists of two straight lines and two arcs, giving it a smooth, rounded appearance. Scale this sketch to reduce its size. Tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0681, 0) .lineTo(0.2366, 0) .threePointArc((0.3047, 0.1267), (0.2366, 0.2545)) .lineTo(0.0681, 0.2545) .threePointArc((0, 0.1267), (0.0681, 0)) .close() .extrude(0.375) ) part_1 = part_1.translate((0, 0, 0.32031...
The rectangular base features a protruding section. The base has a length of 0.3857 units, a width of 0.75 units, and a height of 0.2143 units. The protruding section adds complexity to the shape, creating a unique profile that extends from the main rectangular body. The overall structure is designed to fit precisely w...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6853) .lineTo(0.0471, 0.6441) .lineTo(0.0471, 0) .lineTo(0.3853, 0) .lineTo(0.3853, 0.1059) .lineTo(0.1706, 0.1059) .lineTo(0.1706, 0.3206) .lineTo(0.3853, 0.3206) .lineTo(0.3853, 0.4294) .lineTo(...
The design involves creating a rectangular prism with rounded edges. The first step is to establish a new coordinate system aligned with the global axes. A two-dimensional sketch of a rectangle is drawn, and this sketch is then scaled down by 75%. The scaled sketch is transformed into a three-dimensional shape and extr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0294, 0) .lineTo(0.0294, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0938) ) result = part_1 cq.exporters.export(result, "./stlcq/0012/00120634.stl")
The cylindrical object is constructed by creating a circular base and then extruding it to form a solid body. The base has a diameter that is approximately half the height of the cylinder. The height of the cylinder is 0.75 units, while the diameter of the base is 0.46875 units. The sides of the cylinder are straight, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0071/00710460.stl")
The rectangular prism base is created by starting with a new coordinate system and drawing a two-dimensional sketch of a rectangle on the first face. The rectangle has a length of 0.75 units and a width of 0.5303 units. After drawing the sketch, scale it down by 75%. The scaled sketch is then transformed into a three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5294) .lineTo(0, 0.5294) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00627796.stl")
The first step involves creating a rectangular base with precise dimensions. Start by setting up a new coordinate system with no rotation or translation. Draw a rectangular face with a length slightly over 0.75 units and a width just under 0.49 units. Scale this rectangle to fit the desired size. Transform the scaled r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4853) .lineTo(0, 0.4853) .close() .extrude(0.4766) ) result = part_1 cq.exporters.export(result, "./stlcq/0038/00389958.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a rectangular sketch. The rectangle has a length slightly over 0.0227 units and a width close to 0.75 units. Scale the entire sketch by a factor of 0.75 to reduce its size proportionally. Next, extrude the scaled sketch 0.0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0235, 0) .lineTo(0.0235, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00904415.stl")
The design consists of two main parts. The first part is a torus-shaped object with a circular cross-section and a central hole. It has a length and width of 0.46875 units and a height of 0.1015625 units. The second part is a cylindrical object with a flat top and bottom and a central hole. It measures 0.4375 units in ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .moveTo(0.2353, 0.2353) .circle(0.125) .extrude(0.1016) ) 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") .mov...
Start by creating a new coordinate system with specific rotations and translations. Draw a single circle on the first face and scale it down to fit the desired size. Transform this scaled sketch into 3D by applying the defined rotations and translations. Finally, extrude the sketch to create a solid cylindrical object....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.035, 0.035) .circle(0.0353) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0002/00026812.stl")
Start by creating a new coordinate system aligned with the default axes. Sketch a two-dimensional outline on the first face, consisting of two concentric circles. The outer circle defines the outer boundary, while the inner circle creates the hollow center. Scale the entire sketch to reduce its size uniformly. Extrude ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.3147) .extrude(0.1719) ) result = part_1 cq.exporters.export(result, "./stlcq/0080/00804540.stl")
The design involves creating a rectangular protrusion with two cylindrical holes. Start by setting up a new coordinate system with specific angles and a translation vector. Draw a 2D sketch on the first face, which includes a rectangle and two circles. The rectangle forms the main body, while the circles represent the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0471) .lineTo(0, 0.0471) .close() .moveTo(0.0176, 0.0235) .circle(0.0029) .moveTo(0.7324, 0.0235) .circle(0.0029) .extrude(0.0078) ) part_1 = part_1.rotate((0, 0,...
Create a new coordinate system with the specified orientation and position. Draw a circular sketch on the first face, then scale it down to fit the desired size. Transform the sketch into three dimensions and extrude it to form a solid cylindrical object. The final dimensions of the cylinder are 0.3 units in length, 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .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/0091/00913740.stl")
Create a cube by starting with a new coordinate system aligned at the origin and translated 0.375 units along the z-axis. Draw a square on the first face, ensuring that the sides are equal. Scale the square to reduce its size. Transform this scaled square into a three-dimensional object by aligning it with the coordina...
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.375) ) part_1 = part_1.translate((0, 0, 0.1875)) result = part_1 cq.exporters.export(result, "./stlcq/0066/00662015.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a square plate on the first face with a circular hole in the center. The square has sides that are approximately equal in length, and the circular hole is positioned centrally within the square. Scale the entire sketch to reduce its size unif...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7294, 0) .lineTo(0.7294, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.3647, 0.2824) .circle(0.2471) .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00351971.stl")
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with default angles and vectors. Draw a circle on the first face, then scale this circle to achieve the desired size. Transform the scaled circle into 3D space and extrude it to form the cylinder. The final dimensions...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1569, 0.1569) .circle(0.1556) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0056/00562803.stl")
The first part of the design involves creating a rectangular prism with slightly rounded top and bottom edges. The base of the prism is a rectangle with a length of 0.375 and a width of 0.5625. This rectangle is then extruded to a height of 0.75 to form the three-dimensional shape. The overall structure is a solid rect...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.5625) .lineTo(0, 0.5625) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00572155.stl")
The first part of the design involves creating a rectangular bar. Begin by setting up a new coordinate system with specific rotations and translations. Then, draw a rectangular sketch on a plane. This sketch forms the base of the rectangular bar. After defining the sketch, transform it into a three-dimensional object b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0912) .lineTo(0, 0.0912) .close() .extrude(0.0234) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.023438, 0)) result = part_1 cq.exporters.export(result, "....
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 at the ends. Scale the entire sketch to reduce its size. Rotate and translate the scaled sketch according to the coordinate sys...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0294, 0) .lineTo(0.7206, 0) .threePointArc((0.75, 0.0294), (0.7206, 0.0618)) .lineTo(0.0294, 0.0618) .threePointArc((0, 0.0294), (0.0294, 0)) .close() .moveTo(0.7206, 0.0294) .circle(0.0176) .moveTo(0.02...
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular sketch on a new face, ensuring the rectangle's dimensions are proportional to the desired final size. After drawing the rectangle, scale it down to fit the required dimensions. Transform the scaled sketch into a 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.1647) .lineTo(0, 0.1647) .close() .extrude(0.1641) ) result = part_1 cq.exporters.export(result, "./stlcq/0084/00844130.stl")
The design involves creating a hexagonal washer with a central circular hole. The process begins by setting up a new coordinate system with zero Euler angles and translation vector. Two two-dimensional sketches are drawn on separate faces, each forming a hexagonal outline with a curved section representing the hole. Th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1765) .lineTo(0.1, 0) .lineTo(0.3, 0) .lineTo(0.3, 0.15) .threePointArc((0.1, 0.35), (0.3, 0.55)) .lineTo(0.3, 0.75) .lineTo(0, 0.75) .lineTo(0, 0.35) .close() .extrude(0.0469) ) part_1 = part_1.u...
The design involves creating a rectangular box. Start by setting up a new coordinate system with default angles and translations. Draw a rectangular sketch on the first face. The sketch forms a loop with four lines that define the rectangle's perimeter. After drawing the sketch, scale it down by 75%. Then, rotate and 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, 0.5) .close() .extrude(0.5) ) result = part_1 cq.exporters.export(result, "./stlcq/0048/00484570.stl")
The design consists of three main parts: a rectangular base, a cylindrical top, and a rounded cap. The rectangular base has a length of approximately 0.678, a width of 0.0677, and a height of 0.0314. This forms the foundation of the structure. The cylindrical top sits on top of the base and has a diameter of about 0.10...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6797, 0) .lineTo(0.6797, 0.0666) .lineTo(0, 0.0666) .close() .extrude(0.0312) ) part_1 = part_1.translate((0.070312, 0.015625, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0549, ...
The rectangular block is a simple yet robust component with a flat top and bottom and straight, parallel sides. The block is created by extruding a two-dimensional sketch into a three-dimensional solid. The sketch consists of a rectangle with a length of 0.2863 meters and a width of 0.8295 meters. After transforming th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2858, 0) .lineTo(0.2858, 0.8281) .lineTo(0, 0.8281) .close() .extrude(0.1797) ) part_1 = part_1.translate((-0.179688, -0.046875, -0.054688)) result = part_1 cq.exporters.export(result, "./stlcq/0031/...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a rectangular two-dimensional sketch on a new face. This sketch forms a loop with four lines, creating a rectangle. After drawing the sketch, scale it down to 75% of its original size. Transform this scaled sketch ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4294) .lineTo(0, 0.4294) .close() .extrude(0.3203) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.320312, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of two main parts: an octagonal box and a cylindrical top. The octagonal box has a length of 0.75 units, a width of 0.6495 units, and a height of 0.2537 units. It is created by extruding a two-dimensional octagonal sketch along the normal direction. The cylindrical top, with a diameter of 0.6089 uni...
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...
Start by setting up a new coordinate system with specific Euler angles and a translation vector to position the model correctly. Draw a rectangular shape on the first face, ensuring it has rounded edges. Scale this shape to fit the desired dimensions. Transform the scaled shape into a three-dimensional object by rotati...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0324) .lineTo(0, 0.0324) .close() .extrude(0.5469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.546875, 0)) result = part_1 cq.exporters.export(result, "....
Create a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on a face, which includes a single circle. Scale the sketch to the desired size and transform it into a three-dimensional object by applying the rotation and translation from the coordinate system. Extrude ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0012/00129973.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional sketch featuring a larger circle and a smaller concentric circle. Scale this sketch down to fit within a square base. Transform the sketch into three dimensions without altering its orientation. Extrude the sketch to form 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.1971) .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0067/00676548.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a rectangle with rounded corners. Inside this rectangle, place four small circles near the edges. Scale the entire sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by extrudi...
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() .moveTo(0.3, 0.0382) .circle(0.0029) .moveTo(0.45, 0.0382) .circle(0.0029) .moveTo(0.3, 0.1882) .circle(0.0029) .moveTo(...
The design involves creating a cylindrical object with a flat circular top and bottom, followed by adding a central hole. The first part is a cylinder with a length and width of approximately 0.75 units and a height of 0.375 units. The second part is a smaller cylindrical section that is extruded to form a hole through...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.375) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .extrude(0.5938) ) part_2 = part_2.rotate((0, 0, 0), (1, 0, 0), -178.5937).tra...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangular sketch on the plane defined by this coordinate system. After drawing the rectangle, apply a scale factor to adjust its size. Rotate and translate the scaled sketch to position it correctly i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.311, 0) .lineTo(0.311, 0.5469) .lineTo(0, 0.5469) .close() .extrude(0.2812) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.320312, 0.203125)) result = part_1 cq.exporters.export(r...
The rectangular bar is created by defining a new coordinate system and drawing a two-dimensional sketch of a rectangle. This sketch is then scaled down and transformed into three-dimensional space. The final step involves extruding the sketch to create a solid rectangular bar. The bar has a flat top and bottom, and its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0765, 0) .lineTo(0.0765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0781) ) part_1 = part_1.translate((0.070312, 0, 0.664062)) result = part_1 cq.exporters.export(result, "./stlcq/0048/00483542.stl")...
The first part involves creating a cylinder. Begin by setting up a coordinate system and drawing a circular sketch. After scaling and transforming the sketch, extrude it to form a solid cylinder with a flat circular top and bottom, smooth curved sides, and a uniform diameter. The cylinder has a length and width of 0.75...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.376471, 0.376471) .circle(0.373529) .extrude(0.21875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.21875, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0.01201) .lineTo(0.020588, ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular shape with a smaller circular hole inside it. After completing the sketch, apply a scaling factor to adjust its size. Transform the scaled sketch into a three-dimensional object by rotati...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.1147, 0) .lineTo(0.5441, 0) .lineTo(0.6588, 0.75) .close() .moveTo(0.35, 0.1412) .circle(0.0824) .extrude(0.0391) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.039062, 0...
Create a cube with a circular hole running through its center. The cube has a length of 0.75 units, a width of 0.6609 units, and a height of 0.3 units. On each face of the cube, there is a rectangular outline with a circular cutout at the center. The circular cutout is positioned symmetrically within the rectangle. Aft...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6618) .lineTo(0, 0.6618) .close() .moveTo(0.3735, 0.3294) .circle(0.2265) .extrude(0.2969) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a triangular shape with precise vertices. Scale this triangular shape to fit the desired size. Transform the scaled shape into three dimensions by applying a rotation and translation. Extrude the trans...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.2853, 0.4706) .lineTo(0, 0.4676) .close() .extrude(0.4688) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.46875, 0)) result = part_1 cq.exporters.export(result, "...
Start by defining a new coordinate system with specific Euler angles and a translation vector. On the plane defined by this coordinate system, draw a circular face. Scale this face to adjust its size. Then, transform the scaled face by rotating and translating it to the desired position. Finally, extrude the transforme...
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/0001/00015484.stl")
The design involves creating a cylindrical object with a smooth surface and a circular base. The process starts by defining a new coordinate system and drawing a two-dimensional sketch consisting of two concentric circles. After scaling the sketch, it is transformed into a three-dimensional shape by extruding it along ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.302, 0.302) .circle(0.2996) .moveTo(0.302, 0.302) .circle(0.1793) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0074/00748632.stl")
Start by creating a new coordinate system with default settings. On the first face, draw a rectangular sketch. The rectangle has a length of approximately 0.75 units and a width of 0.1875 units. Scale this sketch by a factor of 0.75 to adjust its size. Then, extrude the sketch 0.0625 units along the normal direction to...
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.0625) ) result = part_1 cq.exporters.export(result, "./stlcq/0024/00240190.stl")