input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
Construct a rectangular prism with rounded edges and corners. Begin 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 the specified dimensions. Scale the sketch to fit the desired size and transform it into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6529, 0) .lineTo(0.6529, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.226562, 0)) result = part_1 cq.exporters.export(result, "....
Begin by setting up a new coordinate system with default angles and no translation. Draw a circular shape on the first face, and within it, draw a smaller concentric circle. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by extruding it 0.75 units upwards. This p...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2353, 0.2353) .circle(0.2335) .moveTo(0.2353, 0.2353) .circle(0.1875) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0021/00218018.stl")
Start by creating a new coordinate system with default settings. Draw a square plate with a circular hole in the middle. The square has sides that are 0.75 units long, and the circular hole is centered within the square. After drawing the initial sketch, apply a scale factor to reduce the size of the sketch. Extrude th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6559) .lineTo(0, 0.6559) .close() .moveTo(0.4029, 0.3294) .circle(0.1382) .extrude(0.0938) ) result = part_1 cq.exporters.export(result, "./stlcq/0020/00208246.stl")
Create a rectangular plate by starting with a two-dimensional sketch on the X-Y plane. The sketch outlines a rectangle that will serve as the base of the plate. Once the sketch is complete, transform it into a three-dimensional object by extruding it 0.0188 units in the positive Z direction. The resulting plate has a l...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0084/00841299.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular shape on the first face, ensuring the sides are parallel to the coordinate axes. Scale the rectangle to reduce its size proportionally. Transform the scaled rectangle into a three-dimensional object by aligning it with the coord...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0941, 0) .lineTo(0.0941, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1094) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00402217.stl")
Construct a rectangular prism base by creating a new coordinate system aligned with the global axes. Draw a two-dimensional rectangle on the first face, then scale it down to 75% of its original size. Transform this scaled rectangle into a three-dimensional shape by extruding it 0.0019 units along the normal direction....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5618, 0) .lineTo(0.5618, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0051/00513500.stl")
Start by creating a new coordinate system and drawing a two-dimensional sketch that forms a rectangle. The sketch is then scaled down and transformed into a three-dimensional shape. The final model is a rectangular prism with a slightly rounded top and bottom, and sharp edges. The rectangular prism 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.4471) .lineTo(0, 0.4471) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0015/00155864.stl")
The design consists of two main parts. The first part is a rectangular base with a slight curve. It has a length of 0.75 units, a width of 0.375 units, and a height of 0.225 units. The second part is a rectangular block placed on top of the base. This block also measures 0.75 units in length and 0.375 units in width bu...
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.3765, 0.1882) .lineTo(0.3765, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.2266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.2265...
Begin by setting up a new coordinate system with default angles and vectors. Draw a two-dimensional sketch featuring two concentric circles on the first face. The outer circle has a larger diameter, while the inner circle is smaller, creating a ring-like shape. Scale down the entire sketch to fit the desired dimensions...
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/0047/00472027.stl")
The first part involves creating a rectangular box. This box has a length of 0.75 units, a width of 0.4875 units, and a height of 0.15 units. The second part involves constructing a cube. This cube has a length of 0.45 units, a width of 0.3375 units, and a height of 0.225 units. Both parts are created by defining a new...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4882) .lineTo(0, 0.4882) .close() .extrude(0.1484) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4531, 0) .lineTo(0.4531, 0.3394) .l...
The design involves creating a rectangular plate with a series of intricate features. The plate has a primary rectangular face with a circular hole and a complex shape cutout. The rectangular face forms the main body of the plate, while the circular hole and the complex shape add specific functional elements. After def...
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() .moveTo(0.1206, 0.1765) .threePointArc((0.15, 0.1059), (0.2206, 0.0765)) .lineTo(0.5294, 0.0765) .threePointArc((0.6, 0.1059), (0.62...
The first part involves creating a cylindrical base. Begin by setting up a new coordinate system with default angles and positions. Then, draw a circular shape on a new face. This circle is scaled down to fit the desired size. The scaled circle is then transformed to its final position and orientation. Finally, the cir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00352688.stl")
Start by creating a new coordinate system with no rotation and a slight offset in the y-direction. Draw a rectangular shape on the top face, which forms the base of the structure. This rectangle has a longer side and a shorter side, with a small step on one of the longer sides. Transform this sketch into a three-dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2734, 0) .lineTo(0.2734, 0.0997) .lineTo(0.2734, 0.1319) .lineTo(0, 0.1319) .lineTo(0, 0.0997) .close() .extrude(0.75) ) part_1 = part_1.translate((0, 0.132812, 0)) result = part_1 cq.exporte...
The cylindrical object features a rectangular top with curved edges. The base is circular, and the top forms a rounded rectangle. The structure transitions smoothly from the circular base to the rectangular top. The final dimensions of the object are a length of approximately zero point six four five, a width of around...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1068, 0) .lineTo(0.4374, 0) .threePointArc((0.6484, 0.2111), (0.4374, 0.4247)) .lineTo(0.1068, 0.4247) .threePointArc((0.3179, 0.2111), (0.1068, 0)) .close() .moveTo(0.1068, 0.2111) .circle(0.1068) .move...
The design involves creating a cylindrical object. Start by setting up a new coordinate system with specific rotations and translations. Then, draw a circle on a new face and scale it appropriately. After scaling, rotate and translate the circle to position it correctly. Finally, extrude the circle along the normal dir...
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/0015/00152077.stl")
Create an L-shaped CAD model with a rectangular base and a vertical extension. The base is wider than the vertical part, giving the model a distinctive L-shape. The model is constructed by extruding a two-dimensional sketch into a three-dimensional solid. The final dimensions of the model are approximately zero point s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6265) .lineTo(0.5, 0.6265) .lineTo(0.5, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1),...
The design consists of two main parts: a rectangular block and a cylinder. The rectangular block is created by drawing a closed loop of four lines to form a rectangle, which is then scaled, transformed, and extruded to create a solid body. The dimensions of the block are approximately 0.75 units in length, 0.38 units i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3794) .lineTo(0, 0.3794) .close() .extrude(0.2578) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.3438) ) part...
The design involves creating two main parts: a rectangular base and a cylindrical body. The rectangular base has a length of zero point seven five units, a width of zero point zero two eight seven units, and a height of zero point zero one four four units. This part forms the bottom of the final object. The cylindrical...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0294) .lineTo(0, 0.0294) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY")...
The first part of the design involves creating a base with a rectangular bottom and a curved top. Begin by setting up a new coordinate system with specific angles and translations. Then, draw a two-dimensional sketch that outlines the base shape. This sketch includes a series of lines and an arc to define the curved to...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0.75) .lineTo(0.1618, 0.75) .threePointArc((0.0471, 0.7029), (0, 0.5882)) .close() .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.109375, 0)) result = part_1 ...
The design involves creating a rounded cylinder with a specific orientation and dimensions. Start by setting up a coordinate system with Euler angles of 0.0, 0.0, -90.0 degrees. A circular base is drawn and then scaled down to fit the desired size. This base is then transformed into a three-dimensional shape by rotatin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .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, "./stlcq/0012/00121768.stl")
Create a coordinate system with all angles and translations set to zero. Draw a square in a two-dimensional sketch, ensuring that the sides are equal. Scale the square to the desired size and transform it into three-dimensional space. Extrude the square along the normal direction to form a solid body. The final dimensi...
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.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0021/00210371.stl")
To create a cylindrical object with a rounded end and a flat end, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw the first face using a series of lines and arcs to form a complex shape. This shape is then scaled down and transformed into a three-dimensional object ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.009926, 0) .lineTo(0.009926, 0.005147) .lineTo(0.034926, 0.01011) .lineTo(0.036765, 0.011949) .lineTo(0.041728, 0.036949) .lineTo(0.046875, 0.036949) .lineTo(0.046875, 0.046875) .threePoint...
The design involves creating a rounded cylindrical base. Start by establishing a new coordinate system with specific orientation settings. Next, draw a circle on the first face and scale it down. This scaled circle is then transformed into a three-dimensional object by applying rotation and translation. The circle is e...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.25) ) 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/0004/00048325.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch of a rectangular section on the first face, forming a loop with five lines. After completing the sketch, apply a scaling factor to adjust its size. Transform the scaled 2D sketch into 3D by rotating and trans...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0, 0.0118) .lineTo(0, 0.7382) .lineTo(0.0412, 0.75) .lineTo(0.0412, 0.0118) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 ...
Start by setting up a new coordinate system with default angles and positions. Draw a rectangular two-dimensional sketch on the first face, ensuring the proportions are maintained. Transform this sketch into a three-dimensional object by extruding it 0.75 units along the normal direction. This process creates a solid b...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5391, 0) .lineTo(0.5391, 0.4017) .lineTo(0, 0.4017) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0063/00635246.stl")
The design involves creating a circular ring with three inner circles. Start by setting up a new coordinate system with default angles and no translation. On the first face, draw a closed loop using four arcs to form an outer boundary. Inside this boundary, draw three smaller circles, each centered at specific points a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0676, 0.2559) .threePointArc((0.1382, 0), (0.2088, 0.2559)) .threePointArc((0.2765, 0.3765), (0.2088, 0.4941)) .threePointArc((0.1382, 0.75), (0.0676, 0.4941)) .threePointArc((0, 0.3765), (0.0676, 0.2559)) .close() ...
Create a rounded rectangular base by starting with a new coordinate system aligned with the global axes. Draw a rectangular sketch on the first face, ensuring that the corners are slightly rounded. Scale the sketch to fit the desired size. Transform the scaled sketch into a three-dimensional object by extruding it alon...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6294) .lineTo(0, 0.6294) .close() .extrude(0.6641) ) result = part_1 cq.exporters.export(result, "./stlcq/0034/00347380.stl")
Start by creating a new coordinate system with default settings. Draw the first face of the rectangular prism base, forming a rectangle with four straight lines. Scale the rectangle to the desired size. Transform the scaled sketch into a three-dimensional object by extruding it along the normal direction. The resulting...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3559) .lineTo(0, 0.3559) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0097/00972918.stl")
The design consists of three main parts that combine to form a complex structure. The first part is a rectangular beam with a flat top and bottom and a hollow center. This beam has a length of zero point two one seven five, a width of zero point two seven seven five, and a height of zero point three seven five. The sec...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0309, 0) .lineTo(0.0309, 0.2393) .lineTo(0.1864, 0.2393) .lineTo(0.1864, 0.2702) .lineTo(0.1158, 0.2702) .lineTo(0.0397, 0.2702) .lineTo(0, 0.2702) .close() .extrude(0.375) ) part_1 = p...
The design involves creating a rectangular prism with a flat base and a tall, narrow top. Begin by setting up a new coordinate system with specific rotations and translations. Draw a complex two-dimensional sketch on the first face, which forms the outline of the prism's base and top. This sketch is then scaled down an...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6676, 0) .lineTo(0.6676, 0.0824) .lineTo(0.5, 0.0824) .lineTo(0.5, 0.75) .lineTo(0.1676, 0.75) .lineTo(0.1676, 0.0824) .lineTo(0, 0.0824) .close() .extrude(0.4141) ) part_1 = part_1.rot...
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape on a flat surface, ensuring the proportions are maintained. This rectangle will serve as the base of the rod. Transform this rectangle into a three-dimensional object by rotating and translating it according to ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0469, 0) .lineTo(0.0469, 0.0325) .lineTo(0, 0.0325) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(res...
Create a cube with a small hole in the center. Start by setting up a new coordinate system with default settings. Draw a square on the first face and add a small circle in the center of the square. Scale the entire sketch to fit within the desired dimensions. Extrude the sketch to form a solid cube. The final dimension...
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.3765, 0.3765) .circle(0.0559) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0030/00307446.stl")
Create a rectangular base by starting with a new coordinate system aligned with the default axes. Draw a two-dimensional rectangular sketch on the first face, ensuring it forms a closed loop. Scale the sketch to fit the desired size, then transform it into three-dimensional space. Extrude the sketch along the normal di...
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.4297) ) result = part_1 cq.exporters.export(result, "./stlcq/0022/00220926.stl")
The design involves creating a cylindrical object with a hexagonal base and top. Start by setting up a new coordinate system with default angles and no translation. Draw a two-dimensional sketch that includes a hexagon and a circle inside it. Scale the sketch to fit the desired dimensions. Transform this sketch into th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2037) .lineTo(0.0021, 0.0665) .lineTo(0.1212, 0) .lineTo(0.2391, 0.0697) .lineTo(0.237, 0.207) .lineTo(0.118, 0.2734) .close() .moveTo(0.119, 0.1373) .circle(0.1062) .extrude(0.75) ) result = par...
Start by creating a new coordinate system with the specified translation vector. On the first face, draw a two-dimensional rectangular sketch. Scale this sketch appropriately and transform it into a three-dimensional object by rotating and translating it according to the given parameters. Extrude the transformed sketch...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2559, 0) .lineTo(0.2559, 0.375) .lineTo(0, 0.375) .close() .extrude(0.0703) ) part_1 = part_1.translate((0, 0.382812, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0084/00844018.stl")
The design involves constructing a rectangular box and then cutting a cylindrical hole through it. First, create a new coordinate system and draw a rectangular sketch, which is then scaled down and extruded to form a solid rectangular box. The box has a length of 0.75, a width of 0.1875, and a height of 0.5625. Next, c...
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.5625) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0549, 0.0549) .circle(0.0545) .extrude(0.0391) ) part_...
The first part involves creating a cube with a side length of 0.375 units. A coordinate system is set up with specific Euler angles and a translation vector, and a two-dimensional square sketch is drawn and transformed into three dimensions. The sketch is then extruded to form a solid cube. For the second part, a recta...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.375) .lineTo(0, 0.375) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") ...
The design consists of two rectangular plates. The first plate has a length of 0.71875 meters, a width of 0.40625 meters, and a height of 0.028125 meters. The second plate is slightly larger, with a length of 0.75 meters, a width of 0.4375 meters, and a height of 0.025 meters. Both plates have a flat surface and rounde...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7188, 0) .lineTo(0.7188, 0.4059) .lineTo(0, 0.4059) .close() .extrude(0.0312) ) part_1 = part_1.translate((0.015625, 0.015625, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
The design involves four main parts that are combined to form the final shape. The first part is a cube with a length of 0.75, width of 0.45, and height of 0.4125. The second part is a rectangular box with a length of approximately 0.2, width of approximately 0.15, and height of 0.0435. This part removes material from ...
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.4141) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1953, 0) .lineTo(0.1953, 0.1478) .lineTo...
The first part of the design involves creating a cylindrical base. Start by setting up a new coordinate system aligned with the global axes. Draw a circular face centered at [0.375, 0.375] with a radius of 0.375 units. Scale this circle to fit the desired dimensions. Convert the two-dimensional sketch into a three-dime...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0012/00127872.stl")
To create the rectangular block, start by defining a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch that outlines the first face with a series of lines forming a unique shape. This sketch is then scaled, rotated, and translated to position it correctly. The sketch is...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7031, 0) .lineTo(0.7031, 0.2426) .lineTo(0.6121, 0.2426) .lineTo(0, 0.2426) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 c...
The rectangular bracket features a flat, rectangular shape with rounded edges and two circular holes on opposite sides. The first face includes a rectangular outline with rounded corners and two larger circular holes. The second and third faces each contain a smaller circular hole. After scaling the entire sketch by se...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0735, 0) .lineTo(0.3765, 0) .lineTo(0.6765, 0) .threePointArc((0.75, 0.0735), (0.6765, 0.1441)) .lineTo(0.3765, 0.1441) .lineTo(0.0735, 0.1441) .threePointArc((0, 0.0735), (0.0735, 0)) .close() .moveTo(0...
Start by creating a new coordinate system aligned with the default axes. Draw the first two-dimensional sketch on the first face, which consists of a rectangular shape with rounded corners and two smaller circular holes. The rectangular shape has a longer side and a shorter side, with the corners rounded to create a sm...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0529) .threePointArc((0.0529, 0), (0.1059, 0.0529)) .lineTo(0.1059, 0.6971) .threePointArc((0.0529, 0.75), (0, 0.6971)) .close() .moveTo(0.0529, 0.6971) .circle(0.0206) .moveTo(0.0529, 0.0529) .circle...
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, ensuring that the proportions are maintained. The rectangle will serve as the base for the three-dimensional model. Once the sketch is complete, scale it down to fit the desired size. Transform t...
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/0073/00736488.stl")
The design consists of three main parts. The first part is a cylindrical base with a height of 0.0938 units and a diameter of 0.75 units. The second part extends the cylindrical base by adding another cylindrical section with a height of 0.0469 units and a diameter of 0.7031 units. These two parts are joined together t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0938) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.3529, 0.3529) .circle(0.3502) .extrude(0.0469) ) part_2 = part_2.translate((0.023438, 0.023438, 0.09375)) ...
The design begins with creating a base octagonal plate. This plate has a flat top and bottom, with eight equal sides and rounded edges. The dimensions of the base plate are length 0.749999942654644 units, width 0.749999942654644 units, and height 0.1552889086655616 units. Next, an inner cutout is created within the bas...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.220588) .lineTo(0.223529, 0.002941) .lineTo(0.529412, 0) .lineTo(0.75, 0.220588) .lineTo(0.75, 0.529412) .lineTo(0.532353, 0.752941) .lineTo(0.220588, 0.75) .lineTo(0, 0.529412) .close() .extrude(...
The design involves creating a hexagonal nut with a central circular hole. Start by setting up a coordinate system and drawing a hexagon on the first face. Inside the hexagon, draw a smaller circle to represent the central hole. Scale the entire sketch to fit the desired size. Transform the sketch into a three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3206) .lineTo(0.1912, 0) .lineTo(0.5676, 0.0059) .lineTo(0.75, 0.3324) .lineTo(0.5588, 0.6559) .lineTo(0.1824, 0.65) .close() .moveTo(0.3765, 0.3265) .circle(0.1588) .extrude(0.3125) ) result = p...
Start by creating a new coordinate system aligned with the default axes. Draw a square on the first face, ensuring that the sides are equal. Scale the square to achieve the desired size. Transform the scaled square into a three-dimensional object by rotating and translating it according to the initial coordinate system...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6406, 0) .lineTo(0.6406, 0.6406) .lineTo(0, 0.6406) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0064/00648781.stl")
The first part of the design is a rectangular base with rounded edges. This base has a length of approximately 0.6579 units, a width of 0.75 units, and a height of 0.0658 units. The second part is a raised rim that sits on top of the base. The rim has a length of approximately 0.6801 units, a width of 0.7237 units, and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6588, 0) .lineTo(0.6588, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0625) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6468, 0) .lineTo(0.6468, 0.7266) .li...
The design involves creating a cylindrical object with a hollow center and rounded edges. Start by setting up a new coordinate system with default angles and vectors. Draw a circular face with a concentric inner circle, representing the outer and inner diameters of the cylinder. Scale this face down to fit the desired ...
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.1471) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0098/00984300.stl")
Start by creating a new coordinate system with specific rotations and translations to position the model correctly. Next, draw a rectangular shape on a single face. This rectangle has a length of zero point zero three zero four units and a width of zero point seven five units. After drawing the rectangle, scale it down...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0294, 0) .lineTo(0.0294, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0312) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.03125, 0)) result = part_1 cq.exporters.export(result, "./...
The design consists of six parts. The first part is a rectangular plate with rounded corners, measuring approximately 0.0054 meters in length, 0.4623 meters in width, and 0.0106 meters in height. The second part is a larger rectangular plate with rounded corners, measuring about 0.6649 meters in length, 0.6543 meters i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.005423, 0) .lineTo(0.005423, 0.106648) .lineTo(0, 0.106648) .close() .extrude(0.007812) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.354289) .lineTo(0.005423, 0.354289) .lin...
Start by creating a new coordinate system and drawing a rectangular sketch on the first face. The rectangle has a length of 0.75 units and a width of 0.375 units. Scale the sketch to reduce its size, then rotate and translate it to position it correctly. Extrude the sketch in both directions to form a solid rectangular...
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.0312) ) part_1 = part_1.translate((0, 0, 0.007812)) result = part_1 cq.exporters.export(result, "./stlcq/0079/00797314.stl")
The L-shaped CAD model consists of a rectangular base with a horizontal arm and a vertical arm. The horizontal arm extends to a length of 0.75 units, while the vertical arm reaches a height of 0.389 units. The entire model has a uniform thickness of 0.0421 units. The design features a cutout near the corner where the t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3882) .lineTo(0.6794, 0.3882) .lineTo(0.6794, 0.0706) .lineTo(0.0706, 0.0706) .lineTo(0.0706, 0.3882) .lineTo(0, 0.3882) .close() .extrude(0.0391) ) part_1 = part...
To construct the rectangular bar with rounded edges, 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 the specified dimensions. Scale the sketch to adjust its size, then transform it into three dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0824) .lineTo(0, 0.0824) .close() .extrude(0.0391) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.039062, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of four main parts. The first part is a rectangular base with a length of approximately 1.014 units, a width of 1.014 units, and a height of 0.076 units. This base forms the foundation of the model. The second part includes four cylindrical protrusions, each with a length of about 0.631 units, a wid...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(1.015625, 0) .lineTo(1.015625, 1.015625) .lineTo(0, 1.015625) .close() .extrude(0.078125) ) part_1 = part_1.translate((0, -0.367188, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.04...
The rectangular block is a simple yet essential component in many designs. It features a flat top and bottom with straight edges, making it ideal for structural applications. The block has a length of zero point four six eight seven five units, a width of zero point one eight seven five units, and a height of zero poin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4688, 0) .lineTo(0.4688, 0.1875) .lineTo(0, 0.1875) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./s...
The design involves creating a wedge-shaped base. Start by setting up a new coordinate system with default settings. Draw a complex two-dimensional sketch that forms a unique shape with multiple arcs and lines. After completing the sketch, scale it down by 75%. Transform this scaled sketch into a three-dimensional obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0529) .threePointArc((0.0147, 0.0147), (0.0529, 0)) .lineTo(0.3206, 0) .lineTo(0.5882, 0) .threePointArc((0.6265, 0.0147), (0.6441, 0.0529)) .lineTo(0.6441, 0.3206) .threePointArc((0.6265, 0.3588), (0.5882, 0...
The rectangular base is created by first defining a new coordinate system with specific Euler angles and a translation vector. A 2D rectangular sketch is then drawn on the first face. This sketch is scaled down and rotated before being translated to its final position. The sketch is extruded to form a 3D rectangular so...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5353) .lineTo(0, 0.5353) .close() .extrude(0.3594) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.359375, 0)) result = part_1 cq.exporters.export(result, "....
The design involves creating a rectangular prism with a small protrusion. Start by defining a new coordinate system with specific Euler angles and a translation vector. The first face consists of a rectangular shape, and the second face extends this shape to form a larger rectangle. The third face introduces a smaller ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.05) .lineTo(0.0529, 0.05) .lineTo(0, 0.05) .close() .extrude(0.2266) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0529, 0.05) .lineTo(0.15, 0.05) .li...
Start by creating a new coordinate system with default settings. On the first face, draw a rectangular loop using four lines to define the perimeter. After completing the loop, scale the sketch to reduce its size. Extrude the scaled sketch along the normal direction to form a solid body. The final shape is a rectangula...
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/0038/00389938.stl")
The first part consists of a 3D model with a rectangular base and a triangular top. This part has a length of 0.5390625, a width of 0.134765625, and a height of 0.37500000000000006. The second part is a rectangular prism with rounded edges, measuring 0.46875000000000006 in length, 0.11718750000000001 in width, and 0.35...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0359, 0) .lineTo(0.2706, 0.1163) .lineTo(0.2706, 0.1353) .close() .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2706, 0.1163) .lineTo(0.5031, 0) .lineTo(0.5391, ...
Start by creating a new coordinate system and then draw a two-dimensional sketch on the first face. This sketch consists of two concentric circles, with the inner circle being smaller than the outer one. Scale the entire sketch to reduce its size, rotate it to align with the desired orientation, and then translate it t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1804, 0.1804) .circle(0.179) .moveTo(0.1804, 0.1804) .circle(0.1494) .extrude(0.7266) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.726562, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
Start by creating a rectangular plate. The plate has a length of 0.575 units, a width of 0.75 units, and a height of 0.025 units. The plate is created by extruding a two-dimensional sketch along the normal direction. The final shape is a solid rectangular plate with the specified dimensions.
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/0007/00075494.stl")
The design consists of two main parts. The first part is a rectangular plate with a length of 0.75, a width of 0.5, and a height of 0.015. This plate forms the base of the structure. The second part involves constructing four vertical cylinders, each with a length of 0.67, a width of 0.42, and a height of 0.3. These cy...
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.0156) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0395, 0) .lineTo(0.0395, 0.0395) .lineTo(...
Start by creating a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch on the first face, consisting of two loops. The first loop forms a square with rounded corners, and the second loop forms a smaller square with rounded corners inside the first loop. Scale the entire sketch...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0471) .threePointArc((0.0147, 0.0147), (0.0471, 0)) .lineTo(0.7029, 0) .threePointArc((0.7353, 0.0147), (0.75, 0.0471)) .lineTo(0.75, 0.7029) .threePointArc((0.7353, 0.7353), (0.7029, 0.75)) .lineTo(0.0471, 0...
Create a rectangular plate with rounded edges and a flat surface. Start by defining a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, then scale the rectangle to fit the desired size. Transform the scaled sketch into a three-dimensional object by extruding it alo...
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/0041/00413163.stl")
Start by creating a new coordinate system with default settings. Draw a square on the first face, and within this square, place four small circles near each corner. Scale the entire sketch to reduce its size. Transform the scaled sketch into a three-dimensional model by extruding it along the normal direction to create...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0118, 0.0118) .circle(0.0059) .moveTo(0.0118, 0.7382) .circle(0.0059) .moveTo(0.7382, 0.0118) .circle(0.0059) .mov...
Create a vertical rectangular prism by starting with a new coordinate system aligned with the global coordinate system. Draw a two-dimensional sketch on the first face, forming a closed loop with four lines. After drawing the loop, scale the sketch proportionally. Transform the scaled sketch into three dimensions and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0469, 0) .lineTo(0.0469, 0.0469) .lineTo(0, 0.0469) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0005/00051880.stl")
The design involves creating a rectangular base with a protruding section. The base is defined by a series of connected lines that form a complex shape. After drawing the initial sketch, scale it down to 75% of its original size. The final 3D model is generated by extruding this scaled sketch 0.75 units upwards. The re...
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.75) ) result = part_1 cq.exporter...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape on the first face, then scale this shape to reduce its size. Transform the scaled shape into three dimensions by rotating and translating it according to the specified angles and vectors. Extrude the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1735) .lineTo(0, 0.1735) .close() .extrude(0.2344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.234375, 0)) result = part_1 cq.exporters.export(result, "....
The part is a vertical rod with a rectangular cross-section. The rod is created by defining a new coordinate system and drawing a 2D sketch that forms the base of the rod. This sketch is then scaled down, rotated, and translated to align correctly. Finally, the sketch is extruded to form the solid body. The dimensions ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0206, 0) .lineTo(0.1588, 0.75) .lineTo(0.1382, 0.75) .close() .extrude(0.0234) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.023438, 0)) result = part_1 cq.exporters.export(resul...
The design involves creating a cube and two cylinders that are combined to form a complex shape. The first part is a cube with a height, width, and depth of approximately 0.5083 units. The second part is a cylinder with a height of 0.3558 units and a diameter of 0.4819 units. The third part is another cylinder with a h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5078, 0) .lineTo(0.5078, 0.5078) .lineTo(0, 0.5078) .close() .extrude(0.5078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.242188, 0.507812, 0)) # Part 2: join part_2 = ( cq.Wor...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a single face and within it, draw a circle. Scale the 2D sketch appropriately and then transform it into 3D by rotating and translating it. Finally, extrude the 2D sketch to form a solid cylindrical object. The final par...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.0118) .circle(0.0117) .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.375, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0009/00096174.stl...
The design involves creating a rectangular prism with rounded edges. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a loop with several lines to create the base shape. Scale the sketch appropriately and transform ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0312, 0) .lineTo(0.0312, 0.0312) .lineTo(0.0294, 0.0312) .lineTo(0.0294, 0.0018) .lineTo(0, 0.0018) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), ...
Start by creating a new coordinate system with specific angles and translations. Draw a circle on the first face and scale it appropriately. Transform the sketch into three dimensions by rotating and translating it. Extrude the sketch in both directions to form a solid cylindrical object. The final dimensions of this c...
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/0035/00353098.stl")
The first part involves creating a rectangular prism with rounded edges and a flat top. The structure starts with a circular face on one end and a rectangular face on the other, followed by several rectangular faces connecting them. After scaling and transforming the sketch, the final dimensions are approximately 0.75 ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0529, 0.4265) .circle(0.0529) .extrude(0.1094) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0059, 0) .lineTo(0.0588, 0) .lineTo(0.0588, 0.4235) .lineTo(0.0059, 0.4235) .close() .extrude(0.10...
The rounded rectangular wrench head consists of three main faces. The first face features a circular shape and a hexagonal outline. The second face includes a complex shape with multiple arcs and lines, creating a rounded rectangle with a smaller rectangular cutout. The third face has a simple arc and a small triangula...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1265, 0.1265) .circle(0.1235) .moveTo(0.0294, 0.1265) .lineTo(0.0765, 0.0412) .lineTo(0.1735, 0.0412) .lineTo(0.2235, 0.1265) .lineTo(0.1735, 0.2088) .lineTo(0.0765, 0.2088) .close() .extrude(0.0859)...
The design involves creating a rounded cylinder. A new coordinate system is established with specific rotations and translations. A circular sketch is drawn and then scaled down. This scaled sketch is transformed into a three-dimensional object and extruded to form the cylinder. The final dimensions of the cylinder are...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.298, 0.298) .circle(0.2957) .extrude(0.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.210938, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0069/00695479.stl")
The first part of the CAD model is a cylindrical section with a height of approximately 0.6483 units and a diameter of about 0.0254 units. The second part is a smaller protrusion added to one end of the cylindrical section, with a height of about 0.0508 units and the same diameter as the cylindrical section. These two ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.011765, 0.011765) .circle(0.011673) .extrude(0.648438) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.0625, 0.75, 0.0625)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.011673, 0.011765) ....
The design consists of four main parts. The first part is a rectangular block with a length slightly under 0.7 units, a width of about 0.05 units, and a height of approximately 0.006 units. This block forms the base of the assembly. The second part is a cylindrical protrusion with a length of around 0.006 units, a widt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6875, 0) .lineTo(0.6875, 0.0485) .lineTo(0, 0.0485) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.03125, 0.007812, 0)) # Part 2: join part_2 = ( cq.Work...
To construct the ring, start by setting up a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch consisting of two concentric circles. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the same rotations and translation...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.3) .extrude(0.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/00...
The design involves creating a hollow cylinder. Begin by setting up a coordinate system aligned with the global axes. Sketch two concentric circles on a plane, with the outer circle having a larger radius and the inner circle a smaller radius. Scale the sketch to reduce its size, then transform it into a three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1294, 0.1294) .circle(0.1284) .moveTo(0.1294, 0.1294) .circle(0.0698) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0039/00395327.stl")
The first part involves creating a rectangular prism with rounded edges. The dimensions are length 0.1323, width 0.1146, and height 0.625. The second part involves creating a cylindrical object with a flat circular top and bottom. The dimensions are length 0.0458, width 0.0458, and height 0.0208. These two parts are th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0573) .lineTo(0.0333, 0) .lineTo(0.0995, 0) .lineTo(0.1328, 0.0573) .lineTo(0.0995, 0.1151) .lineTo(0.0333, 0.1151) .close() .extrude(0.625) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo...
The first part involves creating a cylindrical object with smooth, rounded top and bottom surfaces. The cylinder has a length and width of approximately 0.584 units and a height of 0.616 units. The second part involves constructing a cylindrical object with flat circular top and bottom surfaces. This cylinder has a len...
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.2229) .extrude(0.6172) ) part_1 = part_1.translate((0.015625, 0.015625, 0.132812)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0.3098, 0.3...
The design consists of two main parts. The first part is a rectangular box with a length of 0.75, a width of 0.634, and a height of 0.1972. This box features an open top and bottom, with a smaller rectangular opening on the top surface. The second part is a rectangular block with a length of 0.6572, a width of 0.1686, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6353) .lineTo(0, 0.6353) .close() .moveTo(0.0471, 0.0471) .lineTo(0.7029, 0.0471) .lineTo(0.7029, 0.5882) .lineTo(0.0471, 0.5882) .close() .extrude(0.1953) ) ...
Construct a rectangular prism with rounded edges and a small notch. 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 a loop with seven segments, including lines and an arc. Scale the sketch to 75% of its origi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6147, 0) .lineTo(0.6147, 0.75) .lineTo(0.3382, 0.75) .lineTo(0.3382, 0.7206) .threePointArc((0.3088, 0.6912), (0.2765, 0.7206)) .lineTo(0.2765, 0.75) .lineTo(0, 0.75) .close() .extrude(...
The design involves creating a rectangular prism with rounded edges and a flat top. Start by setting up a new coordinate system with the origin shifted slightly upwards. Draw a series of lines and arcs to form the outline of the prism on a two-dimensional plane. The outline consists of three main faces: the first face ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0794) .lineTo(0.1588, 0.0794) .threePointArc((0.0794, 0), (0, 0.0794)) .close() .extrude(0.0547) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.0794) .lineTo(0.1588, 0.0794) .lineTo(0.1588, ...
Start by creating a new coordinate system with default settings. Draw the first face, which includes a circle and a hexagon. The circle serves as the outer boundary, while the hexagon forms the inner cutout. Scale the entire sketch to reduce its size. Transform the 2D sketch into a 3D model by rotating and translating ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.1235, 0.2294) .lineTo(0.3765, 0.0853) .lineTo(0.6265, 0.2324) .lineTo(0.6265, 0.5206) .lineTo(0.3735, 0.6647) .lineTo(0.1235, 0.5176) .close() .extrude(0.5) ) ...
To construct the rectangular prism with rounded edges, start by creating a new coordinate system aligned with the default axes. Draw the first face, which includes a series of line segments and an arc to form a rounded corner. The second face is a smaller, simpler shape that adds detail to the first face. After drawing...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3294) .lineTo(0.0448, 0) .lineTo(0.0975, 0.0066) .lineTo(0.0527, 0.332) .threePointArc((0.0263, 0.3333), (0, 0.3294)) .close() .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.3...
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch on the first face that consists of two loops. The outer loop forms a square, and the inner loop creates a smaller square inside, resulting in a hollow center. Scale the sketch to fit the desired size. Transform the sketch int...
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.1562) ) res...
Create a rectangular prism with a rectangular cutout and two protruding tabs. The first face features a complex shape with a large rectangle and a smaller cutout, while the second face has a similar structure but with different dimensions. Both faces are connected to form a single solid body. The overall dimensions of ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0765) .lineTo(0.0176, 0.0765) .lineTo(0.0176, 0) .lineTo(0.3765, 0) .lineTo(0.3765, 0.1882) .lineTo(0.3, 0.1882) .lineTo(0.3, 0.2265) .lineTo(0.0176, 0.2265) .lineTo(0.0176, 0.15) .lineTo(0, 0.15)...
The part is a rectangular frame with a square cutout. The outer dimensions of the frame are approximately 0.75 units in length and 0.4879 units in width. Inside the frame, there is a square cutout that reduces the material in the center. The part is then extruded to a height of 0.0495 units, creating a solid body. The ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4882) .lineTo(0, 0.4882) .close() .moveTo(0.1324, 0.0412) .lineTo(0.6176, 0.0412) .lineTo(0.6176, 0.4471) .lineTo(0.1324, 0.4471) .close() .extrude(0.0469) ) ...
The design involves creating a rectangular prism with a slightly curved top surface. The process starts by defining a new coordinate system and drawing several rectangles on different faces. These rectangles are then scaled down and transformed into a three-dimensional shape. The final shape is created by extruding the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0706) .lineTo(0.0088, 0.0706) .lineTo(0.0088, 0.0912) .lineTo(0, 0.0912) .close() .extrude(0.0078) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0088, 0) .lineTo(0.0088, 0.0706) .lineTo(0....
The first part is a cylindrical shape with a length of 0.5 units, a width of 0.5 units, and a height of 0.75 units. The second part is a curved semi-circular shape with a length of 0.4635 units, a width of 0.15625 units, and a height of 0.25 units. This part is positioned on the side of the cylinder, creating a U-shape...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.251, 0.251) .circle(0.249) .moveTo(0.251, 0.251) .circle(0.1235) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) # Part 2: cut part_2 = ( cq.Workplane("XY") .m...
Start by creating a new coordinate system and drawing a two-dimensional sketch that outlines the base of the trapezoidal prism. The sketch consists of a closed loop with five straight lines forming a trapezoid. After completing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1157) .lineTo(0.1988, 0) .lineTo(0.2006, 0) .lineTo(0.2006, 0.4609) .lineTo(0, 0.3471) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0035/00353481.stl")
The rectangular bar is a simple yet precise component with a square cross-section and rounded edges. It measures 0.75 units in length, 0.0833 units in width, and 0.0417 units in height. The bar is created by extruding a two-dimensional sketch that outlines its base shape. The sketch is then transformed and scaled to ac...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0824) .lineTo(0, 0.0824) .close() .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0095/00953072.stl")
Start by defining a new coordinate system with specific angles and translations. Draw a rectangular shape on the defined plane, then scale this shape to reduce its size. Transform the scaled shape into a three-dimensional object by rotating and translating it. Finally, extrude the shape to create a solid rectangular pr...
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.3125) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.3125, 0)) result = part_1 cq.exporters.export(result, "./stlcq...
The first part involves creating a rectangular block with a flat top and bottom, and straight edges. The block measures approximately 0.75 units in length, 0.0577 units in width, and 0.2538 units in height. In the second part, a smaller rectangular block with rounded edges and a flat top is created. This block measures...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0588) .lineTo(0, 0.0588) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.25, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") ....
To create a shell-shaped object, start by setting up a new coordinate system and drawing a two-dimensional sketch that forms the outline of the shell. This sketch consists of a single loop made up of three arcs and one line. After completing the sketch, scale it down to 75% of its original size. Transform the scaled sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0912) .threePointArc((0.1206, 0.0618), (0.2294, 0)) .threePointArc((0.75, 0.2529), (0.2294, 0.5029)) .threePointArc((0.1206, 0.4412), (0, 0.4118)) .close() .extrude(0.0547) ) part_1 = part_1.translate((0, 0.07031...