input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The L-shaped CAD model consists of a rectangular base and a square top, forming a 90-degree angle between the two surfaces. The base is longer and wider than the top, which sits perpendicularly on one end of the base. The overall shape is characterized by its smooth, uniform surfaces and sharp edges. The model's dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2588) .lineTo(0.4353, 0.2559) .lineTo(0.4353, 0.5147) .lineTo(0, 0.5147) .close() .extrude(0.2891) ) result = part_1 cq.exporters.export(result, "./stlcq/0003/00039590....
To create the cylindrical base, start by establishing a new coordinate system with no rotation or translation. Draw a circle within a new face, centered at a slight offset from the origin. Scale the circle to the desired size. Then, extrude the circle along the vertical axis to form a cylinder with a height of 0.75 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0157, 0.0157) .circle(0.0156) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00502999.stl")
The design consists of two rectangular parts that are stacked on top of each other. The first part is a rectangular base with a height of 0.09 units, a width of 0.75 units, and a length of 0.75 units. This base forms the foundation of the structure. The second part is a rectangular top, also with a height of 0.09 units...
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.0938) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.6) .lineTo(0, 0....
The hexagonal plate is a solid body with a hexagonal cross-section and rounded edges. The plate's overall dimensions are approximately 0.75 units in length, 0.6495 units in width, and 0.0521 units in height. The hexagonal shape is created by extruding a two-dimensional hexagon along its normal axis to form the final th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.1882, 0) .lineTo(0.5618, 0) .lineTo(0.75, 0.3235) .lineTo(0.5618, 0.65) .lineTo(0.1882, 0.65) .close() .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0008/000861...
The design involves creating a rectangular plate with three holes. The plate starts as a flat sketch of a rectangle with a series of smaller circles inside. After defining the initial shape, the sketch is scaled down and rotated to align with the desired orientation. The final step is to extrude the sketch to give the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3794) .lineTo(0, 0.3794) .close() .moveTo(0.3765, 0.1882) .circle(0.0559) .moveTo(0.5912, 0.1882) .circle(0.0559) .moveTo(0.1588, 0.1882) .circle(0.0559) ...
The design involves creating a ring-shaped object with a flat, circular base. Start by setting up a new coordinate system with default angles and translations. Draw two identical two-dimensional sketches, each containing an outer circle and an inner circle, centered at [0.375, 0.375]. Scale the second sketch to 75% of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2059) .extrude(0.0781) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .cir...
The design involves creating a rectangular prism with a rectangular cutout. Start by setting up a new coordinate system with default Euler angles and translation vectors. Next, draw a complex two-dimensional sketch on the first face, forming a loop with multiple lines that outline the desired shape. After completing th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3021, 0) .lineTo(0.4531, 0.2612) .lineTo(0.4265, 0.2772) .lineTo(0.3518, 0.1457) .lineTo(0.2737, 0.1919) .lineTo(0.3483, 0.3216) .lineTo(0.3216, 0.3376) .lineTo(0.215, 0.151) .lineTo(0,...
The design consists of two main parts that combine to form a rectangular tray. The first part is a rectangular base with a length of approximately 0.733, a width of about 0.407, and a height of around 0.0022. This base is created by extruding a two-dimensional sketch along the normal direction. The second part is a rec...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7344, 0) .lineTo(0.7344, 0.4089) .lineTo(0, 0.4089) .close() .extrude(0.0078) ) part_1 = part_1.translate((0.007812, 0.007812, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
The design consists of two main parts. The first part is a rectangular prism with rounded edges. It has a length of approximately 0.7455 units, a width of 0.75 units, and a height of 0.018 units. This part is created by drawing a two-dimensional rectangle, scaling it, and then extruding it into a three-dimensional shap...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7441, 0) .lineTo(0.7441, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY")...
The rectangular plate is a simple yet essential component with a flat surface and rounded edges. The plate is created by extruding a two-dimensional sketch into a three-dimensional solid. The final dimensions of the plate are approximately 0.47 units in length, 0.75 units in width, and 0.074 units in height. This part ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4676, 0) .lineTo(0.4676, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0703) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00623855.stl")
Start by creating a new coordinate system with no rotation and a slight vertical translation. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. After drawing the sketch, apply a uniform scaling factor to reduce its size. Transform the scaled sketch into a three-dimensional obj...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1647) .lineTo(0, 0.1647) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00059958.stl")
The design consists of a rectangular prism and a cylindrical object. The rectangular prism has a flat top and bottom and measures approximately 0.75 units in length, 0.57 units in width, and 0.20 units in height. The cylinder is positioned vertically and is attached to one side of the rectangular prism. It measures abo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5676) .lineTo(0, 0.5676) .close() .extrude(0.1953) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.492188, 0)) # Part 2: join part_2 = ( cq.Workplane("XY"...
Start by creating a new coordinate system with specific angles and a translation vector. Draw a rectangular sketch on the first face, ensuring that the lines form a closed loop. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the rotation and translation sett...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
Start by creating a new coordinate system with specific orientation and position adjustments. Draw a circular shape on a flat surface, then scale it down to fit the desired dimensions. Transform this scaled shape into a three-dimensional form by applying rotation and translation. Extrude the shape to create a solid cyl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .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/0003/00032282.stl")
Start by creating a new coordinate system aligned with the default axes. Draw two concentric circles on the first face, one larger and one smaller, to form a ring-like shape. Scale this shape to fit the desired size. Transform the 2D sketch into 3D space, maintaining its orientation and position. Extrude the 2D sketch ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0863, 0.0863) .circle(0.0856) .moveTo(0.0863, 0.0863) .circle(0.0613) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0014/00149159.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional rectangular sketch on the first face. After completing the sketch, scale it appropriately and transform it into three-dimensional space using the defined angles and vector. Extrude the sketch to c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1484, 0) .lineTo(0.1484, 0.1484) .lineTo(0, 0.1484) .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...
Create a rectangular box base by starting with a new coordinate system aligned to the default origin. Draw a rectangular sketch on a new face, ensuring the dimensions are proportional to the desired final size. After drawing the rectangle, scale it down to fit the required dimensions. Transform the sketch to maintain i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5471) .lineTo(0, 0.5471) .close() .extrude(0.3047) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/00529380.stl")
Start by creating a new coordinate system with the origin shifted 0.1406 units along the z-axis. Draw a rectangular sketch on the first face, forming a closed loop with four lines. After drawing the rectangle, apply a scale factor to reduce its size. Transform this scaled sketch into a three-dimensional object by extru...
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.1406) ) part_1 = part_1.translate((0, 0, 0.070312)) result = part_1 cq.exporters.export(result, "./stlcq/0028/00288738.stl")
The phone receiver base is constructed by creating a new coordinate system and drawing a complex two-dimensional sketch on the first face. This sketch consists of a single loop made up of several lines and arcs, forming a unique shape. After completing the sketch, it is scaled down to seventy-five percent of its origin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0559) .lineTo(0.1324, 0) .threePointArc((0.2147, 0.0118), (0.2912, 0.0324)) .threePointArc((0.3882, 0.0706), (0.4794, 0.1206)) .lineTo(0.7265, 0.2735) .lineTo(0.75, 0.4029) .lineTo(0.6294, 0.4353) .lineTo...
Start by creating a new coordinate system with specific orientation settings. On the first face, draw two concentric circles. The outer circle is slightly larger than the inner circle. Scale the entire two-dimensional sketch to reduce its size. Rotate and translate the scaled sketch to align it correctly in the three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1686, 0.1686) .circle(0.1673) .moveTo(0.1686, 0.1686) .circle(0.1647) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./s...
The design consists of three rectangular blocks that are assembled to form a composite structure. The first block has a length of 0.3 units, a width of 0.1393 units, and a height of 0.0268 units. It is positioned at coordinates [0.225, 0.1607, 0.0]. The second block, which serves as a larger base with a smaller top, ha...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2969, 0) .lineTo(0.2969, 0.1374) .lineTo(0, 0.1374) .close() .extrude(0.0234) ) part_1 = part_1.translate((0.226562, 0.164062, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
Begin by creating a new coordinate system aligned with the default axes. Draw a square on the first face, forming a closed loop with four equal sides. Scale this square to reduce its size. Transform the scaled square into a three-dimensional object by rotating and translating it according to the initial coordinate syst...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0014/00149230.stl")
The first part involves constructing a hexagonal column. This column has a hexagonal cross-section with an outer loop and an inner loop, both scaled down by a factor of 0.6979. After scaling, the sketch is extruded 0.75 units to form a solid body. The dimensions of this hexagonal column are approximately 0.70 units in ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2999) .lineTo(0.1745, 0) .lineTo(0.5208, 0) .lineTo(0.6953, 0.2999) .lineTo(0.5208, 0.6026) .lineTo(0.1745, 0.6026) .close() .moveTo(0.18, 0.2999) .lineTo(0.2645, 0.1554) .lineTo(0.4308, 0.1554) ...
The U-shaped bracket base consists of a single solid body with a complex profile. The base has a length of 0.3225 meters, a width of 0.75 meters, and a height of 0.2566 meters. The profile includes several straight edges and curved sections that form a U-shape. The top and bottom edges are parallel, and the sides are p...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1441, 0.2294) .threePointArc((0, 0.3765), (0.1441, 0.5206)) .lineTo(0.2324, 0.5206) .lineTo(0.2324, 0.75) .lineTo(0.3235, 0.75) .lineTo(0.3235, 0.4412) .lineTo(0.1441, 0.4382) .threePointArc((0.0824, 0.3735)...
Start by setting up a new coordinate system with default angles and translations. Draw a two-dimensional sketch on the first face, forming a rectangle with rounded corners. The sketch is then scaled down to fit the desired dimensions. Transform the scaled sketch into three dimensions and extrude it to create a thin rec...
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.3765) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0038/00381119.stl")
The design involves creating two rectangular blocks. The first block has a length of 0.75 units, a width of 0.3384 units, and a height of 0.106 units. It is a solid block with no internal cavities. The second block, which is slightly smaller, has a length of 0.6876 units, a width of 0.276 units, and the same height of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3382) .lineTo(0, 0.3382) .close() .extrude(0.1094) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6875, 0) .lineTo(0.6875, 0.275) .lin...
The design involves creating a triangle-shaped object with a rectangular base and a triangular top. The object has a hollow center and sharp edges. The process begins by drawing a two-dimensional sketch that is then scaled, transformed into three dimensions, and extruded to form the final shape. The final part has a le...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2147) .lineTo(0.5912, 0) .lineTo(0.75, 0.4412) .lineTo(0, 0.4412) .close() .moveTo(0.0206, 0.2294) .lineTo(0.5765, 0.0265) .lineTo(0.7206, 0.4206) .lineTo(0.0206, 0.4206) .close() .extrude(0.2...
Start by creating a new coordinate system with default settings. Draw the first two-dimensional sketch on the first face, forming a larger rectangle and a smaller rectangle that are connected at one corner. The larger rectangle is oriented horizontally, while the smaller rectangle is oriented vertically. After completi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1118, 0) .lineTo(0.1118, 0.6382) .lineTo(0.1118, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1875) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1118, 0.6382) .lineTo(0.3765, 0.6...
Start by creating a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch that forms a quadrilateral with a slight curve at the top. This shape is then scaled down and transformed into three-dimensional space through rotation and translation. Finally, extrude the shape to create ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.4912, 0.3353) .lineTo(0.2088, 0.3353) .close() .extrude(0.2812) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.28125, 0)) result = part_1 cq.exporters.export(resu...
Start by creating a new coordinate system with default settings. Draw a two-dimensional rectangular sketch on the first face. This rectangle has a length and width of 0.75 units. Scale the sketch to reduce its size proportionally. Transform the scaled sketch into a three-dimensional object using the default rotation 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.4609) ) result = part_1 cq.exporters.export(result, "./stlcq/0053/00533497.stl")
Create a cylindrical object with a flat circular top and bottom. Start by setting up a new coordinate system aligned with the default axes. Draw a circle on a new face, then scale the circle to reduce its size. Transform the scaled circle into a three-dimensional shape by extruding it along the normal direction to crea...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.3047) ) result = part_1 cq.exporters.export(result, "./stlcq/0010/00104865.stl")
The design consists of three cylindrical parts. The first part has a smooth surface and rounded edges, with a length and width of approximately 0.3887 and a height of 0.5716. The second part features a flat circular top and bottom, smooth edges, and uniform thickness, with a length and width of about 0.3887 and a heigh...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1961, 0.1961) .circle(0.1945) .moveTo(0.1961, 0.1961) .circle(0.1593) .extrude(0.5703) ) part_1 = part_1.translate((0, 0.070312, 0.085938)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1961, 0.1961) ...
The design involves creating a T-shaped cross-section. Start by setting up a new coordinate system with default angles and no translation. Draw a two-dimensional sketch on the first face, forming a single loop with twelve lines that outline the T-shape. After completing the sketch, scale it down by 75%. Then, transform...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6, 0) .lineTo(0.6, 0.25) .lineTo(0.4765, 0.25) .lineTo(0.4765, 0.6265) .lineTo(0.6, 0.6265) .lineTo(0.6, 0.75) .lineTo(0, 0.75) .lineTo(0, 0.6265) .lineTo(0.1235, 0.6265) .lineTo(0....
The design consists of two main parts. The first part is a cylindrical object with smooth surfaces and rounded edges. It has a length and width of 0.3214 units and a height of 0.7143 units. The second part is a smaller cylinder with a flat top and bottom and a curved surface connecting them. This part has a length of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1608, 0.1608) .circle(0.1595) .moveTo(0.1608, 0.1608) .circle(0.1344) .extrude(0.7109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.710938, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") ...
The design consists of two main parts: a rectangular prism with a triangular cutout and a cylindrical top. The rectangular prism has a length of approximately zero point seven five units, a width of zero point three units, and a height of zero point two four units. This part features a triangular cutout on one of its f...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2412, 0) .lineTo(0.2412, 0.3) .lineTo(0, 0.3) .close() .extrude(0.2422) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2412, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0706) .lineTo...
The cylindrical base is created by starting with a new coordinate system and drawing a circular sketch on the X-Y plane. This circle is then scaled to the desired size and transformed into a three-dimensional shape by extruding it along the normal direction. The resulting solid has a height of 0.75 units and a diameter...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0015/00156457.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular sketch on the first face, scale it down, and transform it into a three-dimensional object. The transformation involves rotating and translating the sketch according to the coordinate system settings. Fin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0015/00155586.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on a new face, forming a closed loop with four lines. Scale the sketch to adjust its size. Transform the scaled sketch by rotating and translating it according to the coordinate system settings. ...
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.5625) ) 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/0...
The design involves creating a cylindrical object with a flat circular top and bottom. The cylinder has a height of 0.2473 units and a diameter of 0.75 units. A small circular depression is added to the center of the top surface. This depression has a diameter of approximately 0.0728 units and a depth of 0.008 units. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0353, 0.0353) .circle(0.035) .extrude(0.0078) ) part_2 = part_2.translate((0.335938, 0.335938, 0.25)) resul...
The first part involves creating a rectangular block with two circular holes. This block has a length of approximately 0.4456 units, a width of about 0.6435 units, and a height of 0.3044 units. The second part is an S-shaped object that is much smaller, with a length of around 0.3276 units, a width of about 0.1638 unit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4447, 0) .lineTo(0.4447, 0.6406) .lineTo(0, 0.6406) .close() .moveTo(0.2211, 0.103) .circle(0.0502) .moveTo(0.2186, 0.5627) .circle(0.0477) .extrude(0.3047) ) part_1 = part_1.translate(...
The first part involves creating a cylindrical base. A rectangular sketch is drawn on the X-Y plane and then scaled down by 75%. This sketch is extruded along the Z-axis to form a solid cylinder with a length of 0.0225 units, a width of 0.75 units, and a height of 0.0094 units. For the second part, a smaller cylindrica...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0235, 0) .lineTo(0.0235, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0088, 0) .lineTo(0.0088, 0.75) .lin...
Create a vertical cylindrical rod by starting with a circular base. The base consists of two concentric circles, with the outer circle being slightly larger than the inner one. After defining the base, scale it to the desired size and transform it into a three-dimensional object. Extrude the base upwards to form a soli...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .moveTo(0.0078, 0.0078) .circle(0.0062) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0027/00276382.stl")
Start by creating a new coordinate system and drawing two circles on separate faces. The circles are positioned to form the bases of two vertical rods. After drawing the circles, scale the entire sketch to reduce its size. Next, rotate and translate the sketch to position it correctly in 3D space. Finally, extrude the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0088, 0.0088) .circle(0.0059) .extrude(0.6484) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.7412, 0.0088) .circle(0.0059) .extrude(0.6484) ) result = part_1 cq.exporters.export(result, "./stlcq/0094/0...
Create a rounded rectangular base by starting with a new coordinate system aligned to the global axes and positioned slightly offset. Draw a rectangular sketch on the first face, ensuring that the lines form a closed loop. Scale the sketch to fit the desired dimensions. Transform the sketch into three dimensions and ex...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5329, 0) .lineTo(0.5329, 0.6094) .lineTo(0, 0.6094) .close() .extrude(0.5625) ) part_1 = part_1.translate((0.070312, 0.070312, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0032/00324185.s...
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 straight lines. Scale the sketch to reduce its size proportionally. Transform the scaled sketch 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.2647) .lineTo(0, 0.2647) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00401923.stl")
Start by creating a new coordinate system aligned with the default axes. Sketch a circular shape on the first face, consisting of two concentric circles. After defining the initial sketch, scale it down to fit the desired size. Transform the scaled sketch into three-dimensional space, maintaining its orientation and po...
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.0224) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00690457.stl")
The design involves creating a rounded cylindrical object. Start by setting up a coordinate system with specific rotational and translational adjustments. Draw a circular shape and transform it into a three-dimensional form by extruding it in both directions along its normal axis. The resulting solid has a square cross...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .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/0034/00343831.stl")
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with specific rotations and translations. Then, draw a circular face and scale it to the desired size. This scaled circle is transformed into three-dimensional space and extruded in both directions to form a solid cyl...
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/0005/00056297.stl")
Construct a rectangular prism with a slightly rounded top and bottom and sharp edges. Start by creating a new coordinate system and drawing a two-dimensional sketch that forms a rectangle. Transform this sketch into three dimensions and extrude it to create the final solid body. The final dimensions of the rectangular ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7422, 0) .lineTo(0.7422, 0.2794) .lineTo(0, 0.2794) .close() .extrude(0.5156) ) result = part_1 cq.exporters.export(result, "./stlcq/0095/00956169.stl")
Start by creating a cube with a central hole. The cube has a length and width of approximately 0.7075 units and a height of 0.75 units. The central hole is circular and positioned in the middle of the cube. Next, add three cylindrical holes to the cube. These holes are smaller and positioned at specific points on the c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0) .lineTo(0.7109, 0.7109) .lineTo(0, 0.7109) .close() .moveTo(0.4433, 0.3569) .circle(0.0864) .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0486, 0.0486...
Start by creating a new coordinate system with all Euler angles set to zero and a translation vector of 0.0417, 0.0417, 0.0. Draw a rectangular sketch on the first face, forming a closed loop with four lines. After defining the sketch, scale it down to a quarter of its original size. Transform this scaled sketch into t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0833, 0) .lineTo(0.0833, 0.25) .lineTo(0, 0.25) .close() .extrude(0.0312) ) part_1 = part_1.translate((0.039062, 0.039062, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0064/00641212.stl")...
The design involves creating a disk-shaped object with a central hole. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Next, draw a 2D sketch on a face, which includes two concentric circles. The larger circle forms the outer boundary of the disk, while the smaller circl...
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.0706) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.171875, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The first part involves creating a complex, multi-faceted structure with a central hub and multiple protruding elements. This structure is defined by four faces, each composed of lines and arcs that form intricate shapes. After drawing these faces, the two-dimensional sketch is scaled down and transformed into three di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3735) .lineTo(0.0706, 0.2824) .threePointArc((0.1059, 0.3382), (0.1618, 0.3029)) .lineTo(0.2, 0.3412) .lineTo(0.2882, 0.3412) .threePointArc((0.2853, 0.4), (0.3176, 0.45)) .lineTo(0.1882, 0.5088) .lineTo(...
Create a rectangular base with a protruding section. Begin by setting up a new coordinate system with no rotation or translation. Draw a two-dimensional sketch that forms a rectangle with a smaller rectangular protrusion on one side. The overall shape resembles a larger rectangle with an extended section on the longer ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2233, 0) .lineTo(0.2233, 0.3425) .lineTo(0.4467, 0.3425) .lineTo(0.4467, 0.6328) .lineTo(0, 0.6328) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/0070176...
Start by creating a new coordinate system with default settings. Draw a two-dimensional rectangle on the first face. The rectangle has a length of 0.625 units and a width of 0.25 units. Scale the rectangle to fit the desired size, maintaining its proportions. Transform the scaled rectangle into a three-dimensional obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.625, 0) .lineTo(0.625, 0.25) .lineTo(0, 0.25) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0093/00939866.stl")
The first part involves constructing a rectangular bar that stands two tenths of a unit tall, with a base measuring eleven point two five thousandths in length and three hundred thousandths in width. The second part is a cylindrical object with a rectangular cross-section and rounded edges, standing one hundred twenty-...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0118, 0) .lineTo(0.0118, 0.0312) .lineTo(0, 0.0312) .close() .extrude(0.2031) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.203125, 0.59375)) # Part 2: join part_2 = ( cq.Work...
The design involves constructing three parts that will be integrated to form a complex shape. The first part is a rectangular prism with a length of 0.1301, a width of 0.75, and a height of 0.002. This part serves as the base. The second part is a smaller rectangular object with a length of 0.1301, a width of 0.0118, a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1294, 0) .lineTo(0.1294, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.024, 0) .lineTo(0.024, 0.012) .lineT...
The first part involves creating a U-shaped bracket with a rectangular cross-section. The bracket has a length of 0.6078 units, a width of 0.4461 units, and a height of 0.75 units. The second part is a smaller cube with rounded edges, measuring 0.1412 units in length, 0.2065 units in width, and 0.1875 units in height. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6094, 0) .lineTo(0.6094, 0.4469) .lineTo(0.4684, 0.4469) .lineTo(0.4684, 0.1458) .lineTo(0.141, 0.1458) .lineTo(0.141, 0.4469) .lineTo(0, 0.4469) .close() .extrude(0.75) ) part_1 = part...
The L-shaped CAD model consists of a rectangular base and a vertical extension that form a right angle. The base and the vertical extension are integrated into a single solid body. The base has a length of 0.5000000000000001 units and a width of 0.7500000000000001 units. The vertical extension rises to a height of 0.50...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5) .lineTo(0.1265, 0.5) .lineTo(0.1265, 0) .lineTo(0.3735, 0) .lineTo(0.3735, 0.5) .lineTo(0.5, 0.5) .lineTo(0.5, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5) ) result = part_1 cq.exporters.exp...
The design involves creating a cylindrical object with a smooth surface and rounded edges. The top and bottom are circular, and the sides are straight. The overall dimensions are a length and width of 0.43125 units and a height of 0.75 units. The cylindrical shape is generated by extruding a two-dimensional sketch into...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2157, 0.2157) .circle(0.214) .moveTo(0.2157, 0.2157) .circle(0.1769) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0077/00778908.stl")
The design involves creating a rectangular bar with a flat top and bottom, slightly curved edges, and a uniform thickness. The bar has a length of approximately 0.75 units, a width of around 0.055 units, and a height of about 0.011 units. The process starts by drawing a two-dimensional sketch of the bar's cross-section...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0559) .lineTo(0, 0.0559) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0011/00110738.stl")
The rectangular block is created by starting with a new coordinate system and drawing a 2D sketch that forms a rectangle. This rectangle is then transformed and extruded to create a solid 3D object. The final shape is a rectangular block with a flat top and bottom, and straight edges. The block has a length slightly le...
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.0859) ) result = part_1 cq.exporters.export(result, "./stlcq/0091/00917478.stl")
The U-shaped base with a rectangular cutout is created by defining a new coordinate system and drawing a two-dimensional sketch on the first face. The sketch outlines a U-shape with a smaller rectangular section removed from the middle. After scaling the sketch by seventy-five percent, it is rotated and translated acco...
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.5, 0.75) .lineTo(0.5, 0.3765) .lineTo(0.25, 0.3765) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), ...
Start by creating a new coordinate system with specific angles and translations. Then, draw a rectangular sketch on the first face. This rectangle has four sides, forming a closed loop. After drawing the sketch, scale it down by 75%. Transform this scaled sketch into a three-dimensional object by applying the predefine...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
The design involves creating a rectangular plate with four holes located at the corners. The plate is initially drawn as a two-dimensional sketch, which includes a rectangle and four smaller circles representing the holes. After scaling the sketch to reduce its size, the sketch is transformed into a three-dimensional o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5824, 0) .lineTo(0.5824, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.5, 0.7235) .circle(0.0176) .moveTo(0.1941, 0.7235) .circle(0.0176) .moveTo(0.5559, 0.1529) .circle(0.0176) .mo...
The design consists of six parts that are assembled to form a complex structure. The first part is a rectangular base with a height of 0.1033 units, a width of 0.03685 units, and a length of 0.03809 units. This part is positioned at coordinates [0.245, 0.1365, 0.0]. The second part is a cylindrical section with a heigh...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.039062, 0) .lineTo(0.039062, 0.037837) .lineTo(0, 0.037837) .close() .extrude(0.101562) ) part_1 = part_1.translate((0.242188, 0.132812, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo...
Start by setting up a new coordinate system with no rotation and a vertical offset of 0.375 units. Draw two nested rectangles on a single face, where the outer rectangle forms the boundary and the inner rectangle creates a hollow section. Scale the entire sketch to fit the desired dimensions. Transform the scaled sketc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0703, 0) .lineTo(0.0703, 0.0353) .lineTo(0, 0.0353) .close() .moveTo(0.0041, 0.0041) .lineTo(0.0662, 0.0041) .lineTo(0.0662, 0.0309) .lineTo(0.0041, 0.0309) .close() .extrude(0.375)...
The design consists of two main parts. The first part is a rectangular block with a central circular hole. The block has a length of 0.6429, a width of 0.4286, and a height of 0.1071. The second part is a raised edge added to one side of the rectangular block. This raised edge has a length of 0.3429, a width of 0.4286,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.640625, 0) .lineTo(0.640625, 0.427083) .lineTo(0, 0.427083) .close() .moveTo(0.321569, 0.213542) .circle(0.105515) .extrude(0.109375) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .mov...
The design involves creating a rectangular plate with a flat surface and rounded edges. The plate's dimensions are carefully defined, with a length of 0.75 units, a width of 0.5357 units, and a height of 0.0107 units. The process begins by sketching the outline of the plate in a two-dimensional plane, which is then sca...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5353) .lineTo(0, 0.5353) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0086/00862571.stl")
Start by creating a new coordinate system with specific angles and translations. On the first face, draw two concentric circles with slightly different radii. Scale the entire sketch to achieve the desired size. Transform the sketch into three-dimensional space using the defined angles and translations. Extrude the ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0275, 0.0275) .circle(0.0272) .moveTo(0.0275, 0.0275) .circle(0.0247) .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/0087...
Construct a rectangular base with rounded edges by starting with a new coordinate system set at the origin with a slight vertical offset. Draw a two-dimensional rectangle on the first face, ensuring it forms a closed loop. Scale this rectangle to 75% of its original size and transform it into three-dimensional space. E...
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.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/00708456.stl")
The design consists of four parts that form a complex assembly. The first part is a cylinder with a length of approximately 0.3 meters, a width of 0.3 meters, and a height of 0.086 meters. It is positioned with a slight offset from the origin. The second part is a smaller protruding cylindrical section with a length of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.14902, 0.14902) .circle(0.147855) .extrude(0.085938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.085938, 0.453125)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.031373, 0.031127) .c...
The design involves creating a rounded rectangular base. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on the first face, then scale it down by a factor of 0.75. Transform this scaled sketch into three dimensions by rotating and translating it...
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.6641) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.664062, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
The design involves creating a rectangular box with a flat top and bottom and four vertical sides. The process begins by setting up a new coordinate system with specific rotations and translations. A two-dimensional sketch is drawn to define the base of the box, which is then scaled and transformed into three-dimension...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4062, 0) .lineTo(0.4062, 0.2661) .lineTo(0, 0.2661) .close() .extrude(0.6094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0, 0.148438, 0.148438)) res...
Construct a rectangular plate by starting with a new coordinate system aligned with the default axes. Draw a two-dimensional rectangular sketch on the first face, forming a closed loop with four lines. Scale the sketch to reduce its size by 25%. Transform the scaled sketch into a three-dimensional object by extruding i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00399039.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. The design involves drawing a series of interconnected faces that form a complex shape. These faces are arranged to create a rectangular prism with a recessed top surface. The first face is a small triangle, while the second ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.033027) .lineTo(0.006863, 0.025735) .lineTo(0.006863, 0.03989) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.006863, 0.025735) .lineTo(0.054902, 0.025735) .lineTo(0.054...
Start by defining a new coordinate system with specific Euler angles and a translation vector. Then, create a two-dimensional sketch on the defined plane to outline the first face of the rectangular box. This face is a rectangle with a length and width that will be scaled down by a factor of 0.75. After scaling, transf...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2382) .lineTo(0, 0.2382) .close() .extrude(0.4922) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.492188, 0)) result = part_1 cq.exporters.export(result, "....
The first part of the design involves creating a cylindrical base. Start by setting up a new coordinate system aligned with the default axes. Draw a circular face centered at [0.375, 0.375] with a radius of 0.375 units. Scale this circle down to fit the desired dimensions. The circle is then transformed into a three-di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0066/00665238.stl")
The design consists of two main parts. The first part is a solid cylindrical base with a height of 0.75, and both its length and width are 0.1103. The second part is a hollow cylinder with the same height of 0.75, but slightly smaller dimensions, with a length and width of 0.1089. These parts are aligned and combined t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0549, 0.0549) .circle(0.0545) .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0549, 0.0549) .circle(0.0545) .extrude(0.75) ) result = part_1 result = result.cut(part_2) cq.exporters.exp...
The first part involves creating a cylindrical shape with a central hole and a cut-out section. This part has a length of approximately 0.146 units, a width of approximately 0.623 units, and a height of approximately 0.182 units. The second part is a ring with a gap in the middle, measuring a length of approximately 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.0735, 0.625), (0.1471, 0)) .lineTo(0.1471, 0.2426) .threePointArc((0.0735, 0.4069), (0, 0.2426)) .close() .extrude(0.1797) ) part_1 = part_1.translate((0.304688, 0.0625, 0)) # Part 2: new part...
Create a rectangular base with a vertical extension. 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, forming a complex shape with several lines. After completing the sketch, scale it down by 75%. Transform the scaled sketc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1676) .lineTo(0.1676, 0.1676) .lineTo(0.1676, 0.5824) .lineTo(0, 0.5824) .close() .extrude(0.3359) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.3359...
Start by creating a new coordinate system aligned with the default axes. Draw a circle on the first face, then scale this circle to form the base of the cylindrical object. The cylinder has a square base with sides measuring 0.15 units and a height of 0.75 units. After scaling, extrude the circle along the vertical axi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0002/00026094.stl")
The design consists of three main parts. The first part is a cylindrical object with a circular base and top, smooth edges, and a uniform diameter throughout. It measures \(0.309375\) in length and width, and \(0.75\) in height. The second part is a rectangular block with a small hole, measuring \(0.9475381875\) in len...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.156863, 0.156863) .circle(0.155637) .moveTo(0.156863, 0.156863) .circle(0.117647) .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.Workp...
Start by creating a new coordinate system and translating it slightly along the y-axis. Draw a 2D sketch that forms a rounded L-shape. The sketch consists of several straight lines and arcs, creating a complex but smooth outline. After completing the sketch, scale it down to fit the desired dimensions. Transform the 2D...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2647) .lineTo(0.5147, 0.2647) .lineTo(0.5412, 0.1353) .lineTo(0.5412, 0.0588) .threePointArc((0.5794, 0), (0.6471, 0.0118)) .lineTo(0.75, 0.1029) .threePointArc((0.7471, 0.1088), (0.7441, 0.1118)) .lineTo...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on the first face, ensuring the dimensions are proportional. After drawing the rectangle, scale it down to fit the desired size. Transform the scaled sketch into a three-dimensional object by rotatin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5147) .lineTo(0, 0.5147) .close() .extrude(0.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.132812, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of three main parts. The first part is a rectangular base with a smaller attached prism. This part has a length of 0.75 units, a width of 0.375 units, and a height of 0.375 units. The second part is a rectangular cutout that fits within the first part. It has a length of 0.5625 units, a width of 0.1...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.1882, 0.1882) .lineTo(0.1912, 0.1912) .lineTo(0.1882, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1882, ...
Create a rectangular block by starting with a new coordinate system aligned to the default axes. Sketch a rectangle on the first face, ensuring that the proportions maintain a specific ratio. Transform this sketch into a three-dimensional object and extrude it to form a solid. The final dimensions of the block are a le...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.25) ) result = part_1 cq.exporters.export(result, "./stlcq/0073/00736910.stl")
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 straight lines. After drawing the rectangle, apply a uniform scale factor to reduce its size. Transform the scaled sketch into three-dimensional space by rotating and tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5765, 0) .lineTo(0.5765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0024/00244906.stl")
The rectangular box is a simple yet precise structure. It features a base that is slightly wider than the top, giving it a trapezoidal shape. The box has a smooth, flat surface with sharp edges. The overall dimensions are 0.75 units in length, 0.375 units in width, and 0.375 units in height. The design involves creatin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, ...
The design process starts with creating a new coordinate system aligned with the default axes. A circular sketch is drawn on a plane, centered at a specific point and with a defined radius. This sketch is then scaled down proportionally. The scaled sketch is transformed into a three-dimensional object by extruding it a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0089/00897533.stl")
The part is a cylinder with a circular base. The base has a diameter that is 75% of its original size, resulting in a final length and width of 0.75 units each. The cylinder is extruded to a height of 0.4125 units, creating a solid body. The overall shape is a simple cylinder with a consistent cross-section throughout ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4141) ) 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/0032/00322130.stl")
Start by setting up a new coordinate system with specific rotations and translations. Draw the first face with a series of horizontal and vertical lines that form a stepped shape. The second face is a smaller rectangle within the larger shape. The third, fourth, and fifth faces are trapezoidal shapes, each positioned a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0618) .lineTo(0.6882, 0.0618) .lineTo(0.6265, 0.0618) .lineTo(0.5, 0.0618) .lineTo(0.4382, 0.0618) .lineTo(0.3118, 0.0618) .lineTo(0.25, 0.0618) .lineTo(0.1265, 0...
The first part is a rectangular section with a flat profile. It begins 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 rectangle. This sketch is then scaled and transformed into three dimensions. The transformed sket...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0275, 0) .lineTo(0.0275, 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)) result = part_1 cq.exporters.export(result, "./s...
The design involves creating a rectangular plate with rounded corners and two holes in the center. The plate is initially sketched in two dimensions, featuring a rectangular shape with rounded corners and four small circles representing the holes. After scaling the sketch to 75% of its original size, the sketch is tran...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0471, 0) .lineTo(0.2588, 0) .lineTo(0.3059, 0) .lineTo(0.3059, 0.7029) .threePointArc((0.2912, 0.7353), (0.2588, 0.75)) .lineTo(0.0471, 0.75) .threePointArc((0.0147, 0.7353), (0, 0.7029)) ....
To create a cube with smooth edges and faces, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a two-dimensional sketch on the defined plane, forming a square. Transform this sketch into three dimensions by applying a rotation and translation based on the coord...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.375) .lineTo(0, 0.375) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with default settings. On the first face, draw a rectangular sketch. The rectangle has a length of 0.75 units and a width of 0.2045 units. Scale this sketch down by 75% to achieve the desired dimensions. Transform the scaled sketch into a three-dimensional object by extruding i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2059) .lineTo(0, 0.2059) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0088/00881545.stl")
The design consists of three parts: a rectangular box, a rectangular block, and a cube. The rectangular box has a flat bottom and an open top, measuring 0.7944 meters in length, 0.4453 meters in width, and 0.2841 meters in height. The rectangular block has a flat top and bottom, measuring 0.0472 meters in length, 0.014...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7969, 0) .lineTo(0.7969, 0.4469) .lineTo(0, 0.4469) .close() .moveTo(0.0219, 0.0219) .lineTo(0.775, 0.0219) .lineTo(0.775, 0.425) .lineTo(0.0219, 0.425) .close() .extrude(0.2812) ) ...
The design consists of two main parts. The first part is a cylindrical base with a height of 0.7143 units, and both its length and width are 0.0357 units. The second part is a flat circular top with a height of 0.0357 units, and both its length and width are 0.3571 units. These parts are assembled together to form a fi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .extrude(0.7109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.164062, 0.75, 0.164062)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1804, 0.1804) .circle(0...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a circular sketch and scale it down. Transform this scaled sketch into a three-dimensional shape by applying the same rotations and translations used in the coordinate system. Finally, extrude the sketch to form a solid cylin...
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/0073/00738392.stl")
The design involves creating a cylindrical shape with a central hole. The cylinder has a uniform cross-section that is circular with a smaller concentric circle cut out to form the hole. The outer diameter of the cylinder is 0.75 units, and the inner diameter of the hole is approximately 0.2728 units. The height of 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/0011/00113860.stl")