input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design involves creating a triangle-shaped object with a hollow center and a protruding edge on one side. The first step is to establish a new coordinate system with default settings. The first face of the object is defined by two loops, each consisting of arcs and lines that form the outer and inner boundaries of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0441) .threePointArc((0.0118, 0.0118), (0.0441, 0)) .lineTo(0.4059, 0) .lineTo(0.7294, 0) .threePointArc((0.7471, 0.0118), (0.75, 0.0324)) .lineTo(0.4559, 0.5706) .threePointArc((0.4059, 0.6029), (0.3559, 0.5...
The design involves creating a cylindrical rod with a rectangular cross-section at one end. The rod has a uniform height of 0.75 units and a square base with sides measuring 0.0375 units. The rectangular cross-section is formed by extruding a scaled 2D sketch, which consists of two concentric circles, into a 3D solid. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .moveTo(0.0196, 0.0196) .circle(0.0156) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0093/00937012.stl")
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on the first face. This rectangle has four sides, forming a closed loop. After drawing the rectangle, scale it down to 75% of its original size. Transform the sketch to maintain its alignment with the coordinate system. Extrude t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1484) ) result = part_1 cq.exporters.export(result, "./stlcq/0034/00348105.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a complex shape composed of several lines forming an irregular polygon. Inside this polygon, draw two circles representing the cylindrical holes. Scale the entire sketch to reduce its size. Transform the scaled sketch into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4088, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2059) .lineTo(0.75, 0.2735) .lineTo(0.6147, 0.5441) .lineTo(0.1353, 0.5441) .lineTo(0, 0.5441) .lineTo(0, 0.3412) .close() .moveTo(0.4088, ...
The design involves creating a rectangular plate with four holes on each of its two faces. The first face features a rectangle with four smaller circles positioned at strategic points. Similarly, the second face has a larger rectangle with four smaller circles. These shapes are then scaled down by 75% and transformed i...
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() .moveTo(0.0353, 0.0235) .circle(0.0118) .moveTo(0.2706, 0.7265) .circle(0.0118) .moveTo(0.0353, 0.7265) .circle(0.0118) ...
The design involves creating a curved, asymmetrical shape with a flat base and a curved top. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a complex two-dimensional sketch consisting of arcs and lines to form the outline of the shape. This sketch is then scaled do...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0233, 0.0815) .threePointArc((0, 0.0204), (0.0611, 0)) .lineTo(0.4511, 0.2066) .threePointArc((0.6374, 0.2037), (0.7305, 0.0466)) .threePointArc((0.7364, 0.0407), (0.7422, 0.0466)) .threePointArc((0.652, 0.227), (0....
Start by creating a new coordinate system and setting the orientation and position according to the specified Euler angles and translation vector. Draw a two-dimensional sketch on the first face, forming a loop with several lines to create a rectangular shape with rounded corners. Scale this sketch to fit the desired s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0755) .lineTo(0, 0.151) .lineTo(0, 0.2266) .lineTo(0.2266, 0.2266) .lineTo(0.2266, 0) .lineTo(0.1137, 0) .lineTo(0.1137, 0.0755) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangle on the defined plane, then scale it down to 75% of its original size. Rotate and translate the scaled rectangle to position it correctly. Finally, extrude the rectangle along the normal direct...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6118) .lineTo(0, 0.6118) .close() .extrude(0.4297) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.429688, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of three main sections: a cylindrical base, a rounded top section, and a rounded bottom section. The cylindrical base has a height of approximately 0.53 units and a diameter of about 0.10 units. The rounded top section, which is added to the top of the cylindrical base, has a height of around 0.10 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0471, 0.0471) .circle(0.0467) .extrude(0.5312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.125, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0353, 0...
The design involves creating a rectangular plate. Begin by setting up a coordinate system aligned with the global axes. Then, draw a rectangular sketch on a plane. The sketch forms a rectangle with a specific aspect ratio. After completing the sketch, scale it down to fit the desired dimensions. Transform the scaled sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4824) .lineTo(0, 0.4824) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00390129.stl")
Start by creating a new coordinate system aligned with the global axes. Draw a two-dimensional rectangle on the X-Y plane, ensuring that it forms a closed loop. Scale this rectangle to fit the desired dimensions. Transform the scaled rectangle into a three-dimensional object by extruding it along the Z-axis to create a...
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.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00909751.stl")
The design involves creating a square plate with rounded corners and four holes at the corners. The plate has a general rectangular shape with rounded edges, ensuring smooth transitions at the corners. Four small circular holes are positioned near the corners of the plate. The plate is then transformed into a three-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0235) .threePointArc((0.0059, 0.0059), (0.0235, 0)) .lineTo(0.6794, 0) .threePointArc((0.6971, 0.0059), (0.7059, 0.0235)) .lineTo(0.7059, 0.0441) .lineTo(0.7059, 0.7265) .threePointArc((0.6971, 0.7441), (0.67...
The design involves creating a cylindrical ring with a precise internal and external diameter. Start by setting up a new coordinate system and drawing two concentric circles on a single face. These circles define the inner and outer boundaries of the ring. After drawing, scale the entire sketch to reduce its size. 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.3176) .extrude(0.1406) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00904940.stl")
The design involves creating a rectangular prism with a cylindrical base and a rectangular top. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. The first face of the model consists of a complex loop made up of eleven curves, including lines and arcs. After drawing the lo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.05) .lineTo(0.0559, 0.0176) .lineTo(0.1382, 0.0176) .threePointArc((0.1882, 0.05), (0.2353, 0.0176)) .lineTo(0.3676, 0.0176) .threePointArc((0.3824, 0), (0.4, 0.0176)) .lineTo(0.4794, 0.0176) .threePointA...
Design a rectangular plate with rounded edges and a flat surface. Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, ensuring the dimensions are proportional to the final desired size. Scale the rectangle to fit the required dimensions. Transform...
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/0040/00408706.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular sketch on the X-Y plane, ensuring that the sides are equal to form a square. Scale this sketch to reduce its size proportionally. Transform the scaled sketch into a three-dimensional object by extruding it along the normal direc...
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/0024/00244190.stl")
The design consists of three main parts. The first part is a long, slender, and slightly curved object with a circular hole near its base. It measures approximately 0.75 units in length, 0.15 units in width, and 0.02 units in height. The second part is a small cylinder with flat circular top and bottom, measuring aroun...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0588) .lineTo(0.4735, 0) .lineTo(0.6765, 0) .threePointArc((0.6059, 0.0735), (0.6765, 0.1441)) .lineTo(0.4735, 0.1441) .lineTo(0, 0.0882) .close() .extrude(0.0234) ) part_1 = part_1.union( cq.Workplan...
The design involves creating a simple, symmetrical shape with a rectangular base and a triangular top. Start by setting up a new coordinate system with default settings. Draw a complex closed loop on a flat surface, forming a unique shape that transitions from a rectangular section to a triangular section. After comple...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0412, 0) .lineTo(0.0412, 0.0235) .lineTo(0.2529, 0.0235) .lineTo(0.2529, 0) .lineTo(0.5206, 0) .lineTo(0.75, 0.1529) .lineTo(0.75, 0.1882) .lineTo(0.5206, 0.3412) .lineTo(0.2529, 0.3412...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a triangular face and scale it down. Transform this scaled triangular face into a 3D object by rotating and translating it according to the coordinate system settings. Extrude the transformed face to create a solid body....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.7471) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0001/00019679.stl")...
Create a triangular plate with five circular holes. The plate is initially drawn as a two-dimensional sketch on the workplane, forming a triangle with five smaller circles inside. After the initial sketch, the entire shape is scaled down to fit the desired dimensions. The final three-dimensional model is created by ext...
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.2529, 0.7529) .lineTo(0, 0.75) .close() .moveTo(0.1235, 0.1235) .circle(0.0324) .moveTo(0.3765, 0.1235) .circle(0.0324) .moveTo(0.6265, 0.1235) ...
The first part of the cylindrical object is created by defining a new coordinate system and drawing a circular shape on the first face. The circle is then scaled down, rotated, and translated to align with the desired orientation. The scaled and transformed circle is extruded to form a solid body, resulting in a rounde...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0067/00670327.stl")
Create a rounded cylindrical base by starting with a new coordinate system aligned with the global axes. Draw a circular shape with a concentric inner circle, then scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object and extrude it to form a solid body. The resulting s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.3529) .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0082/00829374.stl")
Start by creating a new coordinate system and drawing a circular base on the first face. This circle is then scaled down and transformed into a three-dimensional cylindrical shape. Next, draw another smaller circle on the second face, scale it down, and transform it into a smaller cylindrical shape. Both cylinders are ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1181, 0.1181) .circle(0.1152) .extrude(0.1641) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1181, 0.6653) .circle(0.0691) .extrude(0.1641) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0...
Begin by setting up a new coordinate system with default angles and positions. Draw a circle in the initial two-dimensional sketch, then scale it down to fit the desired dimensions. Transform the scaled sketch to ensure it remains in the correct position. Extrude the sketch to create a solid cylindrical base with a rou...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0063/00636687.stl")
The design involves creating a rectangular base that will be transformed into a cube with rounded edges and corners. Begin by setting up a new coordinate system and drawing a two-dimensional sketch of a rectangle on a new face. The rectangle is then scaled down and positioned using a translation vector. The scaled and ...
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.0781) ) part_1 = part_1.translate((0, 0, 0.671875)) result = part_1 cq.exporters.export(result, "./stlcq/0081/00811570.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a 2D sketch on the first face, forming a complex cross shape with twelve connected lines. Scale the sketch to reduce its size, then transform it into a 3D object by applying the initial rotations and translations. Extrude the 2D sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4294) .lineTo(0, 0.5353) .lineTo(0.2147, 0.5353) .lineTo(0.2147, 0.75) .lineTo(0.3206, 0.75) .lineTo(0.3206, 0.5353) .lineTo(0.5353, 0.5353) .lineTo(0.5353, 0.4294) .lineTo(0.3206, 0.4294) .lineTo...
The rectangular block is a simple yet precise component. It features a rectangular shape with slightly rounded top and bottom edges, ensuring a smooth transition between surfaces. The block maintains a uniform thickness throughout its length and width, providing a consistent profile. The overall dimensions are designed...
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.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.1875, 0)) result = part_1 cq.exporters.export(result, "./s...
The design involves creating a square plate with rounded corners and four holes at the corners. The plate is initially drawn as a square with four smaller circles positioned near each corner. After scaling the sketch, the design is transformed into a three-dimensional object by extruding it to create a solid body. The ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0118, 0.0118) .circle(0.0059) .moveTo(0.0118, 0.7382) .circle(0.0059) .moveTo(0.7382, 0.0118) .circle(0.0059) .mov...
Start by setting up a new coordinate system with specific rotations and translations to position the part correctly. Then, create a rectangular sketch that forms the base of the part. This sketch is scaled down to fit the desired dimensions and transformed into a three-dimensional object. The final step involves extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3147) .lineTo(0, 0.3147) .close() .extrude(0.0547) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.054688, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch that forms a rectangular shape with a cutout. The main rectangle has a length and width, while the cutout is positioned within it. 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, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0.6559, 0.3765) .lineTo(0.6559, 0.1882) .lineTo(0.0941, 0.1882) .lineTo(0.0941, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.5625) ) part_1 = part...
The design consists of two main parts. The first part is a triangular prism with a hollow center and rounded edges. This triangular prism has a length of approximately 0.7414 units, a width of about 0.659 units, and a height of around 0.0179 units. The second part includes three cylindrical supports that are attached t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0524) .threePointArc((0.0029, 0.0175), (0.032, 0)) .lineTo(0.7102, 0) .lineTo(0.7131, 0) .threePointArc((0.7393, 0.0175), (0.7422, 0.0524)) .lineTo(0.4017, 0.6403) .lineTo(0.4017, 0.6432) .threePointArc((...
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a circle and scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by extruding it along the normal direction. This extrusion forms a thin cylinder base. The final dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00401694.stl")
Start by creating a rectangular bracket with rounded edges and two circular holes. The bracket has a rectangular base with rounded corners and two smaller circular holes positioned near the top and bottom of the bracket. After drawing the initial 2D sketch, scale it down to fit the desired dimensions. The final part wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0971) .threePointArc((0.0294, 0.0294), (0.0971, 0)) .lineTo(0.2588, 0) .lineTo(0.2588, 0.75) .lineTo(0.0971, 0.75) .threePointArc((0.0294, 0.7206), (0, 0.6529)) .close() .moveTo(0.1471, 0.6029) .circl...
Create a new coordinate system with specific angles and translations, then draw a rectangular sketch on the first face. This sketch forms a loop with four lines to create a rectangle. Scale the sketch to reduce its size, then transform it into three dimensions by rotating and translating it according to the coordinate ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.0625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.0625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0...
Start by creating a new coordinate system and setting the Euler angles to zero degrees for all axes. Define a translation vector to position the model. Draw a circle on a new face and scale it down to fit the desired size. Transform this 2D sketch into 3D by applying the rotation and translation from the coordinate sys...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1608, 0.1608) .circle(0.1595) .extrude(0.5391) ) part_1 = part_1.translate((0.109375, 0.109375, 0.210938)) result = part_1 cq.exporters.export(result, "./stlcq/0098/00985781.stl")
Create a rectangular plate by starting with a new coordinate system aligned with the global axes and positioned at a height of 0.0375 units. Sketch a rectangle on the first face, ensuring that the dimensions are proportional to the desired final size. Transform this 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.5059) .lineTo(0, 0.5059) .close() .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00902974.stl")
Start by creating a new coordinate system with specific angles and a translation vector. Draw a two-dimensional sketch that forms a closed loop consisting of two arcs and two lines. Scale this sketch to fit the desired dimensions. Transform the scaled sketch into three dimensions by applying the rotation and translatio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.1945, 0.1945), (0.3906, 0)) .lineTo(0.3738, 0) .threePointArc((0.1945, 0.1792), (0.0169, 0)) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)...
The first part is a cylindrical object with a central circular hole. It has a length and width of 0.46875 units and a height of 0.1015625 units. The second part is a smaller cylindrical object with a rectangular top and a central circular hole. It has a length and width of 0.4375 units and a height of 0.03125 units. Bo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .moveTo(0.2353, 0.2353) .circle(0.125) .extrude(0.1016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .mov...
Start by creating a new coordinate system with specific angles and no translation. Sketch a rectangular shape on the first face, then draw a smaller rectangle inside it. Scale the sketch to reduce its size, and then rotate and translate it to align with the coordinate system. Finally, extrude the sketch to create a sol...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0234, 0) .lineTo(0.0234, 0.0118) .lineTo(0, 0.0118) .close() .moveTo(0.0007, 0.0007) .lineTo(0.0227, 0.0007) .lineTo(0.0227, 0.011) .lineTo(0.0007, 0.011) .close() .extrude(0.75) ) ...
The first part involves creating a circular plate with a central hole. The plate has a flat, circular shape with a uniform thickness. The central hole is concentric with the plate's center. The plate measures 0.75 units in both length and width, and 0.028125 units in height. The second part involves constructing a cyl...
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.1382) .extrude(0.0312) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.1382) .moveTo(0.3765, 0.3765) .cir...
Start by setting up a new coordinate system with default angles and translations. Then, draw a two-dimensional square sketch for the first face. This square will serve as the base of the cube. After completing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional objec...
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/0059/00596078.stl")
Create a rectangular base with rounded edges by starting with a new coordinate system and drawing a two-dimensional sketch of a rectangle. The rectangle has a length of approximately 0.75 units and a width of about 0.4128 units. Scale the sketch to fit the desired dimensions and transform it into a three-dimensional ob...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4118) .lineTo(0, 0.4118) .close() .extrude(0.1641) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.164062, 0)) result = part_1 cq.exporters.export(result, "....
The first part involves creating a rectangular base with a triangular top. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a complex shape with a rectangular base and a triangular top. After scaling the sketch, rotate and translat...
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.5794, 0.75) .lineTo(0.1882, 0.0706) .lineTo(0, 0.0706) .close() .extrude(0.6562) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0,...
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 complex shape with several lines. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the rotation and trans...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0.5618, 0.5618) .lineTo(0.3765, 0.1912) .lineTo(0.1882, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, ...
The cylindrical object features a flat circular top and bottom. To create this, start with a circular base that is then scaled down to fit the desired dimensions. This circular base is transformed into a three-dimensional shape by extruding it upwards to form the cylinder. The final dimensions of the cylinder are a hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.3594) ) result = part_1 cq.exporters.export(result, "./stlcq/0016/00167408.stl")
The design involves creating a rectangular prism with a curved top and a semicircular cutout. The first step is to establish a new coordinate system with specific angles and translations. Two identical two-dimensional sketches are drawn, each forming a rectangle with a curved section and a semicircular cutout. These sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0) .lineTo(0.7109, 0.4991) .lineTo(0.5687, 0.4991) .threePointArc((0.3569, 0.2844), (0.1422, 0.4991)) .lineTo(0, 0.4991) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane(...
The design consists of two main parts that form a single rectangular prism. The first part is a small rectangular prism with a length of 0.16182572614107885, a width of 0.031120331950207476, and a height of 0.003112033195020747. This part is created by drawing a two-dimensional sketch and then extruding it to form a so...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1641, 0) .lineTo(0.1641, 0.0315) .lineTo(0, 0.0315) .close() .moveTo(0.0032, 0.0032) .lineTo(0.1608, 0.0032) .lineTo(0.1608, 0.0283) .lineTo(0.0032, 0.0283) .close() .extrude(0.0078...
Start by creating a new coordinate system with specific rotational and translational settings. Draw a circular shape on a new face, then scale and transform this shape according to predefined parameters. Extrude the transformed shape in both directions along its normal to create a solid cylindrical object. The final di...
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/0010/00103198.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circular sketch on a face, position it accurately, and then scale the sketch to the desired size. Transform the scaled sketch into three dimensions by applying a rotation and translation. Extrude the sketch in both dir...
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/0016/00162417.stl")
The first part involves creating a cylindrical shape with a central hole. This part has a length and width of zero point seven five and a height of zero point two three zero eight. The second part involves constructing a torus-like shape with a circular cross-section and a central hole. This part has a length and width...
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.1147) .extrude(0.2344) ) 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")...
Start by creating a new coordinate system with specific rotations and translations. Draw a complex two-dimensional sketch that forms a rectangular base with a sloped top surface. This sketch includes several lines that create a unique shape. After drawing the sketch, apply a scale factor to adjust its size. Transform t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1265, 0) .lineTo(0.1265, 0.0618) .lineTo(0.5, 0.0618) .lineTo(0.5, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0.3118, 0.5) .lineTo(0, 0.5) .close() .extrude(0.375) ) part_1 =...
The design consists of two main parts: a rectangular plate and a rectangular shelf. The rectangular plate has a length of 0.75, a width of 0.4597, and a height of 0.0121. It is created by extruding a two-dimensional sketch along the normal direction. The rectangular shelf, which is positioned slightly above and to the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4588) .lineTo(0, 0.4588) .close() .extrude(0.0156) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0488, 0) .lineTo(0.0488, 0.4609) .l...
Start by creating a rectangular plate with rounded edges and a flat surface. The plate has a length of approximately 0.75 units, a width of about 0.35 units, and a height of around 0.013 units. The plate is created by first drawing a two-dimensional rectangular sketch, scaling it down, and then extruding it to form a s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3471) .lineTo(0, 0.3471) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00051833.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape on the first face, then scale this rectangle to reduce its size. After scaling, rotate and translate the rectangle to align it correctly in space. Next, extrude the rectangle to create a three-dimensional rectan...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2882) .lineTo(0, 0.2882) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system aligned with the global axes. Draw a circular shape on the first face, then scale this shape to reduce its size. Transform this scaled shape into a three-dimensional object by extruding it along the normal direction to create a cylinder with a height of 0.75 units. The resultin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3216, 0.3216) .circle(0.3191) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0081/00810350.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch on the first face, which includes two concentric circles. After drawing the sketch, scale it down to a smaller size. Transform the scaled sketch into three-dimensional space by applying the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.051, 0.051) .circle(0.0506) .moveTo(0.051, 0.051) .circle(0.0374) .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...
The first part of the design involves creating a hexagonal base that forms the foundation of a cylindrical structure. Start by setting up a new coordinate system with specific orientation and position adjustments. Next, draw a hexagon in a two-dimensional plane. After completing the hexagon, transform it into a three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0236) .lineTo(0.0137, 0) .lineTo(0.041, 0) .lineTo(0.0547, 0.0236) .lineTo(0.041, 0.0474) .lineTo(0.0137, 0.0474) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, ...
Create a cylindrical base by starting with a circular sketch. The circle is centered and scaled down to fit the desired dimensions. Transform the sketch into a three-dimensional object and extrude it to form a solid cylinder. The cylinder has a flat circular top and bottom, with the top surface slightly recessed. The o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0049/00498752.stl")
The first step involves creating a rectangular base for the model. This base has a length of approximately 0.75 units, a width of 0.6138 units, and a height of 0.1041 units. The base is formed by drawing a rectangle and then extruding it to create a solid three-dimensional shape. The dimensions ensure that the base is ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6147) .lineTo(0, 0.6147) .close() .extrude(0.1016) ) result = part_1 cq.exporters.export(result, "./stlcq/0046/00461118.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape with rounded edges on the first face. Scale this shape to fit the desired dimensions. Rotate and translate the scaled shape to position it correctly in the three-dimensional space. Extrude the shape a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1) .lineTo(0, 0.1) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0033/...
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 complex shape with eight lines. After completing the sketch, scale it to fit the desired size. Rotate and translate the scaled sketch to align it correctly. Extrude the s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4531, 0) .lineTo(0.4531, 0.0338) .lineTo(0.3998, 0.0338) .lineTo(0.3998, 0.0693) .lineTo(0.0533, 0.0693) .lineTo(0.0533, 0.0338) .lineTo(0, 0.0338) .close() .extrude(0.75) ) part_1 = pa...
The design consists of two main parts. The first part is an S-shaped object with a rectangular cross-section. This object features a continuous, smooth curve forming the S-shape, with parallel top and bottom edges and straight sides. The dimensions of this part are a length of 0.75, a width of 0.625, and a height of 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3118, 0) .lineTo(0.3118, 0.1235) .lineTo(0.4382, 0.1235) .lineTo(0.4382, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6265) .lineTo(0.4382, 0.6265) .lineTo(0.4382, 0.5) .lineTo(0.3118, 0.5) ...
Create a new coordinate system with default settings to establish the origin point. Draw a two-dimensional rectangle on the first face, ensuring that the corners are slightly rounded. Scale the rectangle to fit the desired dimensions. Transform the scaled sketch into a three-dimensional model by extruding it along the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4294) .lineTo(0, 0.4294) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0087/00873720.stl")
The first part of the design involves creating a rectangular prism with a triangular top and a flat base. The overall structure starts with a triangular face on the top and a rectangular base. The height of the part is 0.75 meters, the width is 0.3 meters, and the length is 0.3464 meters. The triangular top is position...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3438, 0) .lineTo(0.1725, 0.2979) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0050/00500536.stl"...
The first part involves creating a rectangular plate. The plate has a length of 0.7500000000000001 units, a width of 0.23076923076923078 units, and a height of 0.00923076923076923 units. The second part involves adding protruding blocks to the top surface of the plate. These blocks are positioned at specific locations ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2294) .lineTo(0, 0.2294) .close() .extrude(0.0078) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0706, 0) .lineTo(0.0706, 0.0706) .l...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape on a plane, then scale this shape to reduce its size. Transform the scaled shape into three-dimensional space by applying a rotation and a translation. Finally, extrude the shape along its normal to create a sol...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2912) .lineTo(0, 0.2912) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.226562, 0)) result = part_1 cq.exporters.export(result, "....
The first part involves creating a rectangular prism with rounded edges. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch of a rectangle on the first face, then scale and transform it into three dimensions. Extrude the sketch to create a soli...
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.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09375, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
The design consists of three main parts that combine to form a rectangular bracket with a rectangular top and base. The first part is a rectangular plate with rounded corners and a cutout on one side, featuring two holes on the top edge. This part is extruded to a height of 0.0295 units. The second part is a smaller re...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.032353) .threePointArc((0.008824, 0.008824), (0.032353, 0)) .lineTo(0.717647, 0) .threePointArc((0.741176, 0.008824), (0.75, 0.032353)) .lineTo(0.75, 0.311765) .threePointArc((0.741176, 0.332353), (0.717647, 0.34...
The rectangular box base is constructed by creating a new coordinate system and drawing a two-dimensional sketch on a face. This sketch forms a rectangle with a length of 0.3281 units and a width of 0.75 units. The sketch is then transformed into three-dimensional space and extruded to create a solid body with a height...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3294, 0) .lineTo(0.3294, 0.75) .lineTo(0, 0.75) .close() .extrude(0.125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.125, 0)) result = part_1 cq.exporters.export(result, "./stl...
The first part of the CAD model is a rectangular block with a curved top and a circular hole in the center. This block measures 0.75 units in length, 0.4173 units in width, and 0.1002 units in height. The second part is a rectangular prism with a slightly rounded top and bottom, positioned on one side of the first part...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5412, 0) .lineTo(0.5441, 0.0029) .lineTo(0.5412, 0.1029) .threePointArc((0.4382, 0.2088), (0.5412, 0.3118)) .lineTo(0.5412, 0.4147) .lineTo(0.5412, 0.4176) .lineTo(0, 0.4176) .close() ....
To create the rounded rectangular base, start by setting up a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch of a rectangle on the first face. This rectangle will be scaled down and then transformed into three dimensions by applying the specified rotation ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0) .lineTo(0.7109, 0.4628) .lineTo(0, 0.4628) .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...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular section with a smaller inner rectangle, forming a hollow structure. This shape is then scaled down and transformed into a three-dimensional object by rotating and translating it according to predefined angles and vect...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0234, 0) .lineTo(0.0234, 0.0234) .lineTo(0, 0.0234) .close() .moveTo(0.0014, 0.0014) .lineTo(0.0221, 0.0014) .lineTo(0.0221, 0.0221) .lineTo(0.0014, 0.0221) .close() .extrude(0.75) ...
The design involves creating a rectangular section. Begin by setting up a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch of a rectangle on the defined plane. This rectangle is then scaled down and transformed into three dimensions by applying the predefined rotations and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0412, 0) .lineTo(0.0412, 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.023438, 0)) result = part_1 cq.exporters.export(result, "....
Create a cylindrical object with a flat circular top and bottom and smooth edges. The cylinder is formed by extruding a circular sketch along its normal direction. The final dimensions of the cylinder are 0.75 units in both length and width, and 0.0492 units in height. The cylinder has a uniform thickness throughout, m...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0004/00049022.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on the first face, then scale the circle to reduce its size. Transform the scaled circle into a three-dimensional form by extruding it along the normal direction to create a solid cylinder. The final cylinder has a height of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.5391) ) result = part_1 cq.exporters.export(result, "./stlcq/0071/00718457.stl")
The design involves creating a rounded cylindrical object. Start by setting up a coordinate system with no rotation and a slight vertical translation. Draw a circle on a flat surface, then scale it down to fit the desired size. Transform this 2D sketch into a 3D model by extruding it equally in both directions along it...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0469) ) part_1 = part_1.translate((0, 0, 0.023438)) result = part_1 cq.exporters.export(result, "./stlcq/0098/00983138.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a rectangular base with a smaller rectangular extension. The base has a larger rectangle connected to a smaller rectangle on one side. Transform this sketch into three-dimensional spac...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3853) .lineTo(0.1912, 0.3853) .lineTo(0.1912, 0.1912) .lineTo(0, 0.1912) .close() .extrude(0.2344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.2343...
The first part is a cylindrical object with rounded edges. It has a length of 0.7207, a width of 0.1061, and a height of 0.1303. The second part is a smaller cylindrical object with a length of 0.0511, a width of 0.0511, and a height of 0.322. These two parts are positioned such that the smaller cylinder sits on top of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0225, 0) .lineTo(0.6652, 0) .threePointArc((0.7188, 0.0536), (0.6652, 0.1071)) .lineTo(0.0225, 0.1071) .threePointArc((0.0761, 0.0536), (0.0225, 0)) .close() .moveTo(0.6652, 0.0536) .circle(0.0254) .move...
The design consists of two main parts. The first part is a cube with a cylindrical hole. The cube measures 0.6429 units in length, width, and height. The cylindrical hole is centered within the cube. The second part is a cylindrical base that measures 0.5357 units in length and width, and 0.1071 units in height. The cy...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6406, 0) .lineTo(0.6406, 0.6406) .lineTo(0, 0.6406) .close() .moveTo(0.3216, 0.3216) .circle(0.2663) .extrude(0.6406) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.640625, ...
The design consists of two cylindrical parts. The first part is a flat-topped cylinder with a circular base. It has a length and width of approximately 0.447 units and a height of about 0.022 units. The second part is a longer cylinder with a smooth surface and rounded edges. It has a length and width of around 0.112 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2235, 0.2235) .circle(0.2218) .extrude(0.0234) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0549, 0.0549) .circle(0.0545) .ex...
The design consists of three main parts. The first part is a cube with a length, width, and height of 0.4413, 0.4413, and 0.2863, respectively. The second part is a cylindrical object with a diameter of 0.1551 and a height of 0.4413. The third part is a rectangular prism with an angled top, measuring 0.1012 in length, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4375, 0) .lineTo(0.4375, 0.4375) .lineTo(0, 0.4375) .close() .moveTo(0.0086, 0.0086) .lineTo(0.4289, 0.0086) .lineTo(0.4289, 0.4289) .lineTo(0.0086, 0.4289) .close() .extrude(0.2891...
The design involves creating a rectangular base with a square top and a U-shaped hollow. Start by defining a new coordinate system with default settings. The first face features a rectangular shape with a smaller rectangle cut out, forming a U-shape. The second face includes a smaller square, and the third face complet...
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, 0.25) .close() .extrude(0.25) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.25, 0.5) .lineTo(0.5, 0.5) .lineTo(0.5, ...
The design consists of two main parts: a rectangular base and a vertical extension. The rectangular base has a length of 0.7164, a width of 0.75, and a height of 0.75. The vertical extension, which is attached to the top of the base, has a length of 0.7164, a width of 0.7164, and a height of 0.7164. The vertical extens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7176, 0) .lineTo(0.7176, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7188, 0) .lineTo(0.7188, 0.7188) .line...
Start by creating a hollow cylindrical object with rounded edges. Begin with a new coordinate system, then draw two concentric circles on a face to define the inner and outer diameters. Scale the circles to adjust the size, rotate and translate the sketch to position it correctly. Extrude the sketch to create a three-d...
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.2324) .extrude(0.2969) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.296875, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on a new face, ensuring it forms a closed loop. Transform this sketch into a three-dimensional object by extruding it along the normal direction to create a solid body. The final shape is a rectangular prism with a height of 0.75...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5469, 0) .lineTo(0.5469, 0.5447) .lineTo(0, 0.5447) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0084/00846041.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a two-dimensional sketch consisting of two concentric circles. The outer circle represents the outer boundary, while the inner circle defines the hollow section. Scale down the entire sketch to half its original size. Conve...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.251, 0.251) .circle(0.249) .moveTo(0.251, 0.251) .circle(0.1451) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0033/00339608.stl")
Start by creating a new coordinate system with Euler angles set to zero and a translation vector of 0.0183, 0.0183, 0.0. On the first face, draw a series of loops to define the shape. The first loop consists of a single circle, while the second loop is made up of several arcs that form a complex curve. The third, fourt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1071, 0.2227) .threePointArc((0.0028, 0.0366), (0.2142, 0.0592)) .threePointArc((0.3608, 0.1099), (0.5045, 0.0451)) .threePointArc((0.7188, 0.0479), (0.5919, 0.2227)) .threePointArc((0.4763, 0.3241), (0.4594, 0.4792)) ...
Start by creating a new coordinate system with default settings. Draw a circular shape on a new face, ensuring it is centered and has a consistent size. Scale the circular shape to reduce its dimensions. Transform the scaled shape into a three-dimensional object by extruding it along the vertical axis. The resulting so...
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/0003/00034053.stl")
The cylindrical object is created by first establishing a new coordinate system with specific orientation and position adjustments. A circular shape is drawn on a plane, then scaled down to a smaller size. This scaled circle is transformed into a three-dimensional space and positioned accordingly. Finally, the circle i...
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/0028/00282014.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw two concentric circles. The larger circle represents the outer boundary of the cylinder, while the smaller circle defines the central hole. Scale down the entire sketch to fit within a square base of 0.75 units by 0.75 unit...
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/0018/00180881.stl")
To create a hollow cylindrical object, begin by setting up a new coordinate system. Draw a two-dimensional sketch consisting of two concentric circles, forming a ring shape. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by extruding it along the normal direction. This ...
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.625) ) result = part_1 cq.exporters.export(result, "./stlcq/0072/00726500.stl")
The design involves creating a rectangular prism base. A new coordinate system is established with specific angles and translations. The base is defined by drawing a rectangular loop and then scaling it down. This scaled sketch is rotated and translated into position. The sketch is then extruded to form a solid body. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0824) .lineTo(0, 0.0824) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch that forms a curved, elongated shape with a flat top and rounded bottom. The sketch includes a straight line segment, another line segment, and an arc connecting them. After completing the sketch, scale it down to fit the des...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.3088, 0) .lineTo(0.3088, 0.2794) .threePointArc((0.2235, 0.5618), (0, 0.75)) .close() .extrude(0.1406) ) result = part_1 cq.exporters.export(result, "./stlcq/0000/00001210.stl")
The design involves creating a cylindrical object with a hollow center and flat circular ends. The cylinder has a length and width of approximately 0.75 units and a height of about 0.26 units. The outer diameter of the cylinder is larger than the inner diameter, creating a hollow space within. The cylinder is created b...
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.2588) .extrude(0.2578) ) result = part_1 cq.exporters.export(result, "./stlcq/0019/00193821.stl")
The cylindrical object is constructed by creating a circular base and extending it vertically to form a solid cylinder. The base has a diameter that is approximately equal to its height. The cylinder stands 0.75 units tall, and both its width and depth measure around 0.1145 units. The cylinder is created by extruding a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0584, 0.0584) .circle(0.0588) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0098/00983937.stl")
The design involves creating a flat circular disk with a central hole. The disk has a square base with a side length of 0.75 units and a thickness of 0.0375 units. The central hole is smaller, creating a donut-like shape. The final part is a solid body that can be used in various mechanical applications where a flat, c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.0912) .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00501849.stl")
To create a cylindrical ring with a hollow center and flat circular top and bottom surfaces, start by setting up a new coordinate system. Draw a two-dimensional sketch consisting of two concentric circles, forming a ring shape. Transform this sketch into three-dimensional space and then extrude it to create the final s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2863, 0.2863) .circle(0.284) .moveTo(0.2863, 0.2863) .circle(0.208) .extrude(0.1641) ) part_1 = part_1.translate((0.09375, 0.09375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0033/00338049.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular face in a two-dimensional sketch, then scale this sketch to reduce its size. Transform the scaled sketch into three-dimensional space by rotating and translating it according to the coordinate system settin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5059) .lineTo(0, 0.5059) .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 modified rectangular prism with rounded corners and a curved top surface. Begin by setting up a new coordinate system aligned with the default axes. Draw a two-dimensional sketch on the first face, forming a loop with an arc and three lines. The arc creates a smooth curve at one corner, while the lines form th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.3765, 0.1294), (0.75, 0)) .lineTo(0.75, 0.4647) .lineTo(0, 0.4647) .close() .extrude(0.375) ) result = part_1 cq.exporters.export(result, "./stlcq/0088/00885554.stl")
The design involves creating a ring-shaped object with a central hole. Start by setting up a new coordinate system aligned with the default axes. Draw a larger circle and a smaller concentric circle to define the outer and inner boundaries of the ring. Scale the sketch to fit the desired size and transform it to the co...
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.2176) .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00238497.stl")