input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design involves creating a hexagonal prism with a circular hole. The first step is to establish a new coordinate system. Then, draw the first face of the hexagonal prism, which consists of a hexagon and a circular hole inside it. The hexagon is formed by connecting six points, and the circular hole is centered with...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3324) .lineTo(0.1824, 0.0059) .lineTo(0.5588, 0) .lineTo(0.75, 0.3235) .lineTo(0.5676, 0.65) .lineTo(0.1912, 0.6529) .close() .moveTo(0.3765, 0.3265) .circle(0.1265) .extrude(0.3359) ) result = p...
The design consists of three parts that are assembled to form a complex structure. The first part is a cube with a diagonal cut, featuring a length of approximately zero point seven five, a width of zero point one zero nine, and a height of zero point five six four six. The second part is a rectangular plate with round...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0029, 0) .lineTo(0.7471, 0) .lineTo(0.75, 0) .lineTo(0.7471, 0.1088) .lineTo(0.1294, 0.1088) .close() .extrude(0.5625) ) 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 and drawing a two-dimensional sketch that forms a U-shape with a rectangular cross-section. The U-shape has a flat top surface and is defined by a series of connected lines. After drawing the sketch, scale it down and transform it into a three-dimensional object by rotating and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0.5, 0.75) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, ...
Create a rectangular block by starting with a two-dimensional sketch of a square on a plane. This square is then scaled down and transformed into three dimensions using a predefined coordinate system. The block is rotated and translated according to the specified angles and vectors. The final step involves extruding th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.25) .lineTo(0, 0.25) .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/004...
The design involves creating a triangle-shaped object with a curved hook at one end. The object consists of three main faces. The first face forms the base of the triangle and includes a series of lines and arcs that define its shape. The second face is a smaller, curved section located above the first face, adding det...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.4235, 0.5647) .lineTo(0.3824, 0.5529) .lineTo(0.6794, 0.0412) .lineTo(0.0706, 0.0412) .lineTo(0.3676, 0.5529) .lineTo(0.3265, 0.5647) .close() .extrude(0.0781) ) part_1...
The design consists of three parts. The first part is a square plate with rounded corners and four holes at the corners. It measures 0.5164 units in length and width, and 0.0362 units in height. The second part is a cylindrical object with a flat circular top and bottom, measuring 0.3443 units in length and width, and ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0445) .threePointArc((0.0142, 0.0142), (0.0445, 0)) .lineTo(0.4711, 0) .threePointArc((0.5015, 0.0142), (0.5156, 0.0445)) .lineTo(0.5156, 0.4711) .threePointArc((0.5015, 0.5015), (0.4711, 0.5156)) .lineTo(0.0...
To create a cylindrical base with a flat bottom, start by setting up a new coordinate system with default Euler angles and translation vectors. Draw a square sketch on the first face, then scale this sketch to the desired size. Transform the sketch into a three-dimensional model by extruding it 0.75 units upwards. The ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0156, 0) .lineTo(0.0156, 0.0156) .lineTo(0, 0.0156) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0018/00180427.stl")
Construct a rectangular block by starting with a new coordinate system, setting the Euler angles and translation vector to position the part correctly. Draw a two-dimensional sketch of a rectangle on a new face, then scale this sketch to reduce its size. Transform the scaled sketch into three dimensions by applying rot...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2853) .lineTo(0, 0.2853) .close() .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, "....
Create a square plate with rounded edges and a flat surface. Start by defining a new coordinate system and drawing a square sketch. Transform this sketch into a three-dimensional space and extrude it to form a solid body. The final dimensions of the plate are zero point seven five units in length and width, and zero po...
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.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.078125, 0)) result = part_1 cq.exporters.export(result, "./stl...
The design involves creating a toroidal shape with a cylindrical base and a central circular hole. Start by setting up a new coordinate system with specific rotations and translations. A two-dimensional sketch is then drawn on a face, featuring two concentric circles. The outer circle forms the outer boundary of the to...
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.1941) .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, "./stlcq/...
The design consists of two main parts. The first part is a rectangular plate with a length of approximately 0.75 units, a width of around 0.34 units, and a height of about 0.0035 units. This part is created by drawing a rectangle, scaling it, and extruding it in both directions to form a solid body. The second part is ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3441) .lineTo(0, 0.3441) .close() .extrude(0.0078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0088) .lineTo...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with specific rotations and translations. Then, draw a circular sketch and scale it down. This sketch is transformed into a three-dimensional shape by applying the defined rotations and translations. The sketch is the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1451, 0.1451) .circle(0.144) .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/0048/00485230.stl")
Construct a triangular prism by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional triangular sketch, scale it down, and transform it into three dimensions. Extrude the sketch to create a solid body. The final shape is a triangular prism with a height of 0.2601,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.2118, 0.1765) .lineTo(0.7147, 0) .close() .extrude(0.2578) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.257812, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0063/0063...
Start by creating a rectangular plate with rounded edges and a flat surface. The plate has a length of 0.75 units, a width of 0.1875 units, and a height of 0.01875 units. The plate is created by extruding a scaled two-dimensional sketch into a three-dimensional shape. The sketch is a rectangle that is then scaled down ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0017/00174148.stl")
The first part is a cylindrical object with a curved top and bottom, featuring a smooth surface and a uniform diameter. The length is 0.2621 units, the width is 0.1818 units, and the height is 0.1966 units. The second part is a curved, open-ended tube with a rectangular cross-section. The top surface is flat and parall...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0917) .threePointArc((0.1323, 0), (0.2656, 0.0917)) .threePointArc((0.1323, 0.1844), (0, 0.0917)) .close() .moveTo(0.001, 0.0917) .threePointArc((0.1323, 0.001), (0.2646, 0.0917)) .threePointArc((0.1323, 0.18...
Start by creating a new coordinate system with specific angles and translations. Draw a 2D sketch on the first face that forms a box with curved edges. The sketch consists of straight lines and arcs, forming a closed loop. Scale the sketch to reduce its size. Rotate and translate the scaled sketch to position it correc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .threePointArc((0.5735, 0.3235), (0.5, 0.5)) .lineTo(0.1676, 0.5) .threePointArc((0.05, 0.45), (0, 0.3324)) .close() .extrude(0.3359) ) part_1 = part_1.rotate((0, 0, ...
The design consists of two main parts that are combined to form an L-shaped CAD model. The first part is a rectangular plate with a length of 0.75 units, a width of 0.2169 units, and a height of 0.0361 units. This part forms the base of the L-shape. The second part is a vertical extension with a length of 0.0361 units,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2176) .lineTo(0, 0.2176) .close() .extrude(0.0391) ) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.036, 0) .lineTo(0.036, 0.2188) .line...
The rectangular object is a solid body with a flat top and bottom, and perpendicular sides. The object is symmetrical along its vertical axis. The length of the object is approximately two hundred eighty-one point two millimeters, the width is around seven hundred fifty millimeters, and the height is about forty-five m...
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.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.046875, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific angles and translations. Draw a two-dimensional sketch that forms a complex shape with a rectangular section and a triangular section. After drawing the sketch, scale it down and transform it into a three-dimensional object using the specified rotation and transla...
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.5, 0.1265) .lineTo(0.5, 0) .lineTo(0.75, 0) .lineTo(0.5, 0.7059) .lineTo(0.25, 0.7059) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), ...
The first part involves creating a rectangular block with a length of approximately 0.246, a width of approximately 0.521, and a height of approximately 0.052. The block is created by drawing a closed loop on a new face, transforming it into a three-dimensional shape, and then extruding it to the desired height. The se...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.246324, 0) .lineTo(0.246324, 0.523438) .lineTo(0, 0.523438) .close() .extrude(0.054688) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.054688, 0.007812)) # Part 2: join part_2 = ( ...
The design involves creating a rounded cylindrical object with a specific orientation and dimensions. Start by setting up a new coordinate system with the specified Euler angles and translation vector. Draw two circles on two different faces, each with a specific center and radius. Scale the entire sketch to adjust its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.095, 0.095) .circle(0.0931) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2298, 0.3894) .circle(0.095) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75,...
The cylindrical object is created by first establishing a new coordinate system with specific rotational and translational adjustments. A circular sketch is then drawn and scaled down before being transformed into a three-dimensional shape. The final model has a height of 0.75 units and both its length and width measur...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3137, 0.3137) .circle(0.3113) .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/0084/00840791.stl")
The design consists of five parts. The first part is a rectangular plate with a length of 0.246 units, a width of 0.75 units, and a height of 0.003 units. This plate forms the base of the structure. The remaining four parts are cubes, each with dimensions of 0.015 units in length, width, and height. These cubes are pos...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2471, 0) .lineTo(0.2471, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0156, 0) .lineTo(0.0156, 0.0156) .li...
The design consists of two parts that form a single rectangular bar. The first part is a rectangular section with slightly curved edges, measuring 0.75 units in length, 0.0661 units in width, and 0.0142 units in height. The second part is a rectangular section with curved ends, measuring 0.75 units in length, 0.0901 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2059, 0) .lineTo(0.5441, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0647) .lineTo(0.5441, 0.0647) .lineTo(0.2059, 0.0647) .lineTo(0, 0.0647) .close() .extrude(0.0156) ) part_1 = part_1.transla...
To create the rectangular plate with rounded corners, start by setting up a new coordinate system with default angles and translations. Draw a two-dimensional sketch of a rectangle on the first face. Scale this sketch down by 75% to achieve the desired size. Transform the scaled sketch into a three-dimensional object b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3, 0) .lineTo(0.3, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0049/00495414.stl")
Start by creating a new coordinate system with specific Euler angles and translation vectors. Then, draw a two-dimensional sketch to define the outline of the rectangular plate. This sketch consists of a closed loop formed by four straight lines. After completing the sketch, scale it down to fit the desired dimensions....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5882) .lineTo(0, 0.5882) .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 default axes. On the first face, draw a circular shape and scale it down to fit the desired size. Transform the scaled sketch into 3D space while maintaining its orientation and position. Extrude the sketch to create a solid body that extends 0.75 units in heig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00501153.stl")
Create a rectangular plate with rounded corners and two circular holes. Start by setting up a new coordinate system with specific angles and translations. Draw the first face by creating a rectangle with rounded corners and two smaller circles at the corners. Scale the entire sketch to reduce its size. Transform the sc...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0794, 0) .lineTo(0.6706, 0) .threePointArc((0.75, 0.0794), (0.6706, 0.1588)) .lineTo(0.0794, 0.1588) .threePointArc((0, 0.0794), (0.0794, 0)) .close() .moveTo(0.6706, 0.0794) .circle(0.05) .moveTo(0.0794...
Create a rectangular block with a circular hole in the center. Start by defining a new coordinate system aligned with the global axes. Draw the outline of the rectangular face, including a smaller circular hole near the center. Scale the entire sketch to reduce its size, then transform it into a three-dimensional shape...
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/0034/00349814.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a circular sketch on the first face, then scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it according to the default settings. Extrude the sketch along the normal d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2422) ) result = part_1 cq.exporters.export(result, "./stlcq/0097/00972729.stl")
The design involves creating a rectangular prism with rounded edges and a flat top. The first face is a simple rectangle, while the second face has a more complex shape with several lines and arcs forming a curved edge. The third face is another simple rectangle. These faces are combined and scaled to form the final 3D...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5933) .lineTo(0.0144, 0.5933) .lineTo(0.0144, 0.7344) .lineTo(0, 0.7344) .close() .extrude(0.0156) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0144, 0.3744) .lineTo(0.0144, 0.4896) .line...
The design involves creating a cylindrical ring with a central hole. Start by setting up a coordinate system with specific angles and a translation vector. Then, draw two concentric circles on a flat face, one larger and one smaller, to define the outer and inner boundaries of the ring. After scaling the sketch to redu...
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.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09375, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
The first part of the torus is created by forming a circular cross-section with a central hole. The outer circle has a diameter that is twice the inner circle's diameter, creating a ring-like structure. After scaling down the entire shape, this ring is transformed into a three-dimensional object by extruding it 0.15 un...
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.1912) .extrude(0.1484) ) result = part_1 cq.exporters.export(result, "./stlcq/0029/00297055.stl")
The design involves creating a rectangular bar with rounded edges and a flat surface, followed by a rectangular cutout. The first part is a rectangular bar with a length of 0.75 units, a width of 0.0543 units, and a height of 0.0014 units. This part serves as the base of the model. The second part is a smaller rectangu...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0529) .lineTo(0, 0.0529) .close() .extrude(0.0078) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1562, 0) .lineTo(0.1562, 0.0055) .li...
The design consists of five parts, each contributing to the final shape. The first part is a rectangular prism with a tapering effect, measuring 0.75 units in length, 0.25 units in width, and 0.2 units in height. It is positioned and rotated to align with the desired orientation. The second part is a smaller rectangul...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3765, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0, 0.25) .close() .extrude(0.2031) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.203125, 0)) # Part 2: cut part_2 = ( ...
The design consists of two main parts. The first part is a rectangular base with a length of 0.75 units, a width of 0.625 units, and a height of 0.5 units. This base is created by extruding a scaled 2D sketch in the positive Z direction. The second part is a vertical extension with a rectangular face that has a length ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0.25) .lineTo(0.75, 0.6265) .lineTo(0, 0.6265) .close() .extrude(0.5) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0.1667) .lineTo(0.5, 0.4157) .lin...
The design consists of three main parts. The first part is a cylinder with a curved top, measuring 0.3054 units in length, 0.5524 units in width, and 0.3413 units in height. This part is positioned at a specific location and then extruded to form a solid body. The second part is a cylindrical handle, measuring 0.0898 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.30671, 0) .lineTo(0.30671, 0.106587) .threePointArc((0.152267, 0.554688), (0, 0.106587)) .close() .extrude(0.34375) ) part_1 = part_1.translate((0.21875, 0, 0)) # Part 2: join part_2 = ( cq.Workpl...
Start by creating a new coordinate system with specific angles and a translation vector to position the part correctly. Draw a two-dimensional sketch on the first face, forming a rectangle with precise corners. After drawing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1265) .lineTo(0, 0.1265) .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...
Create a ring-shaped object by starting with a two-dimensional sketch that consists of two concentric circles. The outer circle has a larger diameter, while the inner circle has a smaller diameter. After drawing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensiona...
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.2706) .extrude(0.1094) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00355636.stl")
To create the U-shaped CAD model, start by setting up a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch that forms a U-shape with rounded edges. The sketch is transformed into a three-dimensional object by applying a scaling factor and then rotating and translating it...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0.5, 0.75) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, ...
The cylindrical object is constructed by creating a new coordinate system with specific Euler angles and a translation vector. A circular sketch is drawn and scaled to form the base of the cylinder. This base is then transformed into a three-dimensional shape by applying rotation and translation. The cylinder is extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0311, 0.0311) .circle(0.0314) .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/0073/00735119.stl")
The design consists of two cylindrical parts. The first part is a larger cylinder with a smooth surface and uniform thickness, measuring 0.75 units in length and width, and 0.2083 units in height. The second part is a smaller cylinder placed on top of the first, with a flat circular top and bottom, measuring 0.5167 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.2109) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2568, 0.2568) .circle(0.2588) .extrude(0.2891) ) part_2 = part_2.translate((0.117188, 0.117188, 0.210938))...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw two rectangular faces on a two-dimensional plane, each with its own dimensions and positions. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and transl...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2706, 0) .lineTo(0.2706, 0.1912) .lineTo(0, 0.1912) .close() .extrude(0.1094) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.5382, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1559) ....
The design involves creating a rounded cylindrical object. Start by setting up a coordinate system with default angles and positions. Next, draw a circular face with a specific size and position. This circle is then scaled down to fit the desired dimensions. The scaled circle is transformed into a 3D shape by extruding...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3686, 0.3686) .circle(0.3657) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00408238.stl")
Start by creating a new coordinate system with the origin slightly elevated along the z-axis. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. Scale the sketch down to 75% of its original size. Transform the scaled sketch into a three-dimensional object by rotating and transl...
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.125) ) result = part_1 cq.exporters.export(result, "./stlcq/0006/00067354.stl")
The design consists of two rectangular plates. The first plate has a length of approximately 0.75 units, a width of about 0.47 units, and a height of around 0.056 units. This plate is created by extruding a scaled two-dimensional sketch along the normal direction. The second plate, 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.4676) .lineTo(0, 0.4676) .close() .extrude(0.0547) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6719, 0) .lineTo(0.6719, 0.3926) .li...
The design involves creating a rectangular block with rounded edges and corners. The process starts by setting up a new coordinate system and drawing a two-dimensional sketch that forms the base of the block. This sketch includes a series of lines and an arc to create a rounded corner. After scaling the sketch to the 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) .threePointArc((0.6765, 0.4265), (0.5, 0.5)) .lineTo(0, 0.5) .close() .extrude(0.25) ) result = part_1 cq.exporters.export(result, "./stlcq/0018/00189231.stl")
Start by creating a rectangular plate with a circular hole in the center. The plate has a length of 0.75 units and a width of 0.3647 units. The circular hole is centered within the plate and has a diameter that fits proportionally within the plate’s dimensions. The plate is then extruded to a height of 0.0688 units, fo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5676, 0) .threePointArc((0.75, 0.1824), (0.5676, 0.3647)) .lineTo(0, 0.3647) .close() .moveTo(0.5676, 0.1824) .circle(0.0853) .extrude(0.0703) ) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with specific angles and translations to position the part correctly. Draw a rectangular base with a complex outline that forms a closed loop. After drawing the outline, scale it down to fit the desired size. Transform the 2D sketch into a 3D object by rotating and translating ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5) .lineTo(0, 0.75) .lineTo(0.75, 0.75) .lineTo(0.75, 0.5) .lineTo(0.5, 0.5) .lineTo(0.5, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.5) .close() .extrude(0.125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0,...
The first part of the model is a rectangular block with a flat top and bottom, and straight edges. It measures 0.75 units in length, 0.225 units in width, and 0.0525 units in height. The second part is an L-shaped CAD model with a horizontal arm and a vertical arm. It also measures 0.75 units in length, 0.225 units in ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.75, 0.1118) .lineTo(0.75, 0.2265) .lineTo(0, 0.2265) .close() .extrude(0.0547) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1882, 0) .lineTo(0.75, 0) .li...
Create a rectangular block by starting with a new coordinate system and drawing a two-dimensional sketch on the first face. The sketch forms a rectangle with precise dimensions, which is then scaled down by a factor of 0.75. The scaled sketch is transformed into a three-dimensional model by extruding it along the norma...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2765) .lineTo(0, 0.2765) .close() .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0042/00420869.stl")
The design involves creating a cylindrical base. Start by setting up a new coordinate system and drawing a circular sketch. This circle forms the base of the cylinder. After scaling the sketch to the desired size, transform it into a three-dimensional shape and extrude it to create a solid cylinder. The final shape con...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0006/00067323.stl")
The first intermediate part of the cylindrical object is created by starting with a circular base. This base is then scaled down to fit the desired dimensions. The circular base is transformed into a three-dimensional shape by extruding it upwards to form a flat, rounded cylinder. The final dimensions of this part are ...
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/0077/00771932.stl")
The design consists of three parts. The first part is a circular plate with a central hole, measuring 0.75 units in length and width, and 0.028125 units in height. The second part is a cylindrical object with a smaller central hole, measuring 0.459375 units in length and width, and 0.28125 units in height. This cylindr...
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.2294) .extrude(0.0312) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.2294) .moveTo(0.3765, 0.3765) .cir...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular two-dimensional sketch on the first face, then scale this sketch to achieve the desired size. Transform the scaled sketch into three dimensions by applying the rotation and translation defined in the coordi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0094/...
The first part involves creating a rectangular prism with protruding sections. The main body has a length of 0.1909 units, a width of 0.75 units, and a height of 0.0319 units. One end features a larger protrusion, while the opposite end has a smaller protrusion. The second part consists of five cylindrical objects arra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1353, 0) .lineTo(0.1353, 0.1765) .lineTo(0.1912, 0.1765) .lineTo(0.1912, 0.2441) .lineTo(0.1353, 0.2441) .lineTo(0.1353, 0.5059) .lineTo(0.1912, 0.5059) .lineTo(0.1912, 0.5735) .lineTo(...
Create a tall, narrow rectangular prism by starting with a new coordinate system aligned to the global axes and translated slightly along the y-axis. Draw a rectangular sketch on the first face, ensuring it forms a closed loop. Scale this sketch appropriately and transform it into a three-dimensional object. Extrude th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5859, 0) .lineTo(0.5859, 0.2298) .lineTo(0, 0.2298) .close() .extrude(0.75) ) part_1 = part_1.translate((0, -0.03125, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0081/00817167.stl")
To create the rectangular box base, start by defining a new coordinate system with no rotation or translation. Draw the first face of the box as a rectangle, ensuring that it forms a closed loop. After completing the rectangle, scale it down to fit the desired size. Transform the scaled two-dimensional sketch into a th...
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.5) ) result = part_1 cq.exporters.export(result, "./stlcq/0032/00320013.stl")
The design involves creating a cylindrical object with a central hole. A new coordinate system is established, and a circular shape is drawn with a smaller concentric circle inside it. This sketch is then scaled down and transformed into a three-dimensional object. The object is extruded to create a solid cylinder with...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3765) .circle(0.3735) .moveTo(0.3735, 0.3765) .circle(0.0294) .extrude(0.625) ) 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, "./...
The design consists of two cylindrical objects, each with a smooth surface and rounded edges. The first cylindrical object has a length and width of 0.225 and a height of 0.375. The second cylindrical object has a slightly larger length and width of 0.24 and the same height of 0.375. Both cylinders are created by extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1137, 0.1137) .circle(0.1128) .moveTo(0.1137, 0.1137) .circle(0.1022) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.078125, 0.5625, 0.007812)) # Part 2: new part_2 = ( cq.Workplane...
The flat washer is designed with a central hole and has a square profile. The outer edge of the washer is defined by a larger circle, while the inner edge is defined by a smaller circle, creating the central hole. After scaling down the design, the washer is extruded to create a three-dimensional object. The final dime...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1706) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0041/00412207.stl")
The design involves creating a rectangular base with a T-shaped top. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a closed loop with eight lines. After completing the sketch, apply a scaling factor to adjust its...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2706) .lineTo(0.5206, 0.2706) .lineTo(0.5206, 0.7382) .lineTo(0.25, 0.7382) .lineTo(0.25, 0.4706) .lineTo(0, 0.4706) .close() .extrude(0.3281) ) part_1 = part_1.r...
The flat washer is created by drawing two concentric circles on a single face. The outer circle forms the boundary of the washer, while the inner circle defines the central hole. These circles are then scaled down to fit the desired size and transformed into a three-dimensional object. The final shape is a solid washer...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1706) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0050/00509349.stl")
The rectangular base with a vertical extension is an L-shaped CAD model. It consists of a rectangular base and a vertical extension. The base has a slight inward curve on one side, giving it a unique profile. The height of the model is zero point five units, the width is zero point three seven five units, and the lengt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.3745) .lineTo(0.3745, 0.3745) .lineTo(0.3745, 0.1255) .lineTo(0, 0.1255) .close() .extrude(0.5) ) 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 aligned with the global axes. Draw a two-dimensional sketch on the X-Y plane to define the base of the rectangular prism. The sketch forms a rectangle with a specific aspect ratio. After defining the sketch, scale it down to fit the desired dimensions. Transform the scaled sket...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1353) .lineTo(0, 0.1353) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0067/00676211.stl")
The design consists of three main parts. The first part is a rectangular cube with a slightly tilted top surface. It measures approximately 0.75 units in length, 0.40 units in width, and 0.61 units in height. The second part is a cylindrical protrusion that cuts into the existing body. It has a flat circular top and bo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3971) .lineTo(0, 0.3971) .close() .extrude(0.6094) ) part_1 = part_1.translate((0, 0.296875, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.1294, 0.1294) ...
The design involves creating a cylindrical object with a smooth surface and rounded edges. Begin by setting up a new coordinate system and drawing a circular sketch on a single face. The circle is then scaled down and transformed into a three-dimensional model by extruding it along its normal. The final dimensions of t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0067/00676270.stl")
Start by creating a rectangular block. This involves drawing a rectangle on a plane and then extruding it to create a solid block. The block has a flat top and bottom, with straight edges. The dimensions of the block are approximately 0.75 units in length, 0.46 units in width, and 0.18 units in height. Next, 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.4588) .lineTo(0, 0.4588) .close() .extrude(0.1797) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.8828) ) part_...
The design involves creating a cylindrical object that stands 0.3991 units tall, with a base measuring 0.041841 units in both length and width. This cylinder is generated by extruding a circular sketch, ensuring a uniform and symmetrical shape. The process starts with setting up a coordinate system and drawing a circle...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.019455, 0.019608) .circle(0.019455) .extrude(0.398438) ) result = part_1 cq.exporters.export(result, "./stlcq/0079/00792141.stl")
The design consists of three main parts. The first part is a rounded rectangular base with a complex shape that includes internal notches and rounded edges. This base has a length of approximately 0.75 units, a width of about 0.33 units, and a height of around 0.14 units. The second and third parts are identical rectan...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.091176, 0) .lineTo(0.091176, 0.297059) .lineTo(0.658824, 0.297059) .lineTo(0.658824, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.035294) .lineTo(0.697059, 0.035294) .lineTo(0.697059, 0.335294) ...
The rounded L-shaped bracket consists of several key features that define its shape and structure. The first part includes a large circle with a smaller concentric circle inside, creating a ring-like structure. The second part forms a complex shape with a combination of straight lines and arcs, giving it a rounded corn...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0882, 0.4118) .circle(0.0882) .moveTo(0.0882, 0.4118) .circle(0.0176) .extrude(0.0156) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.4029) .lineTo(0.0353, 0.0471) .threePointArc((0.05, 0.0912)...
Start by creating a new coordinate system with specific Euler angles and a translation vector to position the object correctly. Draw a circle on a new face and scale it appropriately. Transform this scaled circle into three-dimensional space and extrude it to form a cylindrical shape. The final dimensions of the cylind...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0275, 0.0275) .circle(0.0272) .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/0070/00700381.stl")
The design involves creating a rectangular block with several holes. Start by setting up a new coordinate system. Draw a rectangular outline on one face, and within this rectangle, place four smaller circles. Two of these circles have a larger diameter, while the other two have a smaller diameter. After defining the sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3906, 0) .lineTo(0.3906, 0.1792) .lineTo(0, 0.1792) .close() .moveTo(0.0843, 0.0904) .circle(0.0506) .moveTo(0.2665, 0.0904) .circle(0.0506) .moveTo(0.3569, 0.0904) .circle(0.0092) ...
Create a cylindrical object with rounded edges by starting with a circular base. The base consists of two concentric circles, one larger and one smaller, which are then scaled down to fit the desired size. The scaled sketch is transformed into a three-dimensional shape by rotating and translating it according to specif...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .moveTo(0.1882, 0.1882) .circle(0.15) .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, "./stl...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a circle and scale it to achieve the desired size. Transform this sketch into a three-dimensional object by applying the rotation and translation from the coordinate system. Extrude the sketch to form ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0275, 0.0275) .circle(0.0272) .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/0051/00512682.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch that forms a rectangle. This rectangle will serve as the base of the rectangular prism. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by extruding it along the normal directi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1676, 0) .lineTo(0.1676, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/00705251.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first face of the rectangular prism as a rectangle. Scale the sketch to reduce its size. Rotate and translate the sketch to position it correctly in 3D space. Extrude the sketch to create a solid body. The final dime...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1059) .lineTo(0, 0.1059) .close() .extrude(0.1016) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.203125, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a cylindrical object. Begin with a circular base that is then scaled down to form the desired diameter. This base is then extruded upwards to create a cylinder. The final dimensions of the cylinder are a height of 0.75 units, a width of 0.15 units, and a length of 0.15 units. The cylinder stands verti...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0745, 0.0745) .circle(0.0739) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0094/00948127.stl")
The design involves creating a cube with rounded edges and a flat top, followed by adding a rectangular cutout on the top face. The cube has a length and width of approximately 0.75 units and a height of 0.25 units. The rectangular cutout is positioned on the top face of the cube, with a length of about 0.25 units, a w...
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.25) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.0706) .lineTo(0, 0....
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circular base and a rectangular top with rounded edges. The circular bases are positioned at specific coordinates with a defined radius. The rectangular top is constructed using lines and arcs to create the rounded edg...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1265, 0.1265) .circle(0.1265) .extrude(0.5781) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2471, 0.0853) .lineTo(0.5029, 0.0853) .threePointArc((0.4971, 0.1265), (0.5029, 0.1676)) .lineTo(0.2471, 0...
The first part is a rectangular prism with a length of zero point seven five, a width of zero point four one six seven, and a height of zero point two five. This part has a rectangular cutout in the middle. The second part is a cylinder with a length and width of zero point zero eight three three and a height of zero p...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.208824) .lineTo(0.5, 0.208824) .lineTo(0.5, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.417647) .lineTo(0, 0.417647) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, ...
Start by creating a rectangular prism with a U-shaped cutout. The base shape is a rectangle with a U-shaped section removed from one side. After setting up the initial coordinate system and drawing the 2D sketch, the sketch is scaled down and transformed into a 3D model. The final dimensions of the part are a length of...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.075) .lineTo(0.1132, 0.075) .lineTo(0.1132, 0) .lineTo(0.225, 0) .lineTo(0.225, 0.375) .lineTo(0.15, 0.375) .lineTo(0.15, 0.225) .lineTo(0.075, 0.225) .lineTo(0.075, 0.375) .lineTo(0, 0.375) ....
The design begins with a rectangular box base that has a length of 0.75, a width of 0.5735, and a height of 0.1765. A rectangular cutout is then created within this base, with a length of 0.7059, a width of 0.5294, and a height of 0.1765, effectively removing material from the center of the base. Next, a horizontal slo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.573529) .lineTo(0, 0.573529) .close() .extrude(0.179688) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.703125, 0) .lineTo(0.703125, 0.526...
Create a rectangular plate by starting with a two-dimensional sketch of a rectangle. The sketch is then scaled down to 75% of its original size. This scaled sketch is transformed into a three-dimensional object and extruded to form a thin rectangular plate. The final dimensions of the plate are a length of 0.3866 units...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3853, 0) .lineTo(0.3853, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0087/00878443.stl")
The design involves creating a vertical rod or bar. Start by defining a new coordinate system aligned with the default axes. Sketch two circles on separate faces; the first circle is positioned at [0.005, 0.005] and the second at [0.055, 0.005], both with a radius of 0.005. These circles are then scaled down to fit the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0051, 0.0051) .circle(0.0054) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0574, 0.0051) .circle(0.0054) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00396...
Create a rectangular base with a slight taper. Start by setting up a new coordinate system with specific angles and translations. Then, draw a two-dimensional sketch that forms a complex shape with a series of lines. After completing the sketch, scale it down and transform it into a three-dimensional object by applying...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0.1882, 0.1882) .lineTo(0.1882, 0.5) .lineTo(0, 0.5) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) r...
The design consists of two main parts. The first part is a rectangular block with rounded edges. It has a length of approximately 0.75 meters, a width of about 0.27 meters, and a height of around 0.05 meters. The second part is a smaller rectangular box with rounded top and bottom edges. This part has a length of rough...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1294, 0.0029) .lineTo(0.1824, 0.0029) .lineTo(0.1824, 0.2706) .lineTo(0.1412, 0.2676) .threePointArc((0, 0.1412), (0.1294, 0.0029)) .close() .extrude(0.0547) ) part_1 = part_1.union( cq.Workplane("XY") ....
To construct the hexagonal shelf, start by setting up a new coordinate system with a specific rotation and translation. The first face of the shelf is composed of four loops, each forming a part of the hexagonal shape. The first loop outlines the outer boundary of the hexagon, while the second loop creates an inner bou...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.1029, 0.1441) .lineTo(0.1882, 0) .lineTo(0.5618, 0) .lineTo(0.6471, 0.1441) .lineTo(0.75, 0.3235) .lineTo(0.6471, 0.5029) .lineTo(0.5618, 0.65) .lineTo(0.1882, 0.65) .lineTo(0.1029...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a circle on a new face, then scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it. Extrude the sketch to create a solid cylindrical shape....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.3203) ) 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/0062/00625519.stl")
The design involves creating a rectangular block. Start by setting up a new coordinate system with no rotation or translation. Draw a rectangular sketch on the first face, ensuring the sides are proportional to the desired dimensions. After drawing the rectangle, scale it down by 75%. The scaled sketch is then transfor...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4) .lineTo(0, 0.4) .close() .extrude(0.1016) ) result = part_1 cq.exporters.export(result, "./stlcq/0082/00829612.stl")
The design consists of three main parts that combine to form a complex cylindrical shape. The first part is a cylindrical base with a height of approximately 0.2549 units and a diameter of about 0.1879 units. The second part is a larger rounded cylindrical top with a height of around 0.051 units and a diameter of rough...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .extrude(0.2578) ) part_1 = part_1.translate((0.039062, 0.039062, 0.109375)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1333, 0.1333) .circle(0.1323) .extrude(0.0547) )...
The L-shaped CAD model consists of a rectangular base with a vertical extension on one side and a slight curve on the bottom edge. The base measures 0.75 units in length and 0.4286 units in width, while the vertical extension adds 0.4091 units in height. The model is created by extruding a two-dimensional sketch that o...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1176) .lineTo(0.6147, 0.1176) .lineTo(0.6147, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2529) .lineTo(0.1353, 0.2529) .lineTo(0.1353, 0.4294) .lineTo(0, 0.4294) .close() .extrude(0.4062) ) part_1 = part...
The first part involves creating a rectangular table with a flat top and a u-shaped cutout. Start by setting up a new coordinate system with specific Euler angles and translation values. Draw a rectangle on the first face, then add a u-shaped cutout on the second face, followed by another rectangle on the third face. S...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0383, 0) .lineTo(0.0383, 0.1225) .lineTo(0, 0.1225) .close() .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.1225) .lineTo(0.0383, 0.1225) .lineTo(0.3523, 0.122...
The design consists of two main parts. The first part is a solid cylindrical object with a flat circular top and bottom, a smooth surface, and a uniform diameter. The dimensions are a length of 0.75, a width of 0.75, and a height of 0.7375. The second part is a hollowed cylinder with a flat top and bottom, a smooth sur...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.7344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.734375, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.298, 0.298) .circle(0.2957) .e...
The design involves creating a cube with a rectangular cutout. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, consisting of two loops that define the outer boundary and the inner cutout. After completing the sketch, scale...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6882, 0) .lineTo(0.6882, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.1206, 0.25) .lineTo(0.5529, 0.25) .lineTo(0.5529, 0.5265) .lineTo(0.1206, 0.5265) .close() .extrude(0.125) ) part_...
Start by creating a rectangular plate with rounded edges and a flat surface. The plate is initially drawn as a two-dimensional sketch, which is then scaled down to 75% of its original size. This scaled sketch is transformed into a three-dimensional object by extruding it along the normal direction. The final dimensions...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2588, 0) .lineTo(0.2588, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0069/00698045.stl")
The design involves creating a rectangular bar with rounded edges. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a closed loop on a new face to form the base of the bar. This loop is then scaled and transformed into three dimensions using the same angles and vecto...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.02, 0) .lineTo(0.02, 0.0469) .lineTo(0, 0.0469) .close() .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 ...
The rectangular plate is created by extruding a two-dimensional sketch into a three-dimensional solid. The sketch consists of a rectangle with a length of 0.75 units and a width of 0.375 units. After scaling the sketch by 0.75, the final dimensions of the plate are reduced accordingly. The plate is then extruded 0.0225...
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.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0061/00615097.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a rectangle with four lines. After completing the sketch, scale it down and transform it into three dimensions by applying a rotation and translation. Extrude the trans...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3206) .lineTo(0, 0.3206) .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, "....
Create a new coordinate system and draw a two-dimensional circular sketch on the first face. Scale the sketch and transform it by rotating and translating it according to the specified angles and vectors. Extrude the sketch to form a three-dimensional cylindrical object. The cylinder has a slightly rounded top and bott...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0314, 0.0314) .circle(0.0311) .extrude(0.7031) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.070312, 0.75, 0.0625)) result = part_1 cq.exporters.export(result, "./stlcq/0067/00676157.stl")