input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The first rectangular column is designed with a rectangular cross-section. The base of the column is created by drawing a rectangle and then transforming it into a three-dimensional object. The column is rotated and translated to position it correctly in space. The final dimensions of the column are approximately 0.058...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0588, 0) .lineTo(0.0588, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1719) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.171875, 0)) result = part_1 cq.exporters.export(result, "....
The design involves creating a rectangular base with vertical extensions. The base is defined by a complex 2D sketch that includes several lines forming a unique shape. After the initial sketch, the entire design is scaled down by 75%. The 2D sketch is then transformed into a 3D model by extruding it along the normal d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0059, 0) .lineTo(0.0059, 0.1088) .lineTo(0.6294, 0.2) .lineTo(0.6294, 0) .lineTo(0.6324, 0) .lineTo(0.6324, 0.2059) .lineTo(0.6324, 0.4324) .lineTo(0.75, 0.5059) .lineTo(0.75, 0.5118) ...
Start by creating a new coordinate system and setting up the initial position and orientation. Then, draw a rectangular shape on a new face. This rectangle has a length of zero point seven-five units and a width of zero point four-one-six-seven units. Transform this shape to align it correctly in space. Finally, extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4176) .lineTo(0, 0.4176) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
The object is a cube with a rectangular cutout in the center. The cutout aligns with the top and bottom faces, creating a U-shaped depression. The cube measures zero point seven five units in height, width, and depth. The cutout is centered and extends through the entire height of the cube, leaving a uniform thickness ...
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.75, 0.75) .lineTo(0.5, 0.75) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part...
Construct a cylindrical object by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two concentric circles on the first face. Scale the sketch to the desired size and transform it into three dimensions. Extrude the sketch to create a solid ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1333, 0.1333) .circle(0.1323) .moveTo(0.1333, 0.1333) .circle(0.126) .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/00...
The design involves creating a cylindrical object that starts with setting up a new coordinate system and drawing a two-dimensional sketch. This sketch consists of two concentric circles, which are then scaled down and transformed into three dimensions. The transformed sketch is extruded to form the cylindrical shape. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0392, 0.0392) .circle(0.0389) .moveTo(0.0392, 0.0392) .circle(0.0374) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0061...
The design consists of two main parts. The first part features a rectangular base with a length of 0.45 units, a width of 0.75 units, and a height of 0.171 units. This part is positioned with a specific orientation and location defined by the coordinate system. The second part is a protruding section that extends from ...
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.1719) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.515625, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
Construct a ring-shaped object with a central hole and a flat, circular base. Start by creating a new coordinate system aligned with the default axes. Draw two concentric circles on the first face, forming a ring. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional shape by ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1971) .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00908915.stl")
Create a rectangular base that forms the foundation of the cylindrical object. The base has a rectangular top with a slight protrusion and a flat bottom. The overall shape of the object is a cylinder with a rectangular cross-section. The length of the base is 0.75 units, the width is 0.0577 units, and the height is 0.0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0588) .lineTo(0, 0.0588) .close() .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0046/00468201.stl")
Start by setting up a new coordinate system with specific angles and translations. Draw a 2D sketch on the first face, forming a closed loop with several connected lines. This sketch will serve as the base for the 3D model. After completing the sketch, scale it to fit the desired size. Transform the scaled sketch into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0463, 0) .lineTo(0.0463, 0.0761) .lineTo(0.1853, 0.2338) .lineTo(0.2504, 0.2338) .lineTo(0.2504, 0.2812) .lineTo(0.1632, 0.2812) .lineTo(0, 0.0938) .close() .extrude(0.75) ) part_1 = pa...
The cylinder is constructed by creating a new coordinate system with specific Euler angles and a translation vector. A two-dimensional sketch of a circle is drawn and then scaled down. This scaled sketch is transformed into three dimensions and extruded to form a solid body. The final dimensions of the cylinder are a l...
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/0026/00264558.stl")
The first part involves creating a cylinder with a slightly curved top surface and a flat bottom surface. Start by defining a new coordinate system with specific Euler angles and a translation vector. Draw a circular sketch on a new face and scale it down. Transform this sketch into three dimensions by applying the def...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .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/0015/00152058.stl")
The part is a cylindrical object with smooth surfaces and rounded edges. It has a circular top and bottom, and straight sides. The dimensions of the part are a length and width of approximately 0.63 units and a height of 0.75 units. The part is created by extruding a scaled and translated two-dimensional sketch, which ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3176, 0.3176) .circle(0.3152) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0086/00865789.stl")
To create a curved, hollow, u-shaped structure, start by defining a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two identical faces, each with a closed loop made up of arcs and lines. Once the sketch is complete, scale it down and transform it i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.0303, 0.7031), (0.466, 0.1489)) .lineTo(0.3888, 0.1958) .threePointArc((0.0579, 0.6176), (0.0358, 0.0827)) .close() .extrude(0.25) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0,...
The design involves creating a semi-circular flat shape. First, establish a new coordinate system with no rotation and a slight translation. Draw a 2D sketch on the first face, forming a single loop with several arcs and lines to create a semi-circular outline. Scale the sketch to fit the desired size and transform it ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5765) .threePointArc((0.0324, 0.3412), (0.1353, 0.1235)) .threePointArc((0.3735, 0), (0.6147, 0.1235)) .threePointArc((0.7176, 0.3412), (0.75, 0.5765)) .threePointArc((0.7382, 0.6029), (0.7147, 0.6118)) .lineTo(0...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular shape and add four smaller circular cutouts within it. Apply a scaling factor to the entire sketch to adjust its size. Transform the sketch into a three-dimensional object by rotating and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6265) .lineTo(0, 0.6265) .close() .moveTo(0.2882, 0.3147) .circle(0.0147) .moveTo(0.4618, 0.3147) .circle(0.0147) .moveTo(0.0382, 0.3147) .circle(0.0147) ...
The model consists of a rectangular plate with rounded corners and a central circular hole. The plate has a length of approximately 0.75 units, a width of about 0.43 units, and a height of around 0.0145 units. The central hole is positioned near one corner of the plate, contributing to its unique shape. The overall str...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0471, 0.1676) .threePointArc((0, 0.2176), (0.0471, 0.2647)) .lineTo(0.0765, 0.2647) .lineTo(0.0765, 0.4353) .lineTo(0.75, 0.4353) .lineTo(0.75, 0) .lineTo(0.0765, 0) .lineTo(0.0765, 0.1676) .close() ...
The design consists of two main parts. The first part is a cylindrical base with a slightly concave top surface. It has a height of 0.125 and a diameter of 0.3611. The second part is a cylindrical extension with a central hole. This extension has a height of 0.625 and a diameter of 0.2083. Both parts are aligned along ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1804, 0.1804) .circle(0.179) .extrude(0.125) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .moveTo(0.1059, 0.1059) .circle(0.0521) .extrude(0.625) ) part_2 = par...
The design consists of two main parts: a cylindrical ring and a cylindrical object. The cylindrical ring has a flat circular cross-section and a smooth, continuous surface. It measures 0.75 units in length and width and 0.0857 units in height. The cylindrical object has a smooth surface with rounded edges, an open circ...
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.2882) .extrude(0.0859) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2863, 0.2863) .circle(0.284) .moveTo(0.2863, 0.2863) ....
The design consists of four main parts. The first part is a cylindrical base with a height of approximately 0.089 units, a width and length of about 0.75 units. This base forms the foundation of the structure. The second part is a smaller cylindrical section that sits on top of the base, with a height of around 0.142 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0859) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.085938, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1294, 0.1294) .circle(0.1284) ...
Start by creating a rectangular base with a curved top and a slot for paper. The base has a complex outline that includes a curved section at one end and a straight edge with a slot cutout. After defining the initial 2D sketch, scale it down to fit the desired size. Transform the 2D sketch into a 3D model by rotating a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0291, 0.2241) .threePointArc((0, 0.0815), (0.1222, 0)) .lineTo(0.4133, 0) .lineTo(0.4133, 0.0466) .lineTo(0.5064, 0.0466) .lineTo(0.5064, 0.0931) .lineTo(0.6491, 0.0931) .lineTo(0.6491, 0) .lineTo(0.7422...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the defined plane, forming a rectangle. Scale the sketch to reduce its size, then rotate and translate it to position it correctly. Extrude the scaled and positioned sketch to create a three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2029) .lineTo(0, 0.2029) .close() .extrude(0.4219) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.421875, 0)) result = part_1 cq.exporters.export(result, "....
The design involves creating a rectangular base with a vertical extension. Start by setting up a new coordinate system with specific angles and no translation. Draw a two-dimensional sketch that forms a complex rectangle with a smaller section cut out. Scale this sketch to fit the desired size. Transform the scaled ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1176) .lineTo(0.1588, 0.1176) .lineTo(0.1588, 0.2765) .lineTo(0, 0.2765) .close() .extrude(0.4141) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.4140...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a single circle and apply a scaling factor to adjust its size. Transform the scaled two-dimensional sketch into a three-dimensional object by rotating and translating it according to the specified para...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.149, 0.1479) .circle(0.149) .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/0056/00567321.stl")
Start by creating a new coordinate system with the Euler angles set to zero and a translation vector of (0.0, 0.0, 0.375). Draw the first two-dimensional sketch on the first face, which consists of two concentric circles. The outer circle has a larger radius, and the inner circle has a slightly smaller radius. On the s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .moveTo(0.2824, 0.2824) .circle(0.2713) .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2713) .extrude(0.375) ) part_1 = part_1...
The design involves creating a cube with slightly rounded top and bottom surfaces. The cube has a length and width of 0.5625 units and a height of 0.75 units. The cube is formed by extruding a two-dimensional square sketch into a three-dimensional solid. The rounded edges give the cube a smoother appearance when viewed...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5625, 0) .lineTo(0.5625, 0.5625) .lineTo(0, 0.5625) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0043/00435657.stl")
The design involves creating a circular wheel with a central hub and four radial spokes. The wheel is constructed by defining six faces, each with specific geometric shapes such as circles, lines, and arcs. The first face consists of two concentric circles, while the second face includes a combination of lines and arcs...
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.3265) .extrude(0.1094) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.05, 0.3529) .lineTo(0.2529, 0.35) .threePointArc((0.25, 0.3765...
Start by creating a new coordinate system with specific rotations and translations. Draw two concentric circles on the first face and a single circle on the second face. Scale the entire sketch to reduce its size, then rotate and translate it to position it correctly. Extrude the sketch to form a 3D cylindrical shape, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0706, 0.0706) .circle(0.07) .moveTo(0.0706, 0.0706) .circle(0.0585) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0706, 0.0706) .circle(0.0585) .extrude(0.75) ) part_1 = part_1.rot...
Create a new coordinate system with specified Euler angles and a translation vector. Draw a circular two-dimensional sketch and scale it appropriately. Transform this sketch into three dimensions using the defined coordinate system. Extrude the sketch to form a solid cylindrical object with a smooth surface and rounded...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0784, 0.0784) .circle(0.0778) .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/0008/00089706.stl")
Start by creating a new coordinate system and drawing a square on a new face. The square has sides of 0.75 units. Transform this square into a three-dimensional shape by extruding it 0.03 units downward, resulting in a solid square plate. Next, create another coordinate system and draw a circle on a new face. The circl...
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.0312) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.2549, 0.2549) .circle(0.2529) .extrude(0.0312) ) part_2 = ...
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular sketch on a new face, ensuring the dimensions are proportional to the desired final shape. After drawing the rectangle, scale it down to fit the required dimensions. Transform the scaled sketch into a three-dimensional object by...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3706) .lineTo(0, 0.3706) .close() .extrude(0.2734) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00625537.stl")
The circular plate features a central hole and consists of a flat surface with smooth edges. The plate is created by extruding a circular shape with a smaller concentric hole. The final dimensions of the plate are approximately 0.75 units in length and width, and 0.03125 units in height. These individual parts are comb...
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.0353) .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0038/00382031.stl")
The first part is a rectangular prism with a curved cutout on one of its sides. The cutout is located on the top surface and extends halfway down the object. The dimensions are length 0.75, width 0.5, and height 0.125. The second part is a rectangular prism with a triangular cutout on one of its faces. The cutout is lo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0.5941, 0.1882) .threePointArc((0.5324, 0.25), (0.5941, 0.3118)) .lineTo(0.75, 0.3118) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.125) )...
The design involves creating a circular flange with two symmetrically placed holes and a slightly raised rectangular top with rounded edges. The flange has a central large hole and two smaller holes on either side. The raised rectangular top is positioned centrally on the flange and has rounded edges. The entire struct...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0647, 0.1235) .lineTo(0.2794, 0.0206) .threePointArc((0.3765, 0), (0.4706, 0.0206)) .lineTo(0.6853, 0.1235) .threePointArc((0.75, 0.2235), (0.6853, 0.3265)) .lineTo(0.4706, 0.4294) .threePointArc((0.3765, 0.45),...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular two-dimensional sketch on the first face, forming a closed loop. After completing the sketch, scale it down to 75% of its original size. Transform this scaled sketch into a three-dimensional object by applying the sam...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1529, 0) .lineTo(0.1529, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.039062, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional sketch of a rectangle on the first face. The rectangle has a length slightly less than 0.75 units and a width slightly less than 0.72 units. Scale this sketch to reduce its size. Transform the scaled sketch into 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.7206) .lineTo(0, 0.7206) .close() .extrude(0.1797) ) result = part_1 cq.exporters.export(result, "./stlcq/0049/00494824.stl")
The construction of the rectangular base begins with setting up a new coordinate system. The system is rotated by negative ninety degrees around the third axis and translated 0.2449 units along the second axis. A two-dimensional sketch is then drawn on the first face, forming a rectangle. This rectangle is scaled down ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7441) .lineTo(0, 0.7441) .close() .extrude(0.2422) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.242188, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific rotational and translational settings. Draw a two-dimensional sketch that forms a complex rectangular shape with internal cutouts. Transform this sketch into three-dimensional space using the predefined coordinate system settings. Extrude the transformed sketch to...
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 new coordinate system and draw a circular face centered at a specific point. Scale the 2D sketch to the required size and then extrude it along the normal direction to form a solid cylindrical object. The cylinder has a uniform cross-section and a height of 0.75 units. The width and length of the base are equa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.0118) .circle(0.0117) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0000/00001717.stl")
The design consists of two rectangular plates, each with unique features. The first plate has rounded corners and measures approximately 0.306 units in length, 0.750 units in width, and 0.021 units in height. This plate is created by extruding a two-dimensional sketch along the normal direction. The second plate has ro...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3059, 0) .lineTo(0.3059, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0234) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2649, 0) .lineTo(0.2649, 0.7109) .li...
Start by creating a new coordinate system and then draw a two-dimensional sketch on the plane defined by this system. The sketch outlines a rectangular shape. After completing the sketch, transform it into a three-dimensional model by extruding it along the normal direction. The resulting solid has a rectangular cross-...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4922, 0) .lineTo(0.4922, 0.0154) .lineTo(0, 0.0154) .close() .extrude(0.2578) ) part_1 = part_1.translate((0.132812, 0.648438, 0.125)) result = part_1 cq.exporters.export(result, "./stlcq/0097/009735...
The first part consists of two L-shaped brackets that are scaled and transformed into a 3D object. The brackets are extruded 0.75 units in the direction of the normal to form a solid body with a length of 0.4733785, a width of 0.13288725, and a height of 0.75. The second and third parts are cubes with rounded edges and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0243, 0) .lineTo(0.0243, 0.0542) .lineTo(0.0916, 0.1159) .lineTo(0.0748, 0.1364) .lineTo(0, 0.0654) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.385, 0....
The part consists of a rectangular prism with a triangular cutout. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a quadrilateral shape. This sketch is then scaled down and transformed into three dimensions by applying a rotation...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4147) .lineTo(0.75, 0) .lineTo(0.75, 0.0882) .lineTo(0, 0.5647) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) result = part_1 cq.exporters.export(resul...
The part is a rectangular box with a flat top and bottom, and four vertical sides. The box has a slight curvature on its edges, giving it a smooth appearance. The dimensions of the box are designed to fit specific requirements, with a length of 0.5 units, a width of 0.75 units, and a height of 0.3125 units. These dimen...
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.3125) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00571678.stl")
The design involves creating a rectangular plate. Start by defining a new coordinate system at the origin with no rotation. Draw a rectangle on the first face with a length of 0.75 units and a width of 0.55 units. Scale this rectangle by 75%. Transform the scaled rectangle into a three-dimensional object by rotating an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.55) .lineTo(0, 0.55) .close() .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0058/00585690.stl")
The design consists of three cylindrical parts. The first part is a cylinder with a central hole, measuring 0.1369 units in length and width, and 0.1095 units in height. The second part is a larger cylinder with two smaller holes, measuring 0.4107 units in length and width, and 0.0411 units in height. The third part is...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0706, 0.0706) .circle(0.07) .moveTo(0.0706, 0.0706) .circle(0.0138) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.140625, 0.1875)) # Part 2: new part_2 = ( cq.Workplane("XY") ...
The design consists of two main parts. The first part features a rectangular base with a complex top surface. The base has a length of 0.75 units and a width of 0.5625 units. The top surface is formed by extruding a two-dimensional sketch 0.45 units upwards, resulting in a height of 0.45 units. The second part is a tri...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.3118) .lineTo(0.5, 0.3118) .lineTo(0.5, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.4531) ) part_1 = part_1.rotate((0, 0, 0),...
The design consists of two main parts. The first part is a cube with dimensions of 0.75 units in length, width, and height. This cube forms the base of the structure. The second part is a rectangular cutout that is positioned within the cube. The cutout has dimensions of 0.375 units in length, 0.1875 units in width, an...
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, 0.1868) .lineTo(0.1882, 0) .lineTo(0.1882, 0.1868) .clo...
The U-shaped beam consists of a flat top and bottom with a hollow center. The beam has a uniform width and height throughout its length. The overall shape is created by extruding a two-dimensional profile along a specified direction. The height of the beam is 0.75 units, the width is approximately 0.106 units, and the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1406, 0) .lineTo(0.1406, 0.1037) .lineTo(0.1279, 0.1037) .lineTo(0.1279, 0.0116) .lineTo(0.011, 0.0116) .lineTo(0.011, 0.1037) .lineTo(0, 0.1037) .close() .extrude(0.75) ) part_1 = part...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangle in the first face, then scale the rectangle to reduce its size. Transform the scaled rectangle into a three-dimensional object by rotating and translating it 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.1882) .lineTo(0, 0.1882) .close() .extrude(0.2344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.234375, 0)) result = part_1 cq.exporters.export(result, "....
Create a rectangular box by starting with a new coordinate system positioned 0.2596 units above the origin. Draw a rectangular sketch on the first face, forming a loop with four straight lines. After completing the sketch, scale it down by 75% to fit the desired dimensions. Transform the scaled sketch into a three-dime...
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.2656) ) part_1 = part_1.translate((0, 0, 0.125)) result = part_1 cq.exporters.export(result, "./stlcq/0051/00519194.stl")
The design involves creating a larger cube with a smaller cube positioned on its top face, forming a stepped appearance. The larger cube serves as the base, with a height, width, and depth of 0.6 units. The smaller cube sits directly on top of the larger cube, maintaining the same width and depth but with a reduced hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6016, 0) .lineTo(0.6016, 0.6016) .lineTo(0.4506, 0.6016) .lineTo(0.4506, 0.302) .lineTo(0.151, 0.302) .lineTo(0.151, 0.6016) .lineTo(0, 0.6016) .close() .extrude(0.75) ) part_1 = part_1...
The design involves creating a ring with a circular cross-section. Start by setting up a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch featuring two concentric circles. After scaling the sketch, transform it into three-dimensional space with appropriate rotations an...
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.3) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.414062, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw two rectangular faces side by side, ensuring they are correctly positioned relative to each other. After drawing the faces, scale the entire 2D sketch to reduce its size. Transform this scaled 2D sketch into a 3D model b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2588, 0) .lineTo(0.2588, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.1406) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.5794, 0.0706) .lineTo(0.75, 0.0706) .lineTo(0.75, 0.2...
The design consists of two main parts: a cylindrical base and a rounded tip. The cylindrical base has a height of 0.5629 units, a length of 0.0229 units, and a width of 0.0229 units. It is created by extruding a circular sketch along the normal direction. The rounded tip, which is added to the existing body, has a heig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.0118) .circle(0.0117) .extrude(0.5625) ) part_1 = part_1.translate((0, 0, 0.1875)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .extrude(0.1406) ) part_2 = part_2...
The cylindrical bracket consists of a complex, curved shape with a central circular opening and three mounting holes. The primary shape is formed by a series of arcs and lines that create a rounded, asymmetrical profile. A smaller circle is placed near the top, representing the central opening. Three additional small c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0175, 0.5821) .threePointArc((0.0262, 0.5734), (0.0291, 0.5588)) .threePointArc((0.0262, 0.3813), (0.1339, 0.2387)) .lineTo(0.4017, 0.0582) .threePointArc((0.4628, 0.0291), (0.5326, 0.0262)) .threePointArc((0.5646, ...
Start by creating a new coordinate system aligned with the default axes. Draw a rectangle in a two-dimensional sketch, ensuring it forms a square. Scale the sketch to reduce its size proportionally. Transform the scaled sketch into a three-dimensional shape by extruding it along the normal direction. The resulting soli...
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.1953) ) result = part_1 cq.exporters.export(result, "./stlcq/0018/00188203.stl")
Start by setting up a new coordinate system with the specified Euler angles and translation vector. Draw the first face of the rectangular bar, forming a rectangle with the given dimensions. Once the initial sketch is complete, scale it down by seventy-five percent to achieve the desired size. Transform this two-dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0971) .lineTo(0, 0.0971) .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, "....
Start by creating a new coordinate system with the Euler angles set to zero degrees and a translation vector of (0.0024, 0.0024, 0.0). Draw a two-dimensional sketch on the first face, consisting of a single loop with fourteen lines that form a complex shape. After completing the sketch, scale it down to fit the desired...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6083, 0) .lineTo(0.6083, 0.2445) .lineTo(0.7422, 0.2445) .lineTo(0.7422, 0.4861) .lineTo(0.3464, 0.4861) .lineTo(0.3464, 0.4017) .lineTo(0.2911, 0.4017) .lineTo(0.2911, 0.3347) .lineTo(...
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular sketch on the first face, forming a closed loop with four lines. Scale the sketch to fit the desired dimensions. Transform the sketch into a three-dimensional object by rotating and translating it according to the specified angl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4766, 0) .lineTo(0.4766, 0.4429) .lineTo(0, 0.4429) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0019/00193544.stl")
The object is a multi-level structure with a rectangular base and a square top. It features a step-like design with a smaller square protruding from the side. The base is rectangular, and the top is square, creating a stepped appearance. The height of the structure is 0.3817 units, the width is 0.7125 units, and the le...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0412) .lineTo(0.6088, 0.0412) .lineTo(0.6088, 0.3176) .lineTo(0.75, 0.3176) .lineTo(0.75, 0.7118) .lineTo(0.3147, 0.7118) .lineTo(0.3147, 0.4265) .lineTo(0, 0.426...
The model consists of a curved, three-dimensional shape with a flat, rectangular top and a smooth, curved bottom. The first face is defined by an arc and three lines, forming a partial rectangle with a rounded corner. The second face adds another arc and two lines, extending the shape further. After scaling the entire ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.1088, 0.2647), (0.3765, 0.3765)) .lineTo(0.3765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1562) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .threePointArc(...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with specific rotations and translations. Draw a circular sketch and scale it down to fit the desired size. Transform this sketch into three-dimensional space by rotating and translating it according to predefined ang...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0902, 0.0902) .circle(0.0895) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0025/00255207.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on a new face, ensuring it is centered and appropriately sized. Scale the circle to adjust its size. Transform the scaled circle into a three-dimensional object by aligning it with the original coordinate system. Extrude the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4531) ) result = part_1 cq.exporters.export(result, "./stlcq/0012/00126839.stl")
Start by creating a rectangular base with a length of 0.5 units, a width of 0.625 units, and a height of 0.75 units. Next, add a rectangular cutout with a length of 0.125 units, a width of 0.125 units, and a height of 0.75 units, positioned at coordinates [0.75, 0.125, 0.5]. Then, add another rectangular cutout with th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.625) .lineTo(0, 0.625) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
To create a rounded cylindrical base, start by establishing a new coordinate system with specific rotations and translations. Draw two circles on the same plane, one larger and one smaller, centered at the same point. These circles will form the basis of the cylindrical shape. Scale the circles to fit the desired dimen...
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...
The design consists of two main parts. The first part is a rectangular plate with rounded corners, measuring 0.7447 units in length, 0.7234 units in width, and 0.0133 units in height. This part is created by extruding a two-dimensional sketch along the normal direction. The second part is a smaller rectangular block, p...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7422, 0) .lineTo(0.7422, 0.7218) .lineTo(0.6491, 0.7218) .lineTo(0, 0.7218) .close() .extrude(0.0156) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0938, 0) ...
Construct a rectangular top for the cylinder by creating a new coordinate system and drawing a two-dimensional rectangle. The rectangle has a length of zero point zero four four one units and a width of zero point seven five units. Scale this rectangle and transform it into a three-dimensional shape by rotating and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0441, 0) .lineTo(0.0441, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1719) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.078125, 0, 0)) result = part_...
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch on the first face, forming a rectangle with a specific aspect ratio. The rectangle's dimensions are scaled down to create a smaller version of the original shape. Extrude this scaled sketch along the normal direction to form ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1441) .lineTo(0, 0.1441) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0087/00872820.stl")
The cylindrical object consists of a solid body with a circular base and top, a smooth surface, and a uniform diameter. The object is created by extruding a two-dimensional sketch along the positive normal direction. The final dimensions of the cylinder are a height of 0.75 units, a width of 0.25 units, and a length of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .moveTo(0.1255, 0.1255) .circle(0.0373) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0015/00159931.stl")
The first part of the CAD model is a rectangular base with a protruding section. This part has a length of 0.75, a width of 0.4636, and a height of 0.513. The second part is a smaller rectangular box with a recessed top, positioned on the base. It has a length of 0.1203, a width of 0.2565, and a height of 0.1668. The t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1971) .lineTo(0.1206, 0.1971) .lineTo(0.1206, 0.4647) .lineTo(0, 0.4647) .close() .extrude(0.5156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5156...
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, which forms a rounded rectangular base. The sketch includes straight lines and arcs to create a smooth, rounded corner. After drawing the sketch, scale it down to 75% of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4382, 0) .lineTo(0.4382, 0.5618) .threePointArc((0.3824, 0.6941), (0.25, 0.75)) .lineTo(0.1882, 0.75) .threePointArc((0.0559, 0.6941), (0, 0.5618)) .close() .extrude(0.0938) ) part_1 = part_1.r...
Create a triangular prism base by first setting up a new coordinate system and rotating it by -90.0 degrees around the Z-axis. Translate this coordinate system slightly along the Y-axis. Draw a two-dimensional sketch that forms a triangular shape. After completing the sketch, scale it down to 75% of its original size. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0.5) .lineTo(0.75, 0.5265) .lineTo(0, 0.5794) .close() .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.070312, 0)) result = part_1 cq.exporters.export(result, ...
Start by creating a new coordinate system with the Euler angles set to zero degrees and a translation vector of 0.0, 0.0, 0.0052. Draw a rectangular shape on a single face, ensuring the dimensions are proportionate to the desired final size. Transform this rectangle into three-dimensional space using the coordinate sys...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0, 0.25) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0089/00896891.stl")
To construct a cylindrical object, start by setting up a coordinate system with no rotation or translation. Draw a circular shape on a flat surface, then scale this shape down to achieve the desired size. Transform the scaled shape into a three-dimensional object without altering its position. Extrude the shape upwards...
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/0093/00932279.stl")
The cylindrical base is created by first establishing a new coordinate system with specific Euler angles and a translation vector. A circular shape is then drawn in a new face, which is scaled down and transformed into three dimensions. The circular shape is extruded along the normal direction to form a solid cylindric...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./stlcq/0043/00434575.stl")
The first part involves creating a rectangular box with a slightly wider base and a narrower top, forming a trapezoidal shape. The box has a smooth, flat surface with sharp edges. The dimensions of this box are 0.5 units in length, 0.25 units in width, and 0.25 units in height. The second part is another rectangular bo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.251) .lineTo(0, 0.251) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .mov...
The design involves creating a cylinder with a square hole. Start by setting up a coordinate system with specific Euler angles and a translation vector. The first face consists of an irregular polygon with 11 sides and a circle inside it. The second face has a circle and a square within it. These shapes are then scaled...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4147) .lineTo(0.0412, 0.2059) .lineTo(0.1882, 0.05) .lineTo(0.3941, 0) .lineTo(0.5971, 0.0706) .lineTo(0.7294, 0.2382) .lineTo(0.75, 0.45) .lineTo(0.6529, 0.6412) .lineTo(0.4676, 0.7471) .lineTo(0...
Start by creating a rectangular section for a cylindrical object. Begin with a two-dimensional sketch of a rectangle that will serve as the base of the object. This rectangle has a length slightly shorter than its width. Once the sketch is complete, transform it into a three-dimensional shape by extruding it 0.75 units...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0196, 0) .lineTo(0.0196, 0.0025) .lineTo(0.0025, 0.0025) .lineTo(0.0025, 0.0391) .lineTo(0, 0.0391) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0026/0026293...
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 unique shape with six lines. Scale the sketch to reduce its size. Transform the scaled sketch into three dimensions by applying the rotation and translation defined i...
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.25, 0.6265) .lineTo(0, 0.6265) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5, 0)) result =...
The design consists of two main parts. The first part is a solid cylinder with a height of 0.75 units and a diameter of 0.1458 units. The second part is a hollow cylindrical section that is positioned above the solid cylinder. This hollow section has a height of 0.625 units and a diameter of 0.125 units. When assembled...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .extrude(0.625) ) part_2 = part_2.translate((0.007812, 0.007812, 0.125)) resul...
The design involves creating a ring-shaped object with a central hole and flat edges. Start by setting up a new coordinate system with default angles and translations. Draw two concentric circles to form the outline of the ring. Scale the sketch to fit the desired size and then transform it into a three-dimensional sha...
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.1853) .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0072/00727871.stl")
Start by creating a new coordinate system with no rotation and a slight vertical offset. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. Scale this sketch to fit the desired dimensions. Transform the scaled sketch into 3D space by applying the same coordinate system settings...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5938, 0) .lineTo(0.5938, 0.3167) .lineTo(0, 0.3167) .close() .extrude(0.125) ) part_1 = part_1.translate((0, 0, 0.054688)) result = part_1 cq.exporters.export(result, "./stlcq/0087/00875542.stl")
The first part is a rectangular prism with rounded edges and a slight curve on the top surface. It has a length of 0.064078125 units, a width of 0.4911944625 units, and a height of 0.75 units. The second part is a symmetrical structure with a cylindrical base and a rectangular top. It has a length of 0.75 units, a widt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0039, 0) .lineTo(0.0039, 0.3822) .lineTo(0, 0.3822) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.3822) .lineTo(0.0039, 0.3822) .threePointArc((0.0212...
Start by creating a new coordinate system with specific rotations and translations. Draw the first face as a complex polygon with several vertices and edges. The second face includes a straight line and an arc, while the third face consists of two concentric circles. Transform the 2D sketch into 3D by scaling, rotating...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.0794, 0.1147) .lineTo(0.6765, 0.1118) .lineTo(0.5618, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.1094) ) part_1 = part_1.union( ...
Start by creating a new coordinate system with default settings. Draw a rectangular face with precise dimensions, ensuring that the sides are parallel and perpendicular to each other. Scale the rectangle to fit the desired size. Transform the scaled rectangle into a three-dimensional object by extruding it along the no...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5912) .lineTo(0, 0.5912) .close() .extrude(0.1328) ) result = part_1 cq.exporters.export(result, "./stlcq/0046/00469191.stl")
The design consists of three main parts. The first part is a rectangular prism with a flat top and bottom, measuring 0.0343 units in length, 0.0129 units in width, and 0.75 units in height. The second part is a vertical, elongated rectangular prism with a flat top and bottom, featuring a central vertical line and two h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0312, 0) .lineTo(0.0312, 0.0118) .lineTo(0, 0.0118) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0.7147) .lineTo(0.2324, 0.7147) .lineTo(0.2324, 0.7...
Start by creating a new coordinate system and rotating it as specified. Draw a two-dimensional sketch on the first face, which includes an arc and several lines forming a closed loop. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional shape using the coordinate system transformati...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6235) .threePointArc((0.0294, 0), (0.0618, 0.6235)) .lineTo(0.0618, 0.75) .lineTo(0.0294, 0.75) .lineTo(0, 0.75) .close() .extrude(0.3125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.28125...
The design consists of a rectangular prism with a smaller curved rectangular prism attached to it. The main body has a length of 0.6635 meters and a width of 0.75 meters. The height of the entire structure is 0.0962 meters. The smaller curved rectangular prism is attached to one of the longer sides of the main body, cr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0088) .threePointArc((0.0029, 0.0029), (0.0088, 0)) .lineTo(0.4235, 0) .threePointArc((0.4294, 0.0029), (0.4324, 0.0088)) .lineTo(0.4324, 0.5088) .threePointArc((0.4294, 0.5176), (0.4235, 0.5206)) .lineTo(0.0...
The first part is a right triangular prism with a rectangular base. It measures 0.4412 units in length, 0.3529 units in width, and 0.2206 units in height. The second part is an L-shaped section that extends from the first part. It measures 0.7059 units in length, 0.3971 units in width, and 0.3529 units in height. The L...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4375, 0) .lineTo(0, 0.35) .close() .extrude(0.2188) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.21875, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .li...
Start by creating a new coordinate system aligned with the global axes and positioned slightly off-center. Draw a two-dimensional sketch on the first face that forms a curved, open-ended ring. This ring consists of two arcs and two lines, forming a closed loop. After drawing the sketch, scale it down to fit the desired...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2972, 0.3763) .threePointArc((0.1827, 0.0654), (0.5044, 0.1391)) .lineTo(0.6953, 0.1391) .threePointArc((0, 0), (0.4608, 0.5399)) .close() .extrude(0.0312) ) part_1 = part_1.translate((0.054688, 0.1875, 0)) result ...
Start by creating a new coordinate system aligned with the default axes. On the first face, draw two concentric circles, one larger and one smaller, to define the outer and inner boundaries of the base. Scale the entire sketch to reduce its size uniformly. Transform the scaled sketch into a three-dimensional object by ...
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.1853) .extrude(0.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00697275.stl")
Start by creating a new coordinate system aligned with the global axes. On the first face, draw a rectangular sketch. The rectangle will have a length of 0.75 units and a width of 0.0937 units. After drawing the sketch, scale it down by 75%. Transform the scaled sketch into a three-dimensional object by extruding it al...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0941) .lineTo(0, 0.0941) .close() .extrude(0.2812) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00394477.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, ensuring the proportions are maintained. Scale this rectangle to fit the desired size. Transform the scaled rectangle into a three-dimensional object by aligning it with the coordinate system. Ex...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0353) .lineTo(0, 0.0353) .close() .extrude(0.2031) ) result = part_1 cq.exporters.export(result, "./stlcq/0041/00411662.stl")
The design involves creating a rectangular prism with rounded edges and a flat top. The process begins by setting up a new coordinate system with specific Euler angles and a translation vector. The first face is a rectangle with a series of small segments, while the second face includes a more complex shape with severa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.0118, 0.3235) .lineTo(0.0265, 0.3235) .lineTo(0.0382, 0.3235) .lineTo(0.0529, 0.3235) .lineTo(0.0529, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0781) ) part_1 = part_1.union( cq.W...
Create a new coordinate system with specific rotations and translations. Draw a circular sketch on the first face, then scale it down and transform it into three-dimensional space. Extrude the sketch to form a solid body. The resulting part has a square cross-section with a side length of approximately 0.75 units and a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .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, "./stlcq/0037/00374383.stl")
The design consists of two main parts: a cylindrical object with a rectangular section at one end and two rectangular plates with rounded corners. The cylindrical object has a length of 0.0234375 units, a width of 0.0546875 units, and a height of 0.7500000000000001 units. The rectangular plates, which are parallel and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0234, 0) .lineTo(0.0234, 0.0547) .lineTo(0, 0.0547) .close() .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") ...
The design consists of two main parts: a larger cylindrical base and a smaller cylindrical top. The base has a square cross-section with a side length of 0.75 units and a height of 0.2083 units. The top is positioned above the base and has a square cross-section with a side length of 0.5167 units and a height of 0.2917...
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 involves creating a rectangular section with a hollow center. Start by setting up a new coordinate system with default angles and no translation. Draw a larger rectangle and a smaller inner rectangle on the first face to create a hollow section. Scale the entire sketch to fit the desired dimensions. Transfor...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0547, 0) .lineTo(0.0547, 0.0547) .lineTo(0, 0.0547) .close() .moveTo(0.0032, 0.0032) .lineTo(0.0515, 0.0032) .lineTo(0.0515, 0.0515) .lineTo(0.0032, 0.0515) .close() .extrude(0.75) ...
Start by creating a new coordinate system with specific angles and translations. On the first face, draw a loop that forms a rectangle with rounded edges. The rectangle has a longer side and a shorter side, with a rounded corner connecting them. Scale the entire sketch to reduce its size. Transform the scaled sketch in...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1529, 0) .lineTo(0.1529, 0.7294) .threePointArc((0.0765, 0.75), (0, 0.7294)) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 c...