input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
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. Scale the sketch uniformly to achieve the desired dimensions. Extrude this sketch 0.75 units in the positive normal direction to form a solid body. ...
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/0050/00505959.stl")
The design consists of three main parts that are combined to form a complex shape. The first part is a semi-circular block with a flat base and a curved top, measuring 0.6316 units in length and width, and 0.1184 units in height. The second part is a rectangular prism with rounded edges, featuring a flat top and bottom...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3176) .threePointArc((0.3176, 0), (0.6328, 0.3176)) .lineTo(0.6328, 0.6328) .lineTo(0, 0.6328) .close() .extrude(0.1172) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6328, 0...
Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a unique shape with several straight lines. After completing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional object by applyi...
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.5618, 0.0324) .lineTo(0.5618, 0.5147) .lineTo(0.1882, 0.5147) .lineTo(0.1882, 0.0324) .lineTo(0, 0.0324) .close() .extrude(0.5625) ) part_1 = part...
Construct a rectangular box by starting with a new coordinate system that has specific Euler angles and a translation vector. Draw a two-dimensional sketch on the defined plane, creating a rectangular face. Transform this sketch into three-dimensional space by rotating and translating it according to predefined angles ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5312, 0) .lineTo(0.5312, 0.1396) .lineTo(0, 0.1396) .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, "...
Start by setting up a new coordinate system aligned with the default axes. On a flat surface, draw two concentric circles to define the outer and inner boundaries of the hollow cylinder. Scale down the entire drawing to fit the desired size. Convert this scaled drawing into a three-dimensional object by extruding it up...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1725, 0.1725) .circle(0.1712) .moveTo(0.1725, 0.1725) .circle(0.1025) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0044/00444573.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a complex two-dimensional sketch that forms a unique shape. This shape is then scaled down and transformed into three-dimensional space. Finally, extrude the sketch to create a solid body. The resulting model has a length of approx...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0618) .lineTo(0.5618, 0.0618) .lineTo(0.5618, 0.4529) .lineTo(0.1882, 0.4529) .lineTo(0.1882, 0.0618) .lineTo(0, 0.0618) .close() .extrude(0.5625) ) part_1 = part...
Create a rectangular block by starting with a two-dimensional sketch on a flat surface. The sketch outlines a rectangle with a specific length and width. After defining the shape, scale the sketch to reduce its size proportionally. Transform the scaled sketch into a three-dimensional object and then extrude it to give ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2941, 0) .lineTo(0.2941, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1328) ) result = part_1 cq.exporters.export(result, "./stlcq/0011/00113538.stl")
The design consists of a cylindrical object with a smaller cylindrical cutout and a rectangular cutout. The first part is a cylinder with a height of 0.75 units and a diameter of approximately 0.565 units. The second part is a smaller cylindrical cutout with a height of 0.375 units and a diameter of about 0.213 units. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.1051, 0.1051) .circle(0.1059) .extru...
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 shape to reduce its size. Transform the scaled shape into three dimensions using the coordinate system settings. Finally, extrude the shape t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1529) .lineTo(0, 0.1529) .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, "....
The design consists of seven parts, each forming a cylindrical or toroidal shape. The first part is a ring with a height of 0.0448 units, followed by a larger ring with a height of 0.0896 units. The third part is a smaller torus with a height of 0.1344 units. The fourth part is a cylinder with a hollow center, standing...
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.3059) .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.226562, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
To create a rectangular prism with a hollow center, start by setting up a new coordinate system with specific rotations and translations. Then, draw a two-dimensional outline of the shape, which includes a series of connected lines forming a rectangle with a smaller rectangle cut out from the center. After drawing the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1484, 0) .lineTo(0.1484, 0.0151) .lineTo(0.0221, 0.0151) .lineTo(0.0221, 0.1333) .lineTo(0.1484, 0.1333) .lineTo(0.1484, 0.1484) .lineTo(0, 0.1484) .close() .extrude(0.75) ) part_1 = pa...
The heart-shaped object consists of two symmetrical faces, each with two loops of lines forming a complex, rounded shape. The first face and the second face are identical, with each face containing an outer loop and an inner loop. The outer loop forms the main outline of the heart, while the inner loop creates a hollow...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3588) .lineTo(0.3765, 0) .lineTo(0.75, 0.3588) .lineTo(0.75, 0.5382) .lineTo(0.6529, 0.6382) .lineTo(0.4559, 0.6382) .lineTo(0.3765, 0.5588) .lineTo(0.2941, 0.6382) .lineTo(0.0971, 0.6382) .lineTo...
The triangular base for the prism is constructed by creating a new coordinate system and drawing a two-dimensional triangular sketch. The sketch is then scaled down to 75% of its original size and transformed into a three-dimensional object. Finally, the sketch is extruded 0.0086 units to create a solid triangular base...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2) .lineTo(0.4235, 0) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0009/00099898.stl")
The design consists of three parts that form a complex structure. The first part is a cube with rounded edges and corners, measuring 0.65 meters in length and width, and 0.24 meters in height. This part is positioned with a slight offset from the origin. The second part is another cube with rounded edges and corners, s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.050858) .threePointArc((0.015257, 0.015257), (0.050858, 0)) .lineTo(0.59758, 0) .threePointArc((0.63318, 0.015257), (0.648438, 0.050858)) .lineTo(0.648438, 0.59758) .threePointArc((0.63318, 0.63318), (0.59758, 0....
Create a rectangular block with a flat top and bottom and square edges. The block has a length of approximately 0.75 units, a width of about 0.275 units, and a height of around 0.082 units. The block is created by extruding a two-dimensional sketch into a three-dimensional solid. The sketch is a simple rectangle, 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.2765) .lineTo(0, 0.2765) .close() .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0006/00069665.stl")
Create a rectangular prism base with a slightly rounded top and bottom edges. The top and bottom faces are parallel and congruent, while the side faces are rectangular. The length of the rectangular prism is approximately 0.58 units, the width is around 0.75 units, and the height is very small, nearly 0.000068 units. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5794, 0) .lineTo(0.5794, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0066/00663911.stl")
The first part involves creating a rectangular object with a cutout. The main body has a length of approximately 0.75 units, a width of about 0.2357 units, and a height of around 0.2143 units. The second part is a cylindrical object that is subtracted from the first part. This cylinder has a diameter of about 0.0321 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2353) .lineTo(0.7294, 0.2353) .lineTo(0.65, 0.1412) .threePointArc((0.6147, 0.1441), (0.6118, 0.1794)) .lineTo(0.6588, 0.2353) .lineTo(0, 0.2353) .close() .moveTo...
The design consists of two rectangular blocks. The first block has a length of 0.75, a width of 0.4286, and a height of 0.0741. This block forms the base of the structure. On top of this block, a smaller rectangular block is placed. The smaller block has a length of 0.4286, a width of 0.2143, and a height of 0.0544. Th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.429412) .lineTo(0, 0.429412) .close() .extrude(0.070312) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.429688, 0) .lineTo(0.429688, 0.21...
Start by creating a new coordinate system aligned with the default axes. Sketch a circular shape on the first face, then draw a smaller concentric circle within it to define the inner and outer boundaries of a hollow cylinder. Scale down the entire sketch uniformly. Transform the sketch into a three-dimensional object ...
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.2529) .extrude(0.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0055/00554749.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular shape on the first face, ensuring the sides are parallel to the coordinate axes. After drawing the rectangle, scale it down to 75% of its original size. Transform the scaled rectangle into a three-dimensional object by rotating ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6) .lineTo(0, 0.6) .close() .extrude(0.2969) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00358550.stl")
The design involves creating a symmetrical L-shaped part. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a complex loop on the first face, forming an L-shape with multiple lines connecting specific points. After completing the sketch, apply a scale factor to reduce...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6794) .lineTo(0.0206, 0) .lineTo(0.0647, 0) .lineTo(0.0735, 0) .lineTo(0.1735, 0) .lineTo(0.1735, 0.0176) .lineTo(0.0735, 0.0176) .lineTo(0.0735, 0.6412) .lineTo(0.1735, 0.6912) .lineTo(0.1382, 0....
The first part is a solid cylinder with a height of 0.4286 units, a length of 0.75 units, and a width of 0.75 units. The second part is a hollow cylinder that is positioned above the first part, with a height of 0.5357 units, a length of 0.5357 units, and a width of 0.5357 units. This hollow cylinder removes material f...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4297) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.2706, 0.2706) .circle(0.2685) .extrude(0.5391) ) part_2 = part_2.translate((0.109375, 0.109375, -0.109375))...
The design involves creating a cylindrical object with a hexagonal base and a hexagonal top. The sides of the cylinder are straight and parallel. The overall shape is achieved by drawing a hexagon with a circular cutout in the center, then scaling this sketch and extruding it to form the final three-dimensional model. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0686) .lineTo(0.118, 0) .lineTo(0.237, 0.0686) .lineTo(0.237, 0.2048) .lineTo(0.118, 0.2734) .lineTo(0, 0.2048) .close() .moveTo(0.118, 0.1373) .circle(0.1062) .extrude(0.75) ) result = part_1 c...
Start by creating a new coordinate system with specific Euler angles and a translation vector to define the orientation and position. Draw a two-dimensional sketch on the plane defined by this coordinate system, forming a rectangular shape. The rectangle has a length of zero point zero two six eight units and a width o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0281, 0.0281) .lineTo(0.0281, 0.0703) .lineTo(0, 0.0703) .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.expor...
The design consists of a three-armed symmetrical structure with a central hole. The arms are arranged around a central axis and are connected by a series of curved and straight segments. The first arm extends outward and curves back toward the center, while the second arm forms a more complex shape with multiple curves...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1029) .lineTo(0.0118, 0.0853) .threePointArc((0.0265, 0.0882), (0.0382, 0.0794)) .threePointArc((0.0647, 0.1029), (0.0941, 0.0882)) .lineTo(0.2853, 0.2) .threePointArc((0.2882, 0.3029), (0.3765, 0.3559)) .lin...
Start by creating a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch on the first face, forming a closed loop with four lines. Scale this sketch to the desired size and transform it into three-dimensional space. Extrude the sketch to create a solid body with a slightly wider...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0417) .lineTo(0.024, 0) .lineTo(0.0385, 0) .lineTo(0.0625, 0.0417) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.1875, 0, 0)) result = ...
Start by creating a rectangular base that will serve as the foundation of the model. This base has rounded edges and corners, giving it a smooth appearance. The base measures 0.75 units in both length and width, and it is extruded to a height of 0.0375 units. The overall shape is a thin, flat cube with rounded features...
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.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0043/00435903.stl")
Create a new coordinate system with no rotation or translation. Draw a rectangular shape on the first face, ensuring that the sides are parallel to the coordinate axes. Scale this rectangle to fit the desired dimensions. Transform the scaled rectangle into a three-dimensional object by extruding it along the normal dir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2) .lineTo(0, 0.2) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0085/00859235.stl")
To create a rectangular block, start by setting up a new coordinate system. Draw a two-dimensional rectangle on the first face, ensuring the sides are proportional to the desired dimensions. After completing the sketch, scale it down to fit the required size. Transform the scaled sketch into a three-dimensional object ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2765) .lineTo(0, 0.2765) .close() .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0076/00768096.stl")
Start by creating a new coordinate system with specific rotations and translations. On the first face, draw two concentric circles to define the outer and inner boundaries of the torus cross-section. Scale the entire sketch to adjust the size of the torus. Transform the scaled sketch into a three-dimensional shape by r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .moveTo(0.3735, 0.3735) .circle(0.2706) .extrude(0.1328) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.132812, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch that outlines a rectangular shape with rounded corners. This sketch will serve as the base for the three-dimensional model. Transform this sketch into a three-dimensional object by extruding it 0.75 units along its normal dir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0469, 0) .lineTo(0.0469, 0.002) .lineTo(0.002, 0.002) .lineTo(0.002, 0.0469) .lineTo(0, 0.0469) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/00709804.st...
The design involves creating a cylinder with a rectangular base and a square top. The base and top surfaces are flat and parallel to each other, while the sides are smooth and curved. The height of the cylinder is 0.75 units, and both the length and width of the base are 0.3553 units. The overall structure is formed by...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3516, 0) .lineTo(0.3516, 0.3516) .lineTo(0, 0.3516) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0027/00275651.stl")
The first part involves creating a rectangular box with a flat bottom and an open top. Start by setting up a new coordinate system with default angles and translations. The first face of the part consists of two loops, each defined by arcs and lines that form a complex shape. After completing the first face, scale the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0265) .threePointArc((0.0088, 0.0088), (0.0265, 0)) .lineTo(0.4235, 0) .threePointArc((0.4412, 0.0088), (0.45, 0.0265)) .lineTo(0.45, 0.7235) .threePointArc((0.4412, 0.7412), (0.4235, 0.75)) .lineTo(0.0265, 0...
The final shape is a cylinder with a flat circular top and bottom, a smooth surface, and rounded edges. The cylinder has a height of 0.18 units, a width of 0.75 units, and a length of 0.75 units. The cylinder is created by transforming a two-dimensional sketch into a three-dimensional model through rotation and transla...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1797) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.179688, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0020/00200441.stl")
Start by setting up a new coordinate system with specific rotations and translations. Draw a rectangular face and a circular face in two separate two-dimensional sketches. Scale the sketches to fit the desired size, then transform them into a three-dimensional shape by applying the same rotations and translations. Extr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2059) .lineTo(0.3382, 0.2059) .lineTo(0.3382, 0.5147) .lineTo(0, 0.5147) .close() .extrude(0.1094) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.6235, 0.1265) .circle(0.1265) .extrude(0.10...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch that forms a rectangular base with a horizontal cutout. The sketch includes a series of lines that create a complex shape with a cutout in the middle. After completing the sketch, scale 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.5) ) part_1 = part_1.rotate((0, 0, 0), (1, ...
Start by setting up a new coordinate system aligned with the default axes. Draw a circular sketch on a plane, ensuring it is centered and appropriately sized. Scale the sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by aligning it with the coordinate system. Extrude th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1373, 0.1373) .circle(0.1362) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0096/00965978.stl")
The design consists of two main parts. The first part is a cylinder with a rectangular top and a circular base. This part has a length of approximately 0.75 units, a width of about 0.49 units, and a height of 0.15 units. The second part is a cube with a rectangular section in the middle. This part has a length of aroun...
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.4882) .close() .extrude(0.1484) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.148438, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY")...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch on a new face, forming a loop with four lines. After that, apply a scale factor to the sketch and transform it into three dimensions using the coordinate system settings. Extrude the sketch...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6016, 0) .lineTo(0.5261, 0.2123) .lineTo(0.0755, 0.2123) .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,...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangular sketch on the first face. This rectangle will serve as the base of the model. Scale the sketch to adjust its size. Transform the scaled sketch into three dimensions by applying the rotation ...
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.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
The first part involves creating a rectangular block with rounded edges. The block is defined by a series of arcs and lines forming a closed loop on a single face. After scaling the sketch by a factor of 0.75, the block is extruded 0.1875 units to create a solid body. The final dimensions of this part are 0.75 in lengt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0382) .threePointArc((0.0118, 0.0118), (0.0382, 0)) .lineTo(0.7118, 0) .threePointArc((0.7382, 0.0118), (0.75, 0.0382)) .lineTo(0.75, 0.3559) .threePointArc((0.7441, 0.3706), (0.7324, 0.3765)) .lineTo(0.0176,...
The rectangular plate is a simple yet precise component with a flat surface and rounded corners. The plate has a rectangular shape with a length of 0.75 units, a width of 0.3461538461538461 units, and a height of 0.01730769230769231 units. This part is created by extruding a two-dimensional sketch along its normal, res...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3471) .lineTo(0, 0.3471) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0077/00777852.stl")
The design involves creating a cylindrical object with a smooth surface and rounded edges. The process starts by defining a new coordinate system and drawing a circular sketch on the first face. This circle is then scaled down to fit the desired dimensions. The scaled circle is transformed into a three-dimensional obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.298, 0.298) .circle(0.2957) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00929922.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular sketch on the first face, forming a closed loop. After drawing the rectangle, scale it down to seventy-five percent of its original size. Transform this scaled sketch into a three-dimensional object by applying the sa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0206) .lineTo(0, 0.0206) .close() .extrude(0.1484) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.148438, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific rotations and translations. Then, draw a two-dimensional rectangular sketch on the first face. After drawing the rectangle, scale it down to a smaller size. Transform this scaled rectangle into three dimensions by applying the initial rotations and translations. E...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4618) .lineTo(0, 0.4618) .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.exporters.export(result, "....
The design involves creating a cylindrical object with a central circular hole. Start by setting up a coordinate system with no rotation or translation. Draw a two-dimensional sketch featuring two concentric circles. The larger circle represents the outer boundary of the cylinder, while the smaller circle defines the c...
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.1235) .extrude(0.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00407168.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw two concentric circles, with the outer circle representing the main body and the inner circle defining a central hole. Scale the entire sketch to reduce its size uniformly. Extrude the scaled sketch to form a three-dimensio...
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.2059) .extrude(0.3984) ) result = part_1 cq.exporters.export(result, "./stlcq/0068/00689283.stl")
The design involves creating a cylindrical object with a specific orientation and position. A new coordinate system is established to align the object correctly. A circular base is drawn and then scaled down. This scaled circle is transformed into a three-dimensional shape by rotating and translating it according to th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .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/0069/00698157.stl")
The design consists of two cylindrical parts. The first part is a larger cylinder with a flat circular top and bottom. It has a height of approximately 0.0616 units and a diameter of about 0.75 units. The second part is a smaller cylinder, also with a flat circular top and bottom. It has the same height as the first pa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.125, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.3373, 0.3373) .circle(0.3346) .e...
Start by creating a coordinate system that aligns with the desired orientation and position. Draw a circular shape on the first face, which will serve as the outer boundary of the disk. Inside this circle, draw a smaller concentric circle to define the central hole. Scale down the entire sketch to fit the desired dimen...
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.1) .extrude(0.1641) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.164062, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
The design consists of three parts that are combined to form a complex 3D model. The first part is a rectangular box with a length of approximately 0.195 meters, a width of 0.290 meters, and a height of 0.033 meters. This part is positioned slightly offset from the origin. The second part is another rectangular box, la...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1938, 0) .lineTo(0.1938, 0.2891) .lineTo(0, 0.2891) .close() .extrude(0.0312) ) part_1 = part_1.translate((0.1875, 0.25, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lin...
Start by creating a new coordinate system with specific angles and translations. Draw a 2D sketch on the first face, forming a complex shape with multiple segments. This shape includes a rectangular base with a step-like structure on one side. Scale the 2D sketch to reduce its size. Transform the scaled 2D sketch into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0471) .lineTo(0.5882, 0.0471) .lineTo(0.5882, 0.1265) .lineTo(0.3765, 0.1265) .lineTo(0.1618, 0.1265) .lineTo(0.1618, 0.0471) .lineTo(0, 0.0471...
The cylindrical base is constructed by creating a new solid body through a series of geometric transformations. Initially, a circle is drawn on a face, then scaled down to fit the desired dimensions. This scaled circle is extruded to form a cylinder with a height of 0.75 units. The cylinder's top and bottom are circula...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2196, 0.2196) .circle(0.2179) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00054597.stl")
The rectangular plate is a simple yet robust component with a flat surface and rounded edges. The plate measures approximately 0.3253 meters in length, 0.75 meters in width, and 0.0271 meters in height. The design involves creating a two-dimensional sketch of a rectangle, scaling it down, and then extruding it to form ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3265, 0) .lineTo(0.3265, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00409444.stl")
The first part of the design involves creating a rounded cylindrical base. Start by establishing a new coordinate system and drawing a circular shape on a new face. This circle is then scaled down and transformed into a three-dimensional object by extruding it along its normal. The final dimensions of this part are a h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.302, 0.302) .circle(0.2996) .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/0029/00291567.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch that forms a rectangular shape with rounded edges. This shape will serve as the base for the part. After drawing the sketch, scale it down to 75% of its original size. Transform the scaled sketch into a three-dimensional obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0265) .lineTo(0.0294, 0.0029) .lineTo(0.7235, 0) .lineTo(0.75, 0.0265) .lineTo(0.75, 0.6118) .lineTo(0.7265, 0.6412) .lineTo(0.0265, 0.6382) .lineTo(0, 0.6118) .close() .extrude(0.0078) ) result ...
Create a new coordinate system with specific rotations and translations, then draw a two-dimensional sketch on the first face. The sketch consists of a rectangular shape with a smaller rectangular section removed from one corner. Scale the sketch appropriately and transform it into three dimensions. Extrude the sketch ...
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) .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.expo...
The design involves creating a rectangular plate with curved edges. A new coordinate system is established with specific Euler angles and a translation vector. The first face features two concentric circles, while the second face includes a complex shape made of arcs and lines forming a rounded rectangle. The third fac...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0794, 0.0794) .circle(0.0765) .moveTo(0.0794, 0.0794) .circle(0.0235) .extrude(0.0312) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.0794) .threePointArc((0.0794, 0.1559), (0.1559, 0.0794)) .l...
The disk with a hole is a three-dimensional object featuring a flat circular surface and a cylindrical edge. The disk has a central hole, giving it a donut-like shape. The height of the disk is 0.0947 units, while both the length and width are 0.75 units. The disk is created by extruding a two-dimensional sketch, which...
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.0765) .extrude(0.0938) ) result = part_1 cq.exporters.export(result, "./stlcq/0072/00720012.stl")
The design consists of two cylindrical parts. The first part is a larger cylinder with a flat circular top and bottom, and a slightly concave top surface. It measures approximately 0.75 units in length and width, and 0.2083 units in height. The second part is a smaller cylinder with a smooth surface and rounded edges. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2109) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2568, 0.2568) .circle(0.2588) .extrude(0.2891) ) part_2 = part_2.translate((0.117188, 0.117188, 0.210938))...
The design consists of three cylindrical sections that are assembled to form a final shape. The first section is a larger cylinder with a height of 0.75 units and a diameter of 0.375 units. This serves as the base of the structure. The second section is a smaller cylinder placed on top of the base, with a height of 0.1...
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.175) .extrude(0.75) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0.1765, 0.1765) .circle(0.1751) .extrude(0.1406) ) part_2 = part...
Create a cylindrical object by starting with 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. Extrude this scaled sketch along the normal direction to form a solid cylinder with a height of 0.75 units. The base of the cyli...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0025/00254957.stl")
The first part of the design involves creating a rectangular prism base. Begin by setting up a new coordinate system aligned with the default origin. Then, draw a rectangular sketch on the first face. This sketch forms the outline of the base, which will later be transformed into a three-dimensional object. After defin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.251, 0) .lineTo(0.251, 0.5) .lineTo(0, 0.5) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00576247.stl")
The first part involves creating a rectangular prism with a protruding section. This part has a length of 0.20625 meters, a width of 0.7125 meters, and a height of 0.1875 meters. The second part consists of cylindrical holes drilled into a horizontal arm, which has a length of 0.181875 meters, a width of 0.3225 meters,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.674694) .lineTo(0, 0.710938) .lineTo(0.103156, 0.710938) .lineTo(0.206311, 0.710938) .lineTo(0.206311, 0.674694) .lineTo(0.122672, 0.674694) .lineTo(0.122672, 0) .lineTo(0.08364, 0) .lineTo(0.08364, 0...
The design consists of two main parts: a hexagonal prism and a cylinder. The hexagonal prism has a length of approximately 0.75 units, a width of about 0.65 units, and a height of around 0.25 units. The cylinder, positioned above the hexagonal prism, has a diameter of roughly 0.61 units and a height of about 0.13 units...
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 involves creating a cylindrical object with a flat circular base and a smooth, rounded top. Start by defining a new coordinate system with specific Euler angles and a translation vector. Then, draw a circle on a face and scale it appropriately. Transform this scaled sketch into three-dimensional space and ex...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0588, 0.0588) .circle(0.0584) .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/0031/00310984.stl")
The cylindrical object is created by first setting up a coordinate system with specific rotations and translations. A circular sketch is then drawn and scaled appropriately. This sketch is transformed into a three-dimensional shape by rotating and translating it according to the coordinate system. The final step involv...
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/0035/00351541.stl")
The design consists of three main parts. The first part is a cylindrical object with a hollow center, measuring 0.5233 units in length, 0.5233 units in width, and 0.6977 units in height. The second part adds a stepped top to the cylinder, with dimensions of 0.75 units in length, 0.75 units in width, and 0.1744 units in...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2627, 0.2627) .circle(0.2607) .moveTo(0.2627, 0.2627) .circle(0.1745) .extrude(0.6953) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.117188, 0.695312, 0.117188)) # Part 2: join part_2 = ( cq.Workp...
Start by creating a new coordinate system with the specified orientation and position. Draw the first face of the cube with a unique slanted edge. This face is defined by a closed loop of lines that form a specific quadrilateral shape. Once the initial sketch is complete, scale it to the appropriate size and transform ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3619, 0.3191) .lineTo(0.3619, 0.7266) .lineTo(0.6183, 0.7266) .lineTo(0.6183, 0) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 ...
The design involves creating a ring-shaped object with a height of 0.05 units, a width of 0.75 units, and a length of 0.75 units. The process starts by defining a coordinate system and drawing a two-dimensional sketch that consists of two concentric circles. After scaling the sketch to fit the desired dimensions, the s...
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.2118) .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0098/00989858.stl")
The design consists of two cylindrical parts that are combined to form a single, smooth, and uniform object. The first part is a cylinder with a hollow interior and smooth, rounded edges. It has a length and width of 0.3 units and a height of 0.28125 units. The second part is also a cylinder but with a smaller diameter...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.149) .circle(0.1479) .moveTo(0.149, 0.149) .circle(0.1106) .extrude(0.2812) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.46875, 0.015625, 0.015625)) # Part 2: ...
The design involves two main parts: a cylindrical base and a smaller cylindrical top with a central hole. The cylindrical base has a height of 0.5826 units, a length of 0.35806858127109104 units, and a width of 0.35806858127109104 units. This base forms the foundation of the structure. The smaller cylindrical top, whic...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.179, 0.179) .circle(0.1804) .extrude(0.5859) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .moveTo(0.1255, 0.1255) .circle(0.0235) .extrude(0.1641) ) part_2 = pa...
Construct a cylindrical base by first setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch of a single circle on the plane defined by this coordinate system. Scale the sketch to adjust the size, then rotate and translate it to align correctly. Extrude the sketch to fo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.109375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0068/00688461.stl")
The L-shaped CAD model consists of a rectangular base with a smaller rectangular protrusion on top and a small square cutout in the middle. The base forms a ninety-degree angle at the top, and the protrusion aligns with the base. The overall shape resembles an L. The base measures approximately half a unit in length, a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.349) .lineTo(0.3882, 0.349) .lineTo(0.3882, 0.2039) .lineTo(0.1255, 0.2039) .lineTo(0.1255, 0.349) .lineTo(0, 0.349) .close() .extrude(0.25) ) part_1 = part_1.rotat...
The cylindrical object starts with a circular base that is then extruded to form a solid body. The base has a diameter of 0.525, and the object is extruded to a height of 0.75. The overall shape is a simple cylinder with a uniform cross-section throughout its height. The dimensions of the final model are a length of 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2627, 0.2627) .circle(0.2607) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0053/00539453.stl")
The design involves creating a cube with a small protrusion on one of its faces. The cube has a length and width of 0.75 units and a height of 0.0833 units. The protrusion is located on one of the faces and extends outward, adding a small rectangular feature. The overall structure is created by defining several two-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0824) .lineTo(0.0824, 0.0824) .lineTo(0.0824, 0.6676) .lineTo(0, 0.6676) .close() .extrude(0.0859) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0824, 0) .lineTo(0.6676, 0) .lineTo(0.6676,...
The design involves creating a cube with a rectangular cutout. Begin by setting up a new coordinate system with default angles and translations. Draw a complex two-dimensional sketch on the first face, consisting of two loops. The first loop forms an outer boundary, while the second loop creates an inner cutout. After ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3353, 0) .lineTo(0.6706, 0) .lineTo(0.6059, 0.75) .lineTo(0.5294, 0.75) .lineTo(0.5294, 0.6353) .lineTo(0.3353, 0.6353) .lineTo(0.1382, 0.6353) .lineTo(0.0529, 0.6353) .close() .mov...
To create the rectangular plate, start by setting up a new coordinate system with no rotation and a slight translation along the z-axis. Draw a rectangular sketch on the first face, ensuring the sides are parallel to the x and y axes. After drawing the rectangle, scale it down by 75%. Transform the scaled sketch to its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.45, 0) .lineTo(0.45, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00238438.stl")
To create the rectangular box base, start by setting up a new coordinate system with specific angles and translations. Draw a rectangular shape on the first face and scale it down. Transform this scaled rectangle into three-dimensional space and extrude it to form a solid body. The final rectangular box has a length of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.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 = part_1 cq.exporters.export(result, "./stlcq/003...
The model consists of a rectangular base with a smaller rectangular extension. The base is defined by a loop of four lines forming a rectangle, and the extension is created using a loop of six lines to form a more complex shape. After defining the shapes, the entire sketch is scaled down by seventy-five percent and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.25, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0.5, 0.25...
Start by creating a rectangular bar with rounded edges and a flat surface. Begin with a two-dimensional sketch of a rectangle, then scale it down to fit the desired size. Transform this scaled sketch into three-dimensional space and extrude it to create the final shape. The bar has a length of 0.75 units, a width of ap...
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() .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00353111.stl")
Start by creating a rectangular base with a U-shaped protrusion. The base has a length of zero point six eight three six and a width of zero point seven five. A U-shaped cutout is made on one side of the rectangle, creating a smaller rectangular section that extends inward. This section is positioned near the center of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6824, 0) .lineTo(0.6824, 0.75) .lineTo(0.4971, 0.75) .lineTo(0.4971, 0.1882) .lineTo(0.1882, 0.1882) .lineTo(0.1882, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.1875) ) part_1 = part...
Start by creating a new coordinate system with specific Euler angles and a translation vector to position the model correctly. Draw a rectangular face with precise dimensions, then scale the sketch to fit the desired size. Transform the scaled sketch into a three-dimensional object by applying the appropriate rotation ...
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.1797) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.273438, 0)) result = part_1 cq.exporters.export(result, "....
Start by setting up a new coordinate system with specific rotations and translations to position the part correctly. Draw a rectangular shape on the first face, forming a closed loop with four straight lines. After completing the sketch, scale it down to fit the desired size. Transform the scaled sketch into a three-di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3029) .lineTo(0, 0.3029) .close() .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, "./stl...
The design consists of three main parts: a cylindrical base, a hollow cylindrical section, and a smaller hollow cylindrical section. The cylindrical base has a height of 0.75 units, a width and length of 0.2586 units. This base forms the primary structure. The hollow cylindrical section is slightly smaller, with a heig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.129412, 0.129412) .circle(0.128401) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.101961, 0.101961) .circle(0.101164...
The design involves creating two parts. The first part is a pentagonal prism with a flat base and top, and five rectangular sides. The dimensions of this part are approximately 0.75 units in length, 0.73 units in width, and 0.08 units in height. The second part is a cube with a pentagonal top and square base. This part...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2971) .lineTo(0.3559, 0) .lineTo(0.75, 0.2471) .lineTo(0.6353, 0.6971) .lineTo(0.1735, 0.7294) .close() .extrude(0.0859) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0.2151) .lineTo(...
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on the first face, then draw a slightly smaller concentric circle within it. Scale the entire sketch to reduce its size. Transform this scaled sketch into a three-dimensional form. Extrude the sketch along the vertical axis t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0824, 0.0824) .circle(0.0817) .moveTo(0.0824, 0.0824) .circle(0.0798) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0016/00168933.stl")
The cylindrical object is created by first defining a new coordinate system with specific Euler angles and a translation vector. A circular face is drawn and then scaled down. This scaled circle is transformed into a 3D shape by rotating and translating it according to the coordinate system settings. The final step inv...
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.5625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0056/00568133.stl")
Create a cube with smooth edges and flat faces. The cube has a length of 0.6821 units, a width of 0.75 units, and a height of 0.5769 units. Next, construct a square hole in the center of the cube. The hole has a length and width of 0.5306 units and extends through the cube's height of 0.5306 units. The hole is centered...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6824, 0) .lineTo(0.6824, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5781) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5312, 0) .lineTo(0.5312, 0.5312) .li...
The first part involves creating a 3D model with a rectangular base and a curved top. The overall shape resembles an L-shape with a smooth, rounded corner at the top and a flat bottom. The dimensions are 0.75 units in length, 0.375 units in width, and 0.25 units in height. In the second part, a cube is constructed with...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1265, 0) .lineTo(0.1265, 0.1265) .lineTo(0.3765, 0.25) .lineTo(0.75, 0.25) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.25) ) # Part 2: cut part_2 = ( cq.Workplane("XY"...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape on the first face. Scale this shape appropriately and transform it into a three-dimensional object by rotating and translating it. Extrude the shape in both directions along its normal to form a solid...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0172, 0) .lineTo(0.0172, 0.0625) .lineTo(0, 0.0625) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.1875, 0, 0)) result = part...
The design involves constructing a cylindrical base and a cylindrical extension. The base has a height of 0.75 units and a square cross-section with sides measuring 0.07425 units. The extension, which is added to the base, has a height of 0.075 units and a square cross-section with sides measuring 0.0375 units. The bas...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.039216, 0.039216) .circle(0.038909) .moveTo(0.039216, 0.039216) .circle(0.038603) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.039062, 0.75, 0)) # Part 2: join part_2 = ( cq.Workpl...
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 closed loop with five lines that create a unique shape. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1912) .lineTo(0.2647, 0.5176) .lineTo(0, 0.5176) .close() .extrude(0.4375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.4375, 0)) result = part_1 cq.e...
To create a rounded cylindrical base, begin by setting up a new coordinate system with specific rotations and translations. Draw a circle in a two-dimensional sketch, then scale and transform this sketch into three dimensions. Extrude the sketch to form a solid cylindrical shape. The final part has a height of 0.75 uni...
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).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0012/00129530.stl")
To create the rectangular plate, start by setting up a new coordinate system with default angles and translations. Draw a two-dimensional rectangle on the X-Y plane, ensuring it forms a closed loop. Scale the rectangle to reduce its size. Convert the scaled sketch into a three-dimensional object by extruding it along t...
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/0060/00606010.stl")
The design involves creating a rounded rectangular base that forms a cube. The process begins with drawing a rectangular sketch, which is then scaled down to fit the desired dimensions. This sketch is transformed into a three-dimensional object by extruding it along the normal direction. The final part, named Cube, has...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7235, 0) .lineTo(0.7235, 0.75) .lineTo(0, 0.75) .close() .extrude(0.6719) ) result = part_1 cq.exporters.export(result, "./stlcq/0048/00488845.stl")
Create a new coordinate system with specified Euler angles and a translation vector. Draw a two-dimensional sketch of a rectangle on the first face. This rectangle has a length of approximately 0.75 and a width of around 0.32. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3206) .lineTo(0, 0.3206) .close() .extrude(0.4297) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.429688, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system aligned with the global axes. Draw a rectangular base on the first face, forming a closed loop with four straight lines. After drawing the rectangle, scale it down to 75% of its original size. Transform this scaled rectangle into a three-dimensional object by extruding it 0.042...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7088, 0) .lineTo(0.7088, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0083/00834137.stl")
Start by creating a rectangular plate with rounded edges. The plate has a length of 0.75 units, a width of 0.34375 units, and a height of 0.03125 units. Next, add two cylindrical holes to the plate. These holes are positioned near the corners of the plate and have a diameter that fits within the plate's dimensions. The...
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.0312) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0285, 0.0285) .circle(0.0256) .extrude(0.1016) ) part_...
The design involves creating a rectangular prism with a curved edge. Start by setting up a new coordinate system with specific angles and translations. Draw a 2D sketch that forms a rectangle with a curved section on one side. After completing the sketch, scale it down to half its size. Transform this scaled sketch int...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.1804) .threePointArc((0.2961, 0.2784), (0.251, 0.5)) .lineTo(0, 0.5) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result ...