input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The first intermediate part of the rectangular prism is a flat-topped and bottomed shape with rounded edges. This part is created by defining a rectangular base and then transforming it into a three-dimensional object. The base has a length of zero point six six six seven units and a width of zero point seven five unit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6676, 0) .lineTo(0.6676, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1094) ) 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(resul...
Construct a rectangular prism with rounded edges. Begin by setting up a new coordinate system with specific rotations and translations. Draw a closed loop on the first face, forming a quadrilateral shape. After completing the sketch, scale it down to seventy-five percent of its original size. Transform the scaled sketc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.5382, 0) .lineTo(0.5382, 0.1265) .lineTo(0.0912, 0.75) .close() .extrude(0.0859) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.085938, 0)) result = part_1 cq.exporters.export(...
Create a rectangular block by starting with a two-dimensional sketch of a rectangle. This rectangle forms the base of the block and has a length of 0.3202 meters and a width of 0.75 meters. After defining the base, transform the sketch into a three-dimensional object by extruding it 0.1458 meters along the normal direc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3206, 0) .lineTo(0.3206, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1484) ) result = part_1 cq.exporters.export(result, "./stlcq/0099/00998021.stl")
The design consists of a rectangular plate with four cylindrical protrusions on its top surface. The plate has a flat, rectangular shape with dimensions of 0.75 units in length, 0.375 units in width, and 0.075 units in height. The four cylindrical protrusions are evenly spaced along the length of the plate, each with a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3735) .lineTo(0, 0.3735) .close() .extrude(0.0781) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0189, 0.0189) .circle(0.0189) .extrude(0.0781) ) part...
The design involves creating a cylindrical object with a central hole. Start by defining a new coordinate system with specific rotations and translations. Sketch a larger circle and a smaller concentric circle on a face. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional ob...
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.5625) ) 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/...
Start by creating a new coordinate system with default settings. Draw a circular base and a smaller concentric circle to form the first two-dimensional sketch. Scale this sketch to the desired size and transform it into a three-dimensional object. Extrude the sketch along the normal direction to create a solid body wit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.035018, 0.035294) .circle(0.035018) .moveTo(0.035018, 0.035294) .circle(0.025919) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/00520399.stl")
The design consists of two cylindrical parts. The first part is a larger cylinder with a flat circular top and bottom, smooth edges, and a uniform thickness. It has a length and width of approximately 0.655 and a height of 0.0595. The second part is a smaller cylindrical extension that is added to the first part. This ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3268, 0.3268) .circle(0.3294) .extrude(0.0625) ) part_1 = part_1.translate((0.046875, 0.046875, 0.015625)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0588, 0.0588) .circle(0.0584) .extrude(0.0625) )...
The T-shaped structure consists of two perpendicular rectangular prisms connected at a right angle. The top part is a smaller rectangular prism, while the bottom part is a larger rectangular prism with a protruding section on one side. The overall dimensions of the structure are approximately 0.63 units in length, 0.35...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3871, 0) .lineTo(0.3871, 0.1812) .lineTo(0.3574, 0.1812) .lineTo(0.3574, 0.2134) .lineTo(0.6328, 0.2134) .lineTo(0.6328, 0.2903) .lineTo(0.3574, 0.2903) .lineTo(0.3574, 0.3474) .lineTo(...
Begin by setting up a new coordinate system with the Euler angles and translation vector specified. Draw a two-dimensional sketch consisting of two concentric circles. Scale the sketch to fit the desired dimensions and transform it into a three-dimensional shape by rotating and translating it according to the given par...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2706, 0.2706) .circle(0.2685) .moveTo(0.2706, 0.2706) .circle(0.2664) .extrude(0.7344) ) part_1 = part_1.translate((0.015625, 0.015625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0022/00225435.stl")
Start by creating a rectangular block with a length of 0.75 units, a width of 0.375 units, and a height of 0.1125 units. This block forms the base of the model. Next, add circular holes to the block. These holes are positioned symmetrically and have a length of 0.525 units, a width of 0.15 units, and a height of 0.1125...
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.1094) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0.0739) .lineTo(0.1498, 0.0739) .threePointArc((0.073...
The design consists of two main parts: a larger cylindrical base and a smaller cylindrical top. The base has a height of 0.1559 units and a diameter of 0.7500000291296776 units. The smaller top sits on top of the base and has a height of 0.2339 units with a diameter of 0.5149609844575207 units. Both parts are aligned a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1562) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2588, 0.2588) .circle(0.2568) .extrude(0.2344) ) part_2 = part_2.translate((0.117188, 0.117188, 0.15625)) ...
Design a rectangular block with a central circular hole. Start by creating a new coordinate system aligned with the default axes. On the first face, draw a rectangle and a smaller circle inside it. The rectangle forms the outer boundary of the block, while the circle defines the hole in the center. After defining the s...
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() .moveTo(0.3765, 0.1324) .circle(0.0882) .extrude(0.4375) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00506394.stl")
Start by creating a new coordinate system with specific angles and translations. Then, draw a circular sketch on the first face. Scale the sketch to the desired size and transform it into a three-dimensional object by applying the rotation and translation from the coordinate system. Extrude the sketch to form a solid c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.1875, 0.25, 0.203125)) result = part_1 cq.exporters.export(result, "./stlcq/0025/00250834.stl")
Start by creating a rectangular base that transitions into an offset square top. The base has a length of 0.75 units and a width of 0.5 units. The height of the model is 0.5 units. The base and the top are connected by vertical walls, forming a unique shape. The overall structure is a solid body that can be used in var...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.1265) .lineTo(0.75, 0.1265) .lineTo(0.75, 0.3765) .lineTo(0.25, 0.3765) .lineTo(0.25, 0.5) .lineTo(0, 0.5) .close() .extrude(0.5) ) result = part_1 cq.exporters...
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 rectangle with rounded corners. The sketch includes several lines and arcs that define the shape. After completing the sketch, scale it down to fit the desired size. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0941) .threePointArc((0.7235, 0.1588), (0.6559, 0.1882)) .lineTo(0.0941, 0.1882) .threePointArc((0.0265, 0.1588), (0, 0.0941)) .close() .extrude(0.0469) ) part_1 = part_1...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch that forms a rectangle with a triangular section on top. After completing the sketch, scale it down to fit the desired size. Transform the sketch into three dimensions by applying the rotat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.4382, 0.3) .lineTo(0.3118, 0.3) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90) result = part_1 cq.exporters.export(result, "./stlcq/0084/00841900.stl")
The design starts by creating a rounded rectangular base. This involves drawing two faces, each with specific lines and arcs that define the rounded edges. The first face includes a series of lines and an arc that create a rounded corner, while the second face mirrors this shape with another rounded corner. After defin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0) .lineTo(0.3765, 0.2265) .threePointArc((0.2147, 0.2912), (0.15, 0.45)) .lineTo(0, 0.45) .close() .extrude(0.2969) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0) ...
The design involves creating a cylindrical object with a hollow center. Start by setting up a coordinate system with default angles and translations. Next, draw two concentric circles to form the first face. The outer circle represents the outer boundary of the cylinder, while the inner circle defines the hollow center...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1971) .extrude(0.4531) ) result = part_1 cq.exporters.export(result, "./stlcq/0053/00533732.stl")
Start by setting up a new coordinate system with default Euler angles and translation vectors. Then, draw a rectangular shape on a new face, ensuring the sides are proportional to create a rectangle with a specific aspect ratio. After drawing the rectangle, apply a scaling factor to adjust its size. Transform the scale...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0072/00726118.stl")
The first part is a rectangular prism with rounded edges and a circular cutout near the bottom. It features a flat top and bottom with two holes on the top surface. The dimensions are approximately 0.15 meters in length, 0.75 meters in width, and 0.026 meters in height. The second part is a cylinder with a top and bott...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6706) .lineTo(0.0118, 0.0118) .threePointArc((0.0147, 0.0029), (0.0235, 0)) .lineTo(0.1294, 0) .threePointArc((0.1382, 0.0029), (0.1412, 0.0118)) .lineTo(0.1529, 0.6706) .threePointArc((0.0765, 0.75), (0, 0.6...
The first part involves creating a cube with rounded edges and corners. The cube has a length of 0.15 units, a width of 0.225 units, and a height of 0.15 units. The second part is a cylindrical object with a flat top and bottom, positioned slightly above and to the side of the cube. The cylinder has a length of 0.09 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.151, 0) .lineTo(0.151, 0.2266) .lineTo(0, 0.2266) .close() .extrude(0.1484) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0471, 0.0471) .circle(0.0467) .extrude(0.6016) ) pa...
The design consists of two main components: a cylindrical object and a rectangular prism. The cylindrical object features smooth surfaces and rounded edges, with circular tops and bottoms and straight sides. It measures 0.0962 units in length and width, and 0.75 units in height. The rectangular prism has a flat top and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0471, 0.0471) .circle(0.0467) .moveTo(0.0471, 0.0471) .circle(0.0437) .extrude(0.75) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0146, 0) .lineTo(0.0146, 0.0234) .lineTo(0,...
Start by creating a new coordinate system aligned with the global axes. On the first face, draw a rectangular sketch. The rectangle has a length of approximately 0.75 units and a width of approximately 0.4822 units. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by ali...
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.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0036/00368220.stl")
The design consists of two main parts. The first part is a rectangular block with a length of 0.703125 units, a width of 0.17578125 units, and a height of 0.05859375 units. This block is positioned slightly offset from the origin. The second part is a vertical extension that sits atop the first part. It has the same le...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7031, 0) .lineTo(0.7031, 0.1765) .lineTo(0, 0.1765) .close() .extrude(0.0625) ) part_1 = part_1.translate((0.023438, 0.023438, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
To create the rectangular prism, begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangle on the first face, then scale it down to achieve the desired size. Transform this scaled sketch into three-dimensional space by rotating and translating it a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4676) .lineTo(0, 0.4676) .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 consists of three main parts. The first part is a cube with a length of approximately 0.75 units, a width of 0.68 units, and a height of 0.67 units. This cube forms the base of the structure. The second part is a rectangular cutout that is positioned slightly off-center on the cube. It has a length of about ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6824) .lineTo(0, 0.6824) .close() .extrude(0.6719) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5234, 0) .lineTo(0.5234, 0.4578) .li...
Create a cylindrical object with a rectangular cross-section. Start by defining a new coordinate system aligned with the global axes. Draw a rectangular shape in the first face, ensuring the sides are parallel to the coordinate axes. After completing the rectangle, scale it down to fit the desired size. Transform the t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.05, 0) .lineTo(0.05, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0034/00349741.stl")
The triangular prism with a curved top and flat bottom consists of two primary faces. The first face has a rectangular base with a curved top, while the second face features a more complex shape with a series of arcs and lines forming a smooth transition from the base to the top. The overall structure is scaled down an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0941) .threePointArc((0.7471, 0.1235), (0.7382, 0.15)) .lineTo(0.3765, 0.15) .lineTo(0.0118, 0.15) .threePointArc((0.0029, 0.1235), (0, 0.0941)) .close() .extrude(0.0...
Start by creating a new coordinate system with a rotation that aligns the model correctly and a translation that positions it precisely. Draw a two-dimensional sketch on the first face, forming a complex shape with a rectangular base and a V-shaped depression. Scale this sketch to fit the desired size. Transform the sc...
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.4294, 0.5353) .lineTo(0.4294, 0.2147) .lineTo(0.2147, 0.5353) .lineTo(0, 0.5353) .close() .extrude(0.3203) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, ...
Start by creating a new coordinate system aligned with the default axes. On the initial face, draw two concentric circles, one slightly larger than the other. Scale down the entire sketch to fit the desired dimensions. Transform the sketch into a three-dimensional object by extruding it along the normal direction. 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.3706) .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0001/00010716.stl")
Construct a rectangular block by starting with a new coordinate system positioned slightly off-center. Draw a two-dimensional rectangular sketch on the first face. This rectangle is then scaled down to 75% of its original size. Transform this scaled sketch into three-dimensional space and extrude it along the normal di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2824, 0) .lineTo(0.2824, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0781) ) part_1 = part_1.translate((0.046875, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0085/00858186.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a square outline and add four small circles at each corner. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it according to the initial coo...
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.0059, 0.0059) .circle(0.0059) .moveTo(0.7441, 0.0059) .circle(0.0059) .moveTo(0.0059, 0.7441) .circle(0.0029) .mov...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape on the first face and repeat the same shape on the second face. After drawing, scale the sketch to the desired size and transform it into a three-dimensional object by rotating and translating it. Finally, extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.251) .lineTo(0, 0.251) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.251) .lineTo(0, 0.251) ...
Construct a rounded cylindrical object by defining a new coordinate system and translating it. Draw a single circle on a face within this coordinate system, scale the circle, and then rotate and translate the scaled circle. Extrude the scaled and rotated circle in both directions along the normal to create a solid body...
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/0070/00701991.stl")
The hexagonal plate is created by first defining a new coordinate system with no rotation or translation. A two-dimensional sketch of a hexagon is drawn, which is then scaled down by 75%. This scaled sketch is transformed into a three-dimensional object and extruded to create a solid body. The final dimensions of the h...
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.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0077/007703...
The design involves creating a cylindrical shape with a flat top and bottom. Start by defining a new coordinate system with specific Euler angles and a translation vector. Draw a circular loop on a new face and scale it appropriately. Transform this sketch into a three-dimensional object and extrude it to the desired h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0353, 0.0353) .circle(0.035) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0087/00872780.stl")
Start by setting up a new coordinate system with specific rotations and translations. Then, create a two-dimensional sketch on a new face within this system, drawing a single circle. Scale this sketch to the desired size and transform it into a three-dimensional object by applying the specified rotations and translatio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0353, 0.0353) .circle(0.035) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.1875, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0020/00204564.stl...
To create the solid cylinder, start by setting up a new coordinate system with no rotation or translation. Draw a circle on the first face, centering it at coordinates (0.375, 0.375) and setting the radius to 0.375 units. Scale the circle to fit the desired size and then transform it into a three-dimensional shape. Ext...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4297) ) result = part_1 cq.exporters.export(result, "./stlcq/0034/00349384.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a two-dimensional sketch that forms a complex rectangular cross-section at one end of a cylindrical rod. The sketch includes three faces, each with a unique closed loop of lines. After drawing the sketch, apply a s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0294) .lineTo(0.0235, 0.0294) .lineTo(0.0235, 0.0588) .lineTo(0.0412, 0.0588) .lineTo(0.0412, 0.0294) .lineTo(0.0647, 0.0294) .lineTo(0.0647, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0234) ) par...
The first part involves creating a rectangular block with a length of zero point seven five units, a width of zero point three seven five units, and a height of zero point zero nine three eight units. The block is created by defining a new coordinate system, drawing a two-dimensional sketch, scaling it, rotating and tr...
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.078125)) # Part 2: join part_2 = ( cq.Workplan...
The 3D model features a rectangular base with a protruding triangular section on one side. The base forms the primary structure, while the triangular section adds a distinct feature to the model. The overall dimensions of the model are a length of approximately 0.75 units, a width of about 0.48 units, and a height of r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1618) .lineTo(0.5882, 0.1618) .lineTo(0.5882, 0.3206) .lineTo(0.4294, 0.3206) .lineTo(0.4294, 0.4824) .lineTo(0, 0.4824) .close() .extrude(0.0547) ) result = par...
To create the crescent-shaped object, start by setting up a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch consisting of a single loop made up of two arcs. Scale the sketch to the desired size and then 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.2365, 0) .threePointArc((0.1627, 0.4806), (0.6484, 0.4475)) .threePointArc((0, 0.6306), (0.2365, 0)) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.101562, 0.03125, 0)) result...
Start by creating a rectangular base with a specific aspect ratio. This base is then transformed into a three-dimensional shape by extruding it along its normal direction. The resulting solid has a length of 0.75 units, a width of 0.306 units, and a height of 0.0084 units. The shape is a simple rectangular prism, and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3059) .lineTo(0, 0.3059) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0021/00212893.stl")
The CAD model consists of five main parts. The first part is a cylindrical base with a height of 0.4 units, a width of 0.15 units, and a length of 0.15 units. This base is positioned at a specific location defined by a coordinate system. The second part is a cylindrical cutout with a height of 0.25 units, a width of 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.07451, 0.07451) .circle(0.073928) .extrude(0.398438) ) part_1 = part_1.translate((0.34375, 0, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .threePointArc((0.034743, 0.035018), (0, 0.070312)) .c...
The first part involves creating a rectangular block with rounded edges and a flat top surface. The block has a length of approximately 0.0524 meters, a width of about 0.1573 meters, and a height of 0.75 meters. The second part consists of a simple symmetrical shape with a cylindrical base and a rectangular top. This s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0521, 0) .lineTo(0.0521, 0.1562) .lineTo(0, 0.1562) .close() .extrude(0.75) ) 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") ...
The design consists of two cylindrical shapes. The first part is a cylinder with a central hole. It has a length and width of approximately 0.589 units and a height of 0.118 units. The second part is a smaller cylindrical shape with a flat top and bottom, featuring a central hole. This part has a length and width of ab...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2941, 0.2941) .circle(0.2918) .moveTo(0.2941, 0.2941) .circle(0.1149) .extrude(0.1172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .mo...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a rectangular shape on the first face. This rectangle will be scaled down to fit the desired dimensions. Transform this scaled rectangle into three-dimensional space using the predefined rotations and translations. Extrude th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0765, 0) .lineTo(0.0765, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0781) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.078125, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of two main parts. The first part is a rectangular base with rounded edges, measuring approximately 0.684 meters in length and width, and 0.057 meters in height. This base is positioned slightly offset from the origin. The second part is a vertical rectangular extension with rounded edges, measuring...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6875, 0) .lineTo(0.6875, 0.6875) .lineTo(0, 0.6875) .close() .extrude(0.0547) ) part_1 = part_1.translate((0.0625, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0.5881) .l...
The design consists of three parts. The first part is a cylinder with a height of 0.15 units, a width and length of 0.75 units. This cylinder forms the base of the structure. The second part is a central hole that runs through the cylinder, with a height of 0.705 units and a diameter of 0.045 units. The third part is a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.376471, 0.376471) .circle(0.373529) .extrude(0.148438) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.148438, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.023529, 0.023346) .circle(...
To create the rectangular box base, start by setting up a new coordinate system with no rotation or translation. Draw a two-dimensional sketch on the first face, forming a rectangle with four lines. The sketch is then scaled down by 75% to fit the desired dimensions. This scaled sketch is transformed into a three-dimen...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.35) .lineTo(0, 0.35) .close() .extrude(0.5) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00397389.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first face of the cube, which consists of an outer rectangle and an inner square. The outer rectangle forms the boundary of the face, while the inner square creates a cutout. After drawing the face, scale the sketch ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.25, 0.25) .lineTo(0.5, 0.25) .lineTo(0.5, 0.5) .lineTo(0.25, 0.5) .close() .extrude(0.375) ) part_1 = part_1.rotate((0...
The design involves creating two parts: a rectangular prism and a rectangular bar. The rectangular prism has a length of 0.75 units, a width of 0.1834 units, and a height of 0.0082 units. It is positioned with a slight offset along the y-axis. The rectangular bar, which is much thinner and longer, has a length of 0.75 ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1824) .lineTo(0, 0.1824) .close() .extrude(0.0078) ) part_1 = part_1.translate((0, 0.015625, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0...
The design consists of five main parts. The first part is a rounded cylindrical base with a length of 0.7498, width of 0.2812, and height of 0.1253. This base has a smooth, curved surface that transitions into a flat top. The second part involves creating two cylindrical holes in the base, each with a height of 0.2168....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1412) .threePointArc((0.0441, 0.05), (0.1324, 0)) .lineTo(0.1324, 0.2824) .threePointArc((0.0353, 0.2412), (0, 0.1412)) .close() .extrude(0.125) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1324,...
The first part involves creating a rectangular plate with a length of approximately 0.6655, a width of 0.6655, and a height of 0.0106. The second part constructs a U-shaped bracket with a length of about 0.6866, a width of 0.6761, and a height of 0.2113. The third part forms a U-shaped bottom with a length of around 0....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6641, 0) .lineTo(0.6641, 0.6641) .lineTo(0, 0.6641) .close() .extrude(0.0078) ) part_1 = part_1.translate((0.039062, 0.023438, 0.03125)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0,...
The first part involves creating a rectangular base with a 90-degree bend. This base has a length of 0.375 units, a width of 0.75 units, and a height of 0.25 units. The second part is a smaller rectangular prism with a triangular cutout. This prism has a length of 0.1115 units, a width of 0.1995 units, and a height of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.6265) .lineTo(0.25, 0.6265) .lineTo(0.25, 0) .lineTo(0.3735, 0) .lineTo(0.3735, 0.75) .lineTo(0, 0.75) .close() .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0.2031) ...
The first part involves creating an octagonal base with rounded edges. The base has a length of approximately 0.75 units, a width of about 0.52 units, and a height of 0.0172 units. The second part is a cylindrical protrusion that extends from the center of the octagonal base. The cylinder has a diameter of about 0.0344...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1294) .lineTo(0.2265, 0) .lineTo(0.5235, 0) .lineTo(0.75, 0.1294) .lineTo(0.5265, 0.5206) .lineTo(0.3765, 0.5206) .lineTo(0.2235, 0.5206) .close() .extrude(0.0156) ) # Part 2: join part_2 = ( cq....
Start by creating a new coordinate system aligned with the global axes. Draw the first two-dimensional sketch consisting of two nested squares to define the outer and inner boundaries of the box. The outer square forms the perimeter, while the inner square creates the hollow center. Scale the sketch 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.75) .lineTo(0, 0.75) .close() .moveTo(0.0618, 0.0618) .lineTo(0.6882, 0.0618) .lineTo(0.6882, 0.6882) .lineTo(0.0618, 0.6882) .close() .extrude(0.125) ) resu...
The cylindrical object is created by starting with a circular base and extruding it to form a solid body. The base circle is centered and scaled appropriately before being transformed into a three-dimensional shape. The final dimensions of the cylinder are 0.2077 units in both length and width, and 0.75 units in height...
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/0090/00902142.stl")
The first part involves creating a rectangular prism with rounded edges. This is achieved by drawing a two-dimensional rectangle, scaling it, and then extruding it to create a three-dimensional shape. The resulting prism has a length of 0.4059 units, a width of 0.75 units, and a height of 0.0265 units. The second part ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4059, 0) .lineTo(0.4059, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0234) ) 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(...
The first part of the rectangular box is constructed by creating a new coordinate system and drawing a two-dimensional rectangle on the first face. This rectangle is then scaled down, rotated, and translated to its final position. The rectangle is extruded to form a solid body, resulting in a rectangular box with a hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 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.335938, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with no rotation and a slight vertical offset. Draw a two-dimensional sketch on the first face, forming a closed loop with four segments: two arcs and two lines. The first arc and the second arc curve smoothly, while the first line and the second line connect the arcs to form a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.06) .threePointArc((0.068, 0), (0.1562, 0.0184)) .lineTo(0.152, 0.0239) .threePointArc((0.0692, 0.0067), (0.0067, 0.0625)) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/005...
Create a new coordinate system with specific Euler angles and a translation vector to orient the model correctly. Draw a square in a two-dimensional sketch, then scale this sketch to achieve the desired size. Transform the scaled sketch into a three-dimensional object by applying the appropriate rotation and translatio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/002...
To create the rectangular prism with a rectangular cutout, start by defining a new coordinate system with specific rotations and translations. Next, draw a two-dimensional outline on a face, which forms the base of the shape. This outline consists of a larger rectangle with a smaller rectangle cut out from one corner. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0382) .lineTo(0.0382, 0.0382) .lineTo(0.0382, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, ...
Start by creating a new coordinate system and drawing a two-dimensional rectangular sketch on a new face. The rectangle has a length of 0.0268 units and a width of 0.1429 units. After drawing the sketch, scale it down proportionally. The scaled sketch is then rotated and translated to its final position. Next, extrude ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0265, 0) .lineTo(0.0265, 0.1406) .lineTo(0, 0.1406) .close() .extrude(0.0703) ) part_1 = part_1.translate((0.671875, 0.546875, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0054/00543232.s...
Start by creating a new coordinate system with specific orientation and position adjustments. Draw a rectangular shape on the first face, ensuring the sides are parallel and perpendicular to each other. Scale this rectangle to a smaller size and then rotate and translate it to align with the desired orientation and pos...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0469, 0) .lineTo(0.0469, 0.0156) .lineTo(0, 0.0156) .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 consists of two main parts. The first part is a cylindrical object with a smooth surface and rounded edges. It has a length of 0.25 units, a width of 0.25 units, and a height of 0.75 units. The second part is a hollow center within the cylindrical object. This hollow section has a length of 0.125 units, a wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .moveTo(0.1255, 0.1255) .circle(0.0618) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.0618) .extrude(0.75) ) part_1 = part_1.r...
The design consists of a cylindrical object with a rounded rectangular cross-section and two small rectangular protrusions. The main cylindrical body has a flat top and bottom, with the top surface slightly wider than the bottom. It measures approximately 0.042 units in length and width and 0.6613 units in height. The ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0098) .threePointArc((0.0029, 0.0029), (0.0098, 0)) .lineTo(0.0293, 0) .threePointArc((0.0362, 0.0029), (0.0391, 0.0098)) .lineTo(0.0391, 0.0293) .threePointArc((0.0362, 0.0362), (0.0293, 0.0391)) .lineTo(0.0...
Start by creating a new coordinate system aligned with the global axes. Draw a two-dimensional rectangular sketch on the first face, consisting of four straight lines that form a closed loop. Scale the sketch to 75% of its original size to achieve the desired proportions. Transform the scaled sketch into three dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6941) .lineTo(0, 0.6941) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0085/00852783.stl")
The design consists of two main parts. The first part is a rectangular prism called "Box" with a length of 0.75, a width of 0.75, and a height of 0.375. This part has a slightly rounded top and bottom and a flat surface on one side. The second part is a cube called "Cube" with a length of 0.34875, a width of 0.37125, a...
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)) # Part 2: join part_2 = ( cq.Workplane("XY") .m...
The design involves creating a circular arrangement of cylindrical shapes with a central void. The structure consists of nine faces, each featuring a specific geometric shape. The first three faces contain single circles, while the fourth and fifth faces feature closed loops made up of four arcs each. The sixth face ha...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0618, 0.3765) .circle(0.0588) .extrude(0.1016) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1029, 0.2176) .circle(0.0618) .extrude(0.1016) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1...
Create a rectangular block by starting with a two-dimensional sketch on a plane. The sketch forms a rectangle with sides proportional to each other. After completing the sketch, transform it into a three-dimensional object by extruding it along the normal direction to give it a height. The final dimensions of the block...
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.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0081/00817582.stl")
The design consists of two main parts. The first part is a cylindrical base with a height of 0.375 units and a square cross-section measuring 0.75 units by 0.75 units. This base forms the foundation of the structure. The second part is a hollow center that fits inside the first part. The hollow center has a height of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.375) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.2706, 0.2706) .circle(0.2685) .extrude(0.375) ) part_2 = part_2.translate((0.109375, 0.109375, 0)) result =...
The design consists of two main parts. The first part is a cylinder with rounded top and bottom, measuring 0.329 units in both length and width, and 0.375 units in height. The second part is a smaller cylindrical section that is hollow, measuring 0.128 units in both length and width, and 0.770 units in height. This sma...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1647, 0.1647) .circle(0.1634) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.1875, 0, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0627, 0....
Create a cylindrical object with a central hole. Begin by defining a new coordinate system and then draw a two-dimensional sketch consisting of two concentric circles. Scale the sketch to reduce its size, transform it into three dimensions, and extrude it to create a solid cylindrical shape. The final dimensions 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.0294) .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, "./stlcq/00...
Create a rectangular bar by starting with a new coordinate system that rotates the model by -90 degrees around the Z-axis and translates it 0.015 units along the Y-axis. Draw a simple rectangle on the first face, ensuring it forms a closed loop. Scale the rectangle to fit the desired dimensions. Transform the scaled re...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1206) .lineTo(0, 0.1206) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of three main components: a cylinder, a table, and a circular flange. The cylinder is a simple solid body with a flat circular top and bottom, smooth curved sides, and a uniform thickness. It measures 0.75 units in both length and width and 0.0214 units in height. The table features a circular top a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.376471, 0.376471) .circle(0.373529) .extrude(0.023438) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.013511, 0.055974) .circle(0.013511) .extrude(0.03125) ) part_2 = part_2.union( cq.Workplane("XY...
The design involves creating two parts of a staircase. The first part forms the base and has a rectangular shape with a series of smaller rectangular cutouts along one side. This part is positioned slightly offset from the origin and rotated to align with the staircase’s orientation. The second part, which sits directl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.040441, 0) .lineTo(0.515625, 0.254779) .lineTo(0.323529, 0.254779) .lineTo(0.323529, 0.210294) .lineTo(0.252757, 0.210294) .lineTo(0.252757, 0.177941) .lineTo(0.184007, 0.177941) .lineTo(0....
Start by creating a new coordinate system with default settings. Draw a rectangular shape on a new face, ensuring it has a length of 0.0375 units and a width of 0.0225 units. Scale this rectangle appropriately and transform it into a three-dimensional object without altering its position. Extrude the rectangle along it...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0391, 0) .lineTo(0.0391, 0.0234) .lineTo(0, 0.0234) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00408532.stl")
The first part involves creating a rectangular prism with a cylindrical base and a slightly recessed top. The initial coordinate system is set with Euler angles [0.0, 0.0, -90.0] and a translation vector [0.0, 0.3125, 0.0]. A two-dimensional sketch is drawn on the first face, forming a complex shape that is then scaled...
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.655882, 0.25) .lineTo(0.655882, 0.094118) .lineTo(0.079412, 0.094118) .lineTo(0.079412, 0.25) .lineTo(0, 0.25) .close() .extrude(0.3125) ) part_1 = ...
The design involves creating a rectangular plate with rounded corners. The plate is composed of four faces, each with a unique set of curves and lines that form the rounded edges. The first face has a series of arcs and lines that create a rounded corner on one end, while the other end is a straight edge. The second fa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0176) .threePointArc((0.0059, 0.0206), (0.0029, 0.0147)) .threePointArc((0.0118, 0.0118), (0.0147, 0.0029)) .threePointArc((0.0206, 0.0029), (0.0176, 0)) .lineTo(0.3765, 0) .lineTo(0.3765, 0.0765) .lineTo(0, ...
Start by creating a rectangular base with a triangular cap. The base has a length of 0.75 units and a width of approximately 0.37 units. The triangular cap extends from one side of the rectangle, adding a slight height increase. The entire model is then scaled down by 75% before being transformed into a three-dimension...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0206, 0) .lineTo(0.0206, 0.35) .lineTo(0.75, 0.35) .lineTo(0.75, 0.3706) .lineTo(0, 0.3706) .close() .extrude(0.6328) ) result = part_1 cq.exporters.export(result, "./stlcq/0036/00362384.stl"...
The design involves creating a rectangular prism with rounded edges and two circular holes. A coordinate system is established to orient and position the object correctly. The base shape is a rectangle with two smaller circles positioned along its longer side. This 2D sketch is then transformed into a 3D model by scali...
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, 0.0618) .close() .moveTo(0.0529, 0.0294) .circle(0.0206) .moveTo(0.6912, 0.0294) .circle(0.0176) .extrude(0.0312) ) part_1 = part_1.rotate((0, 0,...
Create a rectangular plate with two circular holes. The plate has a length of approximately 0.75 units, a width of about 0.3651 units, and a height of around 0.0987 units. The first hole is positioned near one corner of the plate, while the second hole is located near the opposite corner. Both holes have the same size ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3647) .lineTo(0, 0.3647) .close() .moveTo(0.7029, 0.1824) .circle(0.0294) .moveTo(0.0471, 0.1824) .circle(0.0294) .extrude(0.1016) ) result = part_1 cq.exporter...
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on the first face, forming a closed loop with four lines. Scale this sketch down by 75%. Transform the scaled sketch into a three-dimensional object by rotating and translating it to its original position. Extrude the sketch 0.02...
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/00242281.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a single face and within this face, draw a circle. Scale the circle to the desired size and transform it into a 3D object. Extrude the 2D sketch to form a solid cylindrical body with a rounded top and bottom. The cylinde...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0392, 0.0392) .circle(0.0389) .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/0019/00197001.stl")
Create a rectangular plate with a specific shape and structure. The plate has a length of 0.75 units, a width of 0.5505 units, and a height of 0.0098 units. The plate is formed by extruding a two-dimensional rectangular sketch into a three-dimensional solid. The sketch is initially drawn in a coordinate system aligned ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.55) .lineTo(0, 0.55) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0096/00969992.stl")
Start by creating a rectangular plate with a length of 0.75 units, a width of 0.375 units, and a height of 0.0375 units. The plate is formed by extruding a two-dimensional sketch that outlines the rectangular shape. The sketch is initially drawn on a plane and then transformed into a three-dimensional object by extrudi...
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.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0082/00821821.stl")
Create a cylindrical object by starting with a circular base and transforming it into a three-dimensional shape. The base circle is centered and scaled appropriately before being rotated and translated to align with the desired orientation. The circle is then extruded upwards to form a solid cylinder. The final dimensi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1412, 0.1412) .circle(0.1401) .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/0089/00893767.stl")
The rectangular plate is a simple yet precise component. It begins with a flat, rectangular shape that is then scaled down slightly. The plate is extruded to a thin thickness, resulting in a solid body. The final dimensions are approximately 0.75 units in length, 0.234 units in width, and 0.0027 units in height. This c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2353) .lineTo(0, 0.2353) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0059/00595149.stl")
Start by creating a new coordinate system and rotating it to align with the desired orientation. Translate the coordinate system to position the origin correctly. Draw a two-dimensional sketch that forms a C-shape with a curved top and a flat bottom. Scale the sketch to fit the required dimensions. Transform the scaled...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.0048) .threePointArc((0.6148, 0.288), (0, 0.5712)) .lineTo(0, 0.576) .threePointArc((0.6172, 0.288), (0, 0)) .close() .extrude(0.0781) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translat...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangular sketch on the first face. The sketch forms a closed loop with four straight lines. After completing the sketch, scale it down by a factor of 0.75. Transform this scaled sketch into a three-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0, 0.25) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) result = part_1 cq.exporters.export(result, "./stlcq/005...
Start by creating a new coordinate system and drawing a rectangular face with two circular holes. The rectangle forms the base of the block, and the circles are positioned symmetrically within it. After defining the 2D sketch, transform it into a 3D model by extruding it to create a solid block. The final dimensions of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.45) .lineTo(0, 0.45) .close() .moveTo(0.4706, 0.2265) .circle(0.0824) .moveTo(0.2794, 0.2265) .circle(0.0824) .extrude(0.2969) ) result = part_1 cq.exporters.ex...
The design consists of four parts. The first and second parts are cylindrical objects with similar dimensions but different heights. The first cylinder has a height of 0.2234 units, while the second cylinder has a height of 0.2592 units. Both cylinders have a diameter of 0.01787 units. The third part is a rectangular b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.007843, 0.007843) .circle(0.007782) .extrude(0.226562) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0, 0.398438, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo...
The design consists of three main parts. The first part is a cylindrical base with a height of approximately 0.0409 units, a width and length of about 0.5481 units. The second part is a cylindrical extension that sits on top of the base, with a height of around 0.2456 units and a width and length of roughly 0.0827 unit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2724, 0.2724) .circle(0.2745) .extrude(0.0391) ) part_1 = part_1.translate((0.101562, 0.101562, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0431, 0.0431) .circle(0.0428) .extrude(0.2422) ) part_2...
The design consists of three parts. The first part is a rectangular block with a flat top and bottom and straight edges, measuring 0.75 units in length, 0.45 units in width, and 0.075 units in height. The second part is a similar rectangular block but with slightly rounded top and bottom edges, measuring 0.75 units in ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.45) .lineTo(0, 0.45) .close() .extrude(0.0781) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.45) .lineTo(0, 0....
The first part is a cylindrical object with a rectangular top and a smaller rectangular section in the middle. It has a length of 0.1854, a width of 0.1112, and a height of 0.0742. The second part is a rectangular block with slightly rounded top and bottom edges, and sharp sides. It also has a length of 0.1854, a width...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1875, 0) .lineTo(0.1875, 0.1125) .lineTo(0.1316, 0.1125) .lineTo(0.1316, 0.0566) .lineTo(0.0566, 0.0566) .lineTo(0.0566, 0.1125) .lineTo(0, 0.1125) .close() .extrude(0.0703) ) part_1 = ...
Start by creating a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch on the first face that forms a loop with a straight line, another straight line, an arc, and two more straight lines. This sketch is then scaled down and transformed into a three-dimensional shape. The tran...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .threePointArc((0.4853, 0.4853), (0.3765, 0.75)) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) re...
The design consists of three main parts. The first part is a heart-shaped object with a length of 0.5505, a width of 0.75, and a height of 0.0556. This heart is created by drawing a 2D sketch and extruding it into a 3D solid. The second part is a smaller heart cutout positioned on the larger heart. It has a length of 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.3971) .threePointArc((0.1235, 0.2147), (0.15, 0)) .threePointArc((0.4118, 0.25), (0.55, 0.5853)) .threePointArc((0.4029, 0.75), (0.25, 0.5912)) .threePointArc((0, 0.6559), (0.0118, 0.3971)) .close() .ext...
The first part involves constructing a rectangular planter with a length of 0.6 units, a width of 0.3 units, and a height of 0.75 units. The planter has a hollow center, creating a space for planting. The second part involves constructing a smaller rectangular prism with rounded edges, positioned adjacent to the plante...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6016, 0) .lineTo(0.6016, 0.302) .lineTo(0, 0.302) .close() .moveTo(0.0377, 0.0377) .lineTo(0.5638, 0.0377) .lineTo(0.5638, 0.2642) .lineTo(0.0377, 0.2642) .close() .extrude(0.75) ) ...
The design involves constructing a rectangular base with vertical extensions. The base has a length of 0.75 units and a width of 0.5025 units. Two vertical extensions are added to the base, one on the left side and one on the right side. The left extension rises to a height of 0.5025 units, while the right extension re...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2088) .lineTo(0.6676, 0.2088) .lineTo(0.0824, 0.2088) .lineTo(0, 0.2088) .close() .extrude(0.6172) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.2088) ...