input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design consists of two main parts. The first part is a solid cylinder with a circular base and top. This cylinder has a length of 0.75, a width of 0.75, and a height of 0.4773. The second part involves cutting out a smaller cylindrical section from the first part. The cut-out section has a length of 0.6818, a width...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4766) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.3412, 0.3412) .circle(0.3385) .extrude(0.4141) ) part_2 = part_2.translate((0.03125, 0.03125, 0.0625)) res...
Start by creating a new coordinate system with specific angles and a small translation vector. On the first face, draw a rectangular loop with precise dimensions. Scale this rectangle to a smaller size. Transform the scaled rectangle into three-dimensional space using the predefined rotation and translation settings. E...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0941) .lineTo(0, 0.0941) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
The design involves creating a rectangular base with a protruding section. Start by setting up a new coordinate system and drawing a two-dimensional sketch on the first face. The sketch forms a complex shape with a rectangular base and a protrusion on one side. After completing the sketch, scale it down to fit the desi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2316) .lineTo(0.1679, 0.2316) .lineTo(0.1679, 0) .lineTo(0.4922, 0) .lineTo(0.4922, 0.3262) .lineTo(0.3687, 0.3262) .lineTo(0.3687, 0.3204) .lineTo(0.1756, 0.3204) .lineTo(0.1756, 0.3262) .lineTo(...
The design involves creating a rectangular prism with rounded edges and a curved top surface. The first face features a series of lines and arcs to form a complex shape, while the second face continues this pattern but with a different arrangement of lines and arcs to create the curved top. These two faces are combined...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1265, 0) .threePointArc((0.2088, 0.0176), (0.2765, 0.0618)) .lineTo(0.3118, 0.0971) .threePointArc((0.3588, 0.1676), (0.3765, 0.25)) .lineTo(0.3765, 0.3765) .lineTo(0, 0.3765) .close() .ext...
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. Scale the shape to fit the desired size. Rotate and translate the scaled shape according to the coordinate system settings. Extrude the shape along the normal ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0176) .lineTo(0, 0.0176) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.03125, 0)) result = part_1 cq.exporters.export(result, "./...
The first part consists of a complex three-dimensional shape with a rectangular base and a triangular top. This shape is created by extruding a detailed two-dimensional sketch along the normal direction by zero point one zero five nine units. The dimensions of this part are approximately zero point two seven two two un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6382) .lineTo(0.1971, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.2618) .lineTo(0.25, 0.3265) .lineTo(0.2529, 0.3294) .lineTo(0.2529, 0.6059) .lineTo(0.1118, 0.6059) .lineTo(0.1118, 0.6706) .lineTo(0.2559...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional triangular sketch with a right angle at the top and a base slightly wider than the height. Scale the sketch to reduce its size. Rotate and translate the scaled sketch according to the coordinate system ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .close() .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.046875, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0050/00503255.stl"...
Start by creating a new coordinate system and drawing a two-dimensional sketch on a new face. Draw a circle with a specified center and radius, then apply a scale factor. Extrude the sketch to create a solid cylinder. This cylinder has a smooth surface and rounded edges, with a length and width of approximately 0.31 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1556, 0.1556) .circle(0.1569) .extrude(0.1719) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0706, 0.0706) .circle(0.07) .extrude(0.5781) ) part_2 = part_2.translate((0.085938, 0.085938, 0.171875)) ...
Start by creating a new coordinate system with specific rotations and translations. Draw a square on a new face, then scale this square to a smaller size. Transform the scaled square into a three-dimensional shape by applying the previously defined rotations and translations. Extrude this three-dimensional shape along ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0234, 0) .lineTo(0.0234, 0.0234) .lineTo(0, 0.0234) .close() .extrude(0.75) ) 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 two cylindrical objects. The first object is a larger cylinder with a height of 0.35 units, and both its length and width are also 0.35 units. This cylinder has a smooth surface. The second object is a smaller cylinder with a height of 0.2 units, and both its length and width are 0.1 units....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1765, 0.1765) .circle(0.1751) .extrude(0.3516) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.203125, 0.078125, 0.171875)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
The design consists of three main parts. The first part is a cylindrical object with a hollow center. It has a length and width of approximately 0.4286 units and a height of 0.2357 units. The second part is a smaller cylindrical object placed on top of the first part, adding material to the existing body. This smaller ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2157, 0.2157) .circle(0.214) .moveTo(0.0758, 0.1348) .lineTo(0.2157, 0.0539) .lineTo(0.3539, 0.1348) .lineTo(0.3539, 0.2949) .lineTo(0.2157, 0.3758) .lineTo(0.0758, 0.2949) .close() .extrude(0.2344) ...
The first part of the model is a rectangular prism with a slightly rounded top and bottom and sharp edges. This part has a height of zero point seven five units, a width of zero point four two eight six units, and a length of zero point four two eight six units. The rectangular prism is created by extruding a two-dimen...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4297, 0) .lineTo(0.4297, 0.4297) .lineTo(0, 0.4297) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(res...
Start by creating a new coordinate system and drawing a circle on the first face. Adjust the size of the circle using a scale factor, then rotate and translate the sketch to position it correctly. Extrude the sketch to create a solid cylinder. The final dimensions of the cylinder are approximately 0.75 units in length ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1484) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.148438, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0084/00847941.stl")
The design involves creating a rectangular prism with rounded edges and two sets of cylindrical holes. The rectangular prism has a length of 0.125, a width of 0.075, and a height of 0.75. Two cylindrical holes are then created on one side of the prism, each with a length of 0.7000000000000001, a width of 0.05, and a he...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0123, 0) .lineTo(0.0123, 0.075) .lineTo(0, 0.075) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1127, 0) .lineTo(0.125, 0) .lineTo(0.125, 0.075) .lin...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on the first face, consisting of a single loop with four lines that form a rectangle. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4147) .lineTo(0, 0.4147) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.023438, 0)) result = part_1 cq.exporters.export(result, "....
Create a rounded rectangular base by starting with a new coordinate system and drawing a two-dimensional sketch on a new face. This sketch forms a closed loop with four lines, creating a rectangular shape. After completing the sketch, scale it down to fit the desired size. Transform the scaled sketch into a three-dimen...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7206) .lineTo(0, 0.7206) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0016/00161718.stl")
The design consists of three main parts. The first part is an L-shaped CAD model with a rectangular section and a smaller rectangular protrusion at the top, resembling an L with a slight curve at the bottom. The L-shaped model has a length of 0.75, a width of 0.3343, and a height of 0.1355. The second part is a rectang...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.091176, 0) .lineTo(0.091176, 0.297059) .lineTo(0.658824, 0.297059) .lineTo(0.658824, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.035294) .lineTo(0.697059, 0.035294) .lineTo(0.697059, 0.335294) ...
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on the first face, ensuring it has the correct proportions. Scale the sketch to fit the desired size. Convert the scaled sketch into a three-dimensional model by extruding it along the normal direction. The resulting solid body w...
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.2188) ) result = part_1 cq.exporters.export(result, "./stlcq/0021/00219688.stl")
Start by creating a new coordinate system aligned with the default axes. Sketch a complex shape on the first face, which consists of a rectangle at the bottom and a smaller square at the top. After completing the sketch, scale it down to fit the desired dimensions. Transform this two-dimensional sketch into a three-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5118, 0) .lineTo(0.5118, 0.3735) .lineTo(0.5118, 0.4735) .lineTo(0.5118, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5547) ) result = part_1 cq.exporters.export(result, "./stlcq/0061/00619729....
To construct the rectangular plate, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, creating a rectangle with precise dimensions. After drawing, scale the sketch to reduce its size. Rotate and translate the sketch to align...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4647) .lineTo(0, 0.4647) .close() .extrude(0.0391) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.039062, 0)) result = part_1 cq.exporters.export(result, "....
Construct a rectangular base with rounded edges. Begin by creating a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, forming a closed loop with four lines. Scale the 2D sketch to reduce its size. Transform the scaled 2D sketch into a 3D model by applying a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2147) .lineTo(0, 0.2147) .close() .extrude(0.6406) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.640625, 0)) result = part_1 cq.exporters.export(result, "....
The cylindrical object starts with a new coordinate system and a two-dimensional sketch of a circle. This circle is then scaled and transformed into three-dimensional space. The sketch is extruded in the opposite direction of the normal to form a solid cylinder. The final dimensions of the cylinder are 0.06 units in le...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0314, 0.0314) .circle(0.0311) .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/0076/00763301.stl")
To construct the cylindrical base, start by setting up a new coordinate system with default angles and positions. Draw a circle within a new face, then scale the circle to fit the desired dimensions. Transform the scaled circle into three-dimensional space and extrude it to form a solid cylinder. The final dimensions o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0625) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00504093.stl")
The first part consists of a rectangular box with a flat top and bottom and slightly rounded edges. The box has a length of 0.75 units, a width of 0.5625 units, and a height of 0.1875 units. The structure is created by extruding a two-dimensional sketch of a rectangle along the normal direction to form the three-dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0036/00364427.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch on the plane defined by this coordinate system. Within this sketch, draw a circle and scale it to the desired size. After scaling, rotate and translate the sketch to position it correctly. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0039, 0.0039) .circle(0.0039) .extrude(0.0156) ) 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/0009/00095612.stl")
Start by creating a new coordinate system with specific angles and translations to position the object correctly. Draw a large circle and a smaller concentric circle within the first face to define the outer and inner boundaries of the cylindrical object. Scale the sketch to fit the desired size, then rotate and transl...
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.0441) .extrude(0.0859) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.085938, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The design consists of two main parts. The first part is a rectangular plate with a length of 0.675, a width of 0.75, and a height of 0.015. This plate forms the base of the structure. The second part is a smaller rectangular prism with a length of 0.015, a width of 0.3, and a height of 0.0375. This smaller prism is po...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6765, 0) .lineTo(0.6765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0151, 0) .lineTo(0.0151, 0.2969) .li...
Create a rectangular plate with four circular holes at the corners. The plate has a length of 0.625 units, a width of 0.75 units, and a height of 0.0625 units. The holes are positioned at the corners of the plate and are evenly spaced. The plate is created by extruding a 2D sketch, which includes the rectangular outlin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6265, 0) .lineTo(0.6265, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.1265, 0.1235) .circle(0.0382) .moveTo(0.5, 0.1235) .circle(0.0382) .moveTo(0.1265, 0.6265) .circle(0.0353) .mo...
The design consists of two main parts. The first part is a rectangular box base with a length of zero point five zero one five six two five units, a width of zero point one four zero six two five units, and a height of zero point seven five units. This part is created by extruding a rectangular sketch along the normal ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.1392) .lineTo(0, 0.1392) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0.0625)) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
The part consists of a square plate with a central rectangular hole. The plate has rounded edges and a flat surface. The overall dimensions of the plate are 0.75 units in length and 0.6429 units in width. The thickness of the plate is 0.0121 units. The central hole is rectangular and is positioned in the middle of the ...
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.3324, 0.2794) .lineTo(0.4176, 0.2794) .lineTo(0.4176, 0.3618) .lineTo(0.3324, 0.3618) .close() .extrude(0.0156) ) ...
Create a cylindrical shape with a central hole. Start by defining a new coordinate system with default settings. 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 central hole. Scale the sketch to fit the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1353) .extrude(0.2422) ) result = part_1 cq.exporters.export(result, "./stlcq/0079/00798263.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch on the first face, including a larger circle and a smaller concentric circle. Scale the sketch to reduce its size, and transform it into a three-dimensional object by applying the rotation ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2763, 0.2763) .circle(0.2784) .moveTo(0.2763, 0.2763) .circle(0.0653) .extrude(0.125) ) 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/005...
Start by creating a new coordinate system aligned with the default axes. Draw the first face, which includes an outer square and an inner square. The outer square forms the boundary of the face, while the inner square creates the hollow center. After completing the face, scale the entire sketch to fit the desired dimen...
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.0265, 0.0265) .lineTo(0.7235, 0.0265) .lineTo(0.7235, 0.7235) .lineTo(0.0265, 0.7235) .close() .extrude(0.1875) ) res...
To construct the hollow cylindrical object, start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch featuring two concentric circles. After scaling the sketch, transform it into a three-dimensional object by applying the specified rotation and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0902, 0.0902) .circle(0.0895) .moveTo(0.0902, 0.0902) .circle(0.0564) .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/0080...
Start by creating a rectangular base with a step-like appearance. The base has a unique shape defined by a series of lines that form a stepped outline. After defining the initial shape, scale it down to fit the desired dimensions. The final part is rotated and translated to align with the specified coordinate system. T...
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, ...
Create a rectangular block with two cylindrical holes. The block has a length of 0.75 units, a width of 0.4412 units, and a height of 0.2647 units. The first face of the block contains a rectangular outline and two circular cutouts. The circular cutouts are symmetrically placed along the width of the block, each with a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4412) .lineTo(0, 0.4412) .close() .moveTo(0.5971, 0.2206) .circle(0.0559) .moveTo(0.1559, 0.2206) .circle(0.0559) .extrude(0.2656) ) result = part_1 cq.exporter...
To create a hollow cylindrical object, start by setting up a new coordinate system with specific angles and translations. Draw a two-dimensional sketch consisting of two concentric circles, then scale the sketch to the desired size. Transform this sketch into a three-dimensional shape by applying rotation and translati...
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.1489) .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/0006...
Create a rectangular base with rounded edges by starting with a new coordinate system aligned with the global axes and positioned slightly below the origin. Draw a rectangular sketch on the first face, ensuring that the sides are proportional to the desired dimensions. Scale the sketch to fit the required size and tran...
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.1484) ) part_1 = part_1.translate((0, 0, -0.0625)) result = part_1 cq.exporters.export(result, "./stlcq/0047/00474371.stl")
To create the rectangular block, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional rectangle on the first face. The rectangle is defined by four lines forming a closed loop. After drawing the rectangle, apply a scaling factor to adjust its size...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2294) .lineTo(0, 0.2294) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.226562, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw two concentric circles. The larger circle represents the outer boundary, and the smaller circle defines the inner boundary. Scale the entire 2D sketch to fit the desired size. Rotate and translate the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0157, 0.0157) .circle(0.0156) .moveTo(0.0157, 0.0157) .circle(0.0099) .extrude(0.7109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.023438, 0.007812, 0.007812)) resul...
Construct a thin, elongated rectangular prism with rounded edges. Start by creating a new coordinate system and drawing a two-dimensional sketch on the first face. This sketch forms a rectangle with a length significantly greater than its width. After drawing the sketch, scale it down to fit the desired dimensions. Tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.05) .lineTo(0, 0.05) .close() .extrude(0.0078) ) 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, "...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular face and define its boundaries with four lines to form a closed loop. Scale the rectangle to reduce its size. Rotate and translate the scaled rectangle according to the predefined coordinate system settings. Extrude t...
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.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0.007812)) result = part_1 cq.exporters.export(result, "...
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 2D sketch to the desired size. Transform the 2D sketch into 3D by rotating and translating it according to the specified angles and vectors. Extrude the 2D sketch alo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0353, 0.0353) .circle(0.035) .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/00290979.stl")
The circular flange consists of a primary circular face with several smaller circular cutouts. The main circle has a diameter that is approximately half the length of the flange. Smaller circles are positioned around the main circle, creating a pattern that enhances structural integrity. The flange is then transformed ...
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.1912) .moveTo(0.0676, 0.3735) .circle(0.0294) .moveTo(0.5294, 0.6412) .circle(0.0265) .moveTo(0.5294, 0.1088) .circle(0.0265) .extr...
The design consists of two main parts. The first part is a rectangular base with a vertical extension. This part has a length of approximately 0.75 units, a width of 0.375 units, and a height of 0.25 units. The second part is a triangular cutout on the top face of the first part. This cutout has a length of about 0.25 ...
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.1265, 0.25) .lineTo(0.3765, 0.25) .lineTo(0.75, 0.25) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.25) ) part_1 = part_1.union...
The design involves creating a cylindrical object with two circular holes. Start by setting up a new coordinate system and drawing a two-dimensional sketch that includes a large circle and two smaller circles. The large circle forms the outer boundary of the cylinder, while the two smaller circles define the holes. Aft...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2078, 0.2078) .circle(0.2062) .moveTo(0.2078, 0.2078) .circle(0.0406) .moveTo(0.2078, 0.3475) .circle(0.0211) .extrude(0.2109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.210938, 0.210938, 0)...
The design consists of two main parts: a rectangular prism with cylindrical holes and five cylindrical protrusions. The rectangular prism has a length of 0.75, a width of 0.6, and a height of 0.15. It features several circular holes that are strategically placed within the rectangular face. The second part involves cre...
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() .moveTo(0.1353, 0.45) .circle(0.0765) .moveTo(0.1441, 0.15) .circle(0.0765) .moveTo(0.6176, 0.45) .circle(0.0765) .moveTo(0.61...
Start by creating a new coordinate system and drawing a rectangular shape on the first face. This rectangle will serve as the base of the model. Scale the rectangle to adjust its size, then rotate and translate it to position it correctly. Next, extrude the rectangle in both directions to form a solid block. The final ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) part_1 = part_1.translate((0, 0, 0.125)) result = part_1 cq.exporters.export(result, "./stlcq/0010/00105157.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch that forms a rectangular shape with a curved top. The curved top is defined by an arc, while the sides and bottom are straight lines. Once the sketch is complete, scale it down to 75% of its original size. Transform the scale...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.3735, 0.0676), (0.75, 0)) .lineTo(0.75, 0.45) .lineTo(0, 0.45) .close() .extrude(0.4531) ) result = part_1 cq.exporters.export(result, "./stlcq/0053/00539781.stl")
The design involves creating a cylindrical washer with a central hole. Start by setting up a new coordinate system. On the first face, draw two concentric circles to define the outer and inner boundaries of the washer. Scale the entire sketch to adjust the size. Transform the sketch to position it correctly, then extru...
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.1324) .extrude(0.1094) ) result = part_1 cq.exporters.export(result, "./stlcq/0026/00261447.stl")
The design consists of two main components: a flat washer with a central hole and a cylindrical protrusion. The flat washer has a square profile with a central circular hole. The washer is 0.75 units in length and width, and 0.0515625 units in height. The cylindrical protrusion is positioned slightly offset from the ce...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.376471, 0.376471) .circle(0.373529) .moveTo(0.376471, 0.376471) .circle(0.111765) .extrude(0.054688) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0428, 0.043137) .circle(0.0428) .extrude(0.1...
Start by creating a new coordinate system with specific rotations and translations to align the model correctly. Draw a rectangular shape in a two-dimensional sketch, ensuring it forms a closed loop. Scale this sketch to adjust its size appropriately. Convert the scaled sketch into a three-dimensional form and position...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5353, 0) .lineTo(0.5353, 0.75) .lineTo(0, 0.75) .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 that are assembled to form a complex structure. The first part is a cube-shaped object with a length and width of approximately 0.42 meters and a height of about 0.59 meters. This part serves as the base of the structure. The second part is a smaller cube with similar dimensions but a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4219, 0) .lineTo(0.4219, 0.4219) .lineTo(0, 0.4219) .close() .moveTo(0.0414, 0.0414) .lineTo(0.3805, 0.0414) .lineTo(0.3805, 0.3805) .lineTo(0.0414, 0.3805) .close() .extrude(0.5859...
The square bracket consists of four main faces that form its structure. The first face has a trapezoidal shape with a small rectangular cutout. The second face includes a larger rectangular section with two circular holes. The third face is a trapezoid that connects the top edges of the first and second faces. The four...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.6353, 0.1029) .lineTo(0.0912, 0.1029) .close() .extrude(0.1875) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0912, 0.1029) .lineTo(0.0912, 0.5676...
The first part involves creating a cylindrical base with a height of 0.75 units, a length of 0.1875 units, and a width of 0.1875 units. The second part involves creating a cylindrical cutout with a height of 0.375 units, a length of 0.05625 units, and a width of 0.05625 units. The cutout is positioned within the larger...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0275, 0.0275) .circle(0.0272) .extrude(0.375) ) part_2 = part_2.rotate((0, 0, 0), (1, 0, 0), -178.5937).trans...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a single face and within it, draw a single loop containing a circle. Scale the 2D sketch and then rotate and translate it according to the coordinate system settings. Extrude the 2D sketch along the normal direction to f...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./stlcq/0081/00813026.stl")
Construct a rectangular block with a flat top and bottom and straight edges. The block's dimensions include a length of 0.525 units, a width of 0.12 units, and a height of 0.048 units. The block is created by defining a two-dimensional sketch on a face, scaling it, transforming it into three dimensions, and then extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5234, 0) .lineTo(0.5234, 0.1191) .lineTo(0, 0.1191) .close() .extrude(0.0469) ) part_1 = part_1.translate((0.109375, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0041/00417314.stl")
Construct a cylindrical base by creating a new coordinate system aligned with the default axes. Draw a circle on a flat face, centering it at coordinates (0.375, 0.375) and setting the radius to 0.375. Scale the circle to fit the desired size. Transform the scaled circle into a three-dimensional shape by extruding it a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00574463.stl")
To create a star-shaped object, start by setting up a new coordinate system with default Euler angles and translation vectors. Draw a series of triangular faces that form the outline of a star. These faces are arranged to create a symmetrical and balanced design. Once the sketch is complete, scale it down to 75% of its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0.2529) .lineTo(0.1912, 0.3765) .close() .extrude(0.0469) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0059, 0.5) .lineTo(0.1912, 0.3765) .lineTo(0.2529, 0.5) .close() ...
Start by creating a rectangular plate with a circular hole at one corner. The plate has a length slightly over 0.66 units, a width just over 0.75 units, and a thickness of about 0.0026 units. The circular hole is positioned near one corner of the plate, providing a small cutout. This part is designed to be a thin, flat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6618, 0) .lineTo(0.6618, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0824, 0.0794) .circle(0.0441) .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0018/00188987.stl")
The first part involves creating a cylindrical object with a central hole and four smaller holes. The main body has a length and width of 0.75 units and a height of 0.075 units. The central hole runs through the center, and four smaller holes are evenly distributed around it. The second part involves creating four smal...
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.15) .extrude(0.0781) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.15) .moveTo(0.3765, 0.3765) .circle(...
The first intermediate part is a rectangular prism with rounded edges and a flat top. This part is created by defining a new coordinate system and drawing a complex two-dimensional sketch that outlines the base of the prism. The sketch is then scaled down, rotated, and translated to its final position. Finally, the ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0559) .lineTo(0, 0.1353) .lineTo(0.75, 0.1353) .lineTo(0.75, 0.0559) .lineTo(0.7471, 0.0559) .lineTo(0.7471, 0.0029) .lineTo(0.4147, 0.0029) .lineTo(0.4147, 0) .lineTo(0.3353, 0) .lineTo(0.3353, 0...
The design involves creating a cylindrical object with a hollow center. Start by establishing a new coordinate system. Draw two concentric circles on a single face, with the outer circle being larger than the inner one. Scale the entire 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.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2382) .extrude(0.3203) ) result = part_1 cq.exporters.export(result, "./stlcq/0064/00645453.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangular sketch on a new face. The rectangle has a length slightly less than 0.75 units and a width slightly less than 0.564 units. After drawing the rectangle, scale it down to fit within the desired dimensions. Transfor...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5647) .lineTo(0, 0.5647) .close() .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0016/00163964.stl")
The L-shaped CAD model consists of a rectangular section and a smaller, parallel section extending from it. The rectangular section is longer than the parallel section. The model has a total length of approximately 0.0387 units, a width of around 0.0513 units, and a height of 0.75 units. The sections are aligned to for...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.005147) .lineTo(0, 0.054688) .lineTo(0.000429, 0.054688) .lineTo(0.000429, 0.005576) .lineTo(0.034314, 0.005576) .lineTo(0.041176, 0.000429) .lineTo(0.040962, 0) .lineTo(0.034099, 0.005147) .close() ...
To create the cylindrical base, start by defining a new coordinate system with no rotation or translation. Draw a circle on a single face, ensuring the circle is centered at [0.375, 0.375] with a radius of 0.375 units. Scale the circle to reduce its size by 25%. Transform the scaled circle into a three-dimensional obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .extrude(0.1562) ) result = part_1 cq.exporters.export(result, "./stlcq/0077/00779989.stl")
Construct a long, slender rectangular prism with slightly rounded top and bottom edges. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, creating a rectangle with precise dimensions. After scaling the sketch, transform it into 3D space ...
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 three main parts that form a complex cylindrical structure. The first part is a cylindrical base with a length of 0.75, a width of 0.75, and a height of 0.28125. This base has a slightly concave top surface. The second part is a central cylindrical hole that is 0.675 in length, 0.675 in width, an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2812) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.3373, 0.3373) .circle(0.3346) .extrude(0.2422) ) part_2 = part_2.translate((0.039062, 0.039062, 0.039062)) ...
Create a new coordinate system and draw a two-dimensional sketch on the first face. The sketch consists of a hexagon with a circle inside it. After completing the sketch, scale it down and transform it into three dimensions. Extrude the transformed sketch to create a solid body. The resulting shape is a cylinder with a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0708) .lineTo(0.1169, 0) .lineTo(0.237, 0.0654) .lineTo(0.2391, 0.2027) .lineTo(0.1222, 0.2734) .lineTo(0.0032, 0.208) .close() .moveTo(0.1201, 0.1373) .circle(0.1062) .extrude(0.75) ) part_1 = pa...
The design consists of two main parts. The first part is a rectangular box with rounded edges, featuring a flat top and bottom and four vertical sides. The box has a slight curvature on its edges, with a length of 0.75, a width of 0.5775, and a height of 0.3. The second part is a cube with a rectangular top and bottom ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0176) .threePointArc((0.0059, 0.0059), (0.0176, 0)) .lineTo(0.7324, 0) .threePointArc((0.7441, 0.0059), (0.75, 0.0176)) .lineTo(0.75, 0.5588) .threePointArc((0.7441, 0.5706), (0.7324, 0.5765)) .lineTo(0.0176,...
The cylindrical base with a rectangular top and a central hole is constructed by creating a new coordinate system and drawing a two-dimensional sketch on the first face. The sketch consists of an outer loop defined by an arc and several lines, forming a rectangular shape with a small cutout. Inside this shape, a circul...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.55) .threePointArc((0.1882, 0), (0.3765, 0.55)) .lineTo(0.3765, 0.7294) .lineTo(0.3235, 0.7294) .lineTo(0.3235, 0.75) .lineTo(0.05, 0.75) .lineTo(0.05, 0.7294) .lineTo(0, 0.7294) .close() .moveTo(...
The first part involves creating a cube with a height, width, and depth of 0.75 units. The second part involves creating a cylindrical hole that cuts through the cube, with a height, width, and depth of 0.15, 0.15, and 0.0375 units, respectively. The third part involves creating two additional cylindrical holes that al...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .extrude(0.0391) ) part_2 = pa...
The design consists of two main parts. The first part starts with creating a rectangular prism with rounded corners. The dimensions of this part are approximately 0.34 units in length, 0.30 units in width, and 0.75 units in height. The second part involves constructing a rectangular box, which is then joined with the f...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.335938, 0) .lineTo(0.335938, 0.223958) .lineTo(0.168627, 0.29905) .lineTo(0, 0.223958) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.226562, 0.75, 0)) # P...
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on the first face, then draw a smaller concentric circle within it to define the central hole. Scale the entire sketch to reduce its size, then transform it to its final position without altering its orientation. Extrude the ...
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.0176) .extrude(0.0703) ) result = part_1 cq.exporters.export(result, "./stlcq/0025/00250107.stl")
Start by creating a new coordinate system with default settings. Draw a rectangular base on a new face, ensuring it has a length of approximately 0.75 units and a width of about 0.54 units. Scale this rectangle to fit the desired dimensions. Extrude the rectangle 0.32 units along the normal direction to form a solid re...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5412) .lineTo(0, 0.5412) .close() .extrude(0.3203) ) result = part_1 cq.exporters.export(result, "./stlcq/0006/00062224.stl")
The rectangular plate is created by drawing a two-dimensional sketch that forms a loop with four lines. This sketch is then scaled down and transformed into a three-dimensional shape. The shape is extruded to create a solid body with a flat surface and rounded corners. The final dimensions of the rectangular plate are ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5265, 0.0706) .lineTo(0.5265, 0.75) .lineTo(0, 0.7353) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0063/00635255.stl")
The design consists of two parts that are assembled to form a complex shape. The first part is a simple, symmetrical L-shaped structure. It has a length of approximately 0.75 units, a width of about 0.57 units, and a height of around 0.026 units. This part forms the base of the assembly. The second part is a triangle-...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0588, 0) .lineTo(0.3765, 0.5471) .lineTo(0.6912, 0) .lineTo(0.75, 0) .lineTo(0.4206, 0.5735) .lineTo(0.3294, 0.5735) .close() .extrude(0.0234) ) # Part 2: join part_2 = ( cq.Workplane(...
The first part involves creating a rectangular prism with rounded edges and corners. The initial coordinate system is rotated and translated to position the part correctly. A rectangular face is drawn and scaled down to half its original size. This 2D sketch is then transformed into 3D by rotating and translating it, a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo...
The first part involves creating a cylindrical object with a rectangular cutout. Start by setting up a new coordinate system with specific Euler angles and a translation vector. The first face includes two loops of arcs and lines that form a complex, curved shape. After drawing the sketch, scale it down and transform i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0676, 0.4735) .threePointArc((0, 0.2324), (0.1, 0)) .lineTo(0.65, 0) .threePointArc((0.75, 0.2824), (0.6088, 0.55)) .lineTo(0.3382, 0.5118) .threePointArc((0.2765, 0.4618), (0.2059, 0.4941)) .close() .moveTo...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular sketch on a new face, ensuring it forms a closed loop. Transform this sketch into three-dimensional space by applying the necessary rotations and translations. Extrude the sketch in both directions to create a solid b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0859, 0) .lineTo(0.0859, 0.0859) .lineTo(0, 0.0859) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "...
The first part of the design involves creating a cylindrical washer with a central hole. This part has a length and width of approximately 0.589 units and a height of 0.1178 units. The second part is a ring-shaped object with a central hole, measuring about 0.432 units in length and width and 0.039 units in height. The...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2941, 0.2941) .circle(0.2918) .moveTo(0.2941, 0.2941) .circle(0.1149) .extrude(0.1172) ) 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") .mo...
Begin by setting up a new coordinate system with specific angles and translations. Then, draw a two-dimensional rectangle on the first face. This rectangle will be transformed into a three-dimensional object by applying a scale factor, rotating it, and translating it. The rectangle will then be extruded to create a sol...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4353, 0) .lineTo(0.4353, 0.75) .lineTo(0, 0.75) .close() .extrude(0.3672) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.367188, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with the specified settings. On the first face, draw a continuous S-shaped curve that forms a closed loop. Inside this loop, draw two smaller circles, one near each end of the S-shape. Scale the entire two-dimensional sketch to reduce its size. Transform the sketch into a three...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1735, 0) .threePointArc((0.3735, 0.0294), (0.5765, 0)) .threePointArc((0.75, 0.1294), (0.5765, 0.2588)) .threePointArc((0.3765, 0.2265), (0.1735, 0.2588)) .threePointArc((0, 0.1294), (0.1735, 0)) .close() .moveT...
The design involves creating a cylindrical part with a central hole. The cylinder has a square base with sides measuring 0.75 units and a height of 0.1286 units. The outer diameter of the cylinder is 0.75 units, while the inner diameter of the central hole is approximately 0.2572 units. The part is created by extruding...
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.1265) .extrude(0.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0000/00005564.stl")
The rounded rectangular base is constructed by creating a new coordinate system with specific Euler angles and a translation vector. A two-dimensional sketch is drawn on the first face, forming a single loop with eight curves, including arcs and lines. This sketch is then scaled down and transformed into a three-dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0706) .threePointArc((0.0206, 0.0206), (0.0706, 0)) .lineTo(0.6794, 0) .threePointArc((0.7294, 0.0206), (0.75, 0.0706)) .lineTo(0.75, 0.6588) .threePointArc((0.7294, 0.7088), (0.6794, 0.7294)) .lineTo(0.0706,...
Create a washer with a central hole by starting with a square base that measures 0.75 units by 0.75 units. Within this base, define the outer boundary of the washer as a larger circle and the inner boundary as a smaller concentric circle. These circles are then scaled down to fit within the square base. The washer is t...
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.1706) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0068/00685025.stl")
The first part involves creating a rectangular prism with rounded edges. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two loops on the first face. After scaling the sketch, transform it into three dimensions by applying the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.039062, 0) .lineTo(0.039062, 0.039062) .lineTo(0, 0.039062) .close() .moveTo(0.000919, 0.000919) .lineTo(0.038143, 0.000919) .lineTo(0.038143, 0.038143) .lineTo(0.000919, 0.038143) .clo...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape in a two-dimensional sketch. Scale this sketch to the desired size and transform it into a three-dimensional object by applying the previously set rotations and translations. Extrude the transformed sketch to cr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1641, 0) .lineTo(0.1641, 0.1641) .lineTo(0, 0.1641) .close() .extrude(0.0703) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "....
The first part of the design involves creating a rectangular base. Begin by setting up a new coordinate system with default angles and translations. Then, draw a two-dimensional rectangular sketch on the first face. This rectangle is scaled down by 75% to achieve the desired size. The rectangle is then extruded 0.2163 ...
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.2188) ) result = part_1 cq.exporters.export(result, "./stlcq/0021/00219835.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a rectangular shape with rounded edges. Scale the sketch to achieve the desired size. Transform the scaled sketch into three dimensions by applying the rotation and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0169, 0) .lineTo(0.0169, 0.0345) .lineTo(0.0193, 0.0345) .lineTo(0.0193, 0.0391) .lineTo(0, 0.0391) .close() .extrude(0.6875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0)...
The design consists of two parts. The first part is a rectangular box with a length of 0.5, a width of 0.75, and a height of 0.1673. This part is created by drawing a rectangular sketch, scaling it, and then extruding it to form a solid body. The second part is a rectangular cutout with a length of 0.4424, a width of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1641) ) part_1 = part_1.translate((0.125, 0, 0.007812)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.44...
To create a rounded cylindrical object, start by setting up a new coordinate system with specific rotations and translations. Draw two circles on separate faces, ensuring they are aligned vertically. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0566, 0.0566) .circle(0.0566) .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.459, 0.0566) .circle(0.0566) .extrude(0.375) ) 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. Then, draw a two-dimensional sketch consisting of two concentric circles. Apply a scaling factor to the sketch and transform it into a three-dimensional object using the coordinate system settings. Extrude the transformed ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2765) .extrude(0.0859) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.085938, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with specific angles and translations. Then, draw a two-dimensional sketch of a rectangle on the defined plane. This rectangle will serve as the base for the first face. After completing the sketch, apply a scaling factor to adjust its size. Transform the scaled sketch into a t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0547, 0) .lineTo(0.0547, 0.0182) .lineTo(0, 0.0182) .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 square plate is constructed by creating a two-dimensional sketch of a square on a flat surface. This sketch is then scaled down and transformed into a three-dimensional object. The final extrusion process gives the plate its thickness. The plate has a square shape with rounded edges and a flat surface. It measures ...
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.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0007/00078824.stl")
Start by creating a new coordinate system aligned with the global axes and translated slightly along the X-axis. In the first face, draw a circle and an arc connected by a line to form a closed loop. Scale this sketch to reduce its size, then transform it into a three-dimensional object. Extrude the sketch along the no...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1688, 0.2118) .circle(0.1671) .moveTo(0.1688, 0) .threePointArc((0.1572, 0.4219), (0.1903, 0.0017)) .close() .extrude(0.75) ) part_1 = part_1.translate((0.046875, 0, 0)) result = part_1 cq.exporters.export(result,...
Start by creating a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch on the first face, forming a quadrilateral with specific vertices. Scale this sketch to reduce its size. Transform the scaled sketch into three dimensions by applying the previously defined rotations and tr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.2735, 0.6824) .lineTo(0, 0.6824) .close() .extrude(0.4062) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.40625, 0)) result = part_1 cq.exporters.export(result, "...
Start by creating a new coordinate system with the origin slightly elevated from the default plane. Draw a rectangular shape on the first face, ensuring it forms a closed loop. Scale the rectangle to a smaller size while maintaining its proportions. Transform this scaled rectangle into a three-dimensional object by app...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0007/00074221.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape in a two-dimensional sketch, then scale this rectangle down to seventy-five percent of its original size. Transform the scaled rectangle into a three-dimensional object by rotating and translating it according t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3059) .lineTo(0, 0.3059) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.03125, 0)) result = part_1 cq.exporters.export(result, "./...
The design consists of two main parts. The first part is a rectangular prism with rounded edges, measuring 0.75 units in length, 0.57 units in width, and 0.02 units in height. This part is created by extruding a two-dimensional sketch along the normal direction. The second part is a rectangular cutout, also measuring 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0971, 0) .lineTo(0.6765, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0794) .lineTo(0.75, 0.5706) .lineTo(0, 0.5706) .lineTo(0, 0.1) .close() .extrude(0.0234) ) part_1 = part_1.rotate((0, 0, 0),...