input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
To create a cube, begin by setting up a new coordinate system with specific rotations and translations. Draw a square on the first face, ensuring that the sides are equal. Transform this square into a three-dimensional shape by applying the specified rotations and translations. Finally, extrude the square along its nor...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((-0.03125, 0.75, -0.125)) result = part_1 cq.exporters.export(result, ...
Start by creating a new coordinate system with default settings. Sketch a rectangle on the first face, ensuring that the dimensions are proportional to the desired final size. Scale the sketch to achieve the correct proportions. Once the sketch is complete, extrude it along the normal direction to form a three-dimensio...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3706) .lineTo(0, 0.3706) .close() .extrude(0.0234) ) result = part_1 cq.exporters.export(result, "./stlcq/0086/00865255.stl")
A cylindrical object is created by defining a new coordinate system with specific Euler angles and a translation vector. A circular shape is drawn and then scaled down. This scaled circle is transformed into three dimensions and extruded in both directions along its normal to create a solid body. The final cylindrical ...
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/0079/00794889.stl")
Start by creating a new coordinate system with specific rotations and no translation. Draw a circular face on the new plane, then scale it to the desired size. Transform this scaled sketch into three-dimensional space using the coordinate system settings. Extrude the sketch along the normal direction to form a solid cy...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0235, 0.0235) .circle(0.0233) .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/0070/00703366.stl")
The design consists of two main parts: a rectangular block and a stepped pyramid section. The rectangular block has a length of zero point three two one four units, a width of zero point zero five three six units, and a height of zero point seven five units. It forms a simple rectangular prism. The stepped pyramid sect...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.320312, 0) .lineTo(0.320312, 0.054013) .lineTo(0, 0.054013) .close() .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: join part_2 = ( cq...
The design consists of two main components: a cube and a cylindrical top. The cube has a flat top and bottom, with square faces measuring 0.4286 units in both length and width, and a height of 0.2143 units. The cylindrical top sits centrally on the cube's upper face, extending 0.5357 units above it. The cylinder has a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4297, 0) .lineTo(0.4297, 0.4297) .lineTo(0, 0.4297) .close() .extrude(0.2109) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.5391) ) ...
The design involves creating a rectangular base with vertical walls and a horizontal connecting wall. The first step is to draw a complex polygon for the first face, followed by another complex polygon for the second face. These polygons are then scaled down and transformed into a three-dimensional shape. The final ste...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1882) .lineTo(0.1882, 0.1882) .lineTo(0.1882, 0) .lineTo(0.3765, 0) .lineTo(0.3765, 0.75) .lineTo(0.1882, 0.75) .lineTo(0.1882, 0.5618) .lineTo(0, 0.5618) .close() .extrude(0.75) ) part_1 = part_1...
Start by creating a new coordinate system with default settings. Draw the first face, which includes an outer square and an inner square. The outer square forms the boundary of the face, while the inner square creates a hole in the center. Scale the entire 2D sketch to fit the desired size. Transform the sketch into a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.25, 0.2206) .lineTo(0.5, 0.2206) .lineTo(0.5, 0.4706) .lineTo(0.25, 0.4706) .close() .extrude(0.25) ) result = part_1...
The design consists of two main parts. The first part is a rectangular prism with curved top and bottom edges. It has a length of 0.4984 meters, a width of 0.3657 meters, and a height of 0.1658 meters. The second part is a cylindrical object with a flat circular top and bottom. It has a diameter of 0.3801 meters and a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .threePointArc((0.3686, 0.1843), (0.5, 0.3667)) .lineTo(0, 0.3667) .close() .extrude(0.1641) ) part_1 = part_1.translate((0, 0.007812, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .mo...
The design involves creating a cylinder with a central hole. Begin by setting up a new coordinate system with default angles and positions. Draw a two-dimensional sketch that includes a larger circle and a smaller concentric circle. Scale the sketch to reduce its size, then transform it into a three-dimensional object ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1353) .extrude(0.2422) ) result = part_1 cq.exporters.export(result, "./stlcq/0076/00760093.stl")
The design involves creating a rectangular cross-section at the top of a cylindrical rod. First, a new coordinate system is established with specific rotations and translations. A complex two-dimensional sketch is then drawn on a face, forming a loop with multiple lines that define the outline of the rectangle. This sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0529) .lineTo(0, 0.0706) .lineTo(0.6441, 0.0706) .lineTo(0.6441, 0.0176) .lineTo(0.6794, 0.0176) .lineTo(0.6794, 0.0706) .lineTo(0.75, 0.0706) .lineTo(0.75, 0.0529) .lineTo(0.6971, 0.0529) .lineTo...
Start by setting up a new coordinate system with default angles and no translation. Draw a rectangular sketch on a new face, forming a closed loop with four lines. After completing the sketch, scale it down to fit the desired dimensions. Transform the sketch into three-dimensional space and extrude it along the normal ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2676) .lineTo(0, 0.2676) .close() .extrude(0.6328) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00926522.stl")
Start by creating a new coordinate system with specific rotations and translations. Sketch a rectangle on a plane, then scale and transform this sketch to position it correctly in space. Extrude the sketch in both directions to form a solid rectangular block. The final dimensions of the block are zero point one five un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1484, 0) .lineTo(0.1484, 0.1484) .lineTo(0, 0.1484) .close() .extrude(0.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...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with specific angles and translations. On the first face, draw two concentric circles, one larger and one smaller, to define the boundaries. Scale the sketch to fit the desired size, then rotate and translate it into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2, 0.2) .circle(0.1984) .moveTo(0.2, 0.2) .circle(0.1672) .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/0039/00394844.st...
Start by creating a new coordinate system with the specified settings. Draw a rectangular face with four circular holes. The rectangular face forms the base of the cube, and the circular holes are evenly distributed across the face. After defining the initial sketch, transform and scale it to fit the desired dimensions...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2109, 0) .lineTo(0.2109, 0.2109) .lineTo(0, 0.2109) .close() .moveTo(0.1712, 0.1712) .circle(0.0132) .moveTo(0.0397, 0.1712) .circle(0.0132) .moveTo(0.1712, 0.0397) .circle(0.0132) ...
Create a rectangular plate by starting with a new coordinate system aligned with the global axes and translated 0.0078 units along the z-axis. Draw a rectangle on the first face, ensuring the shape is proportionate with a longer side and a shorter side. Scale the rectangle to fit the desired dimensions. Transform the s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0078) ) part_1 = part_1.translate((0, 0, 0.007812)) result = part_1 cq.exporters.export(result, "./stlcq/0002/00029573.stl")
Design a curved, flat plate with rounded edges. The plate features a unique shape with smooth transitions between its edges and a slight curvature. The overall dimensions are 0.75 units in length, 0.5958 units in width, and 0.0094 units in height. The plate is created by extruding a two-dimensional sketch into a three-...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1088) .threePointArc((0.1441, 0.0382), (0.3, 0)) .lineTo(0.45, 0) .threePointArc((0.6059, 0.0382), (0.75, 0.1088)) .lineTo(0.75, 0.4824) .threePointArc((0.3735, 0.5971), (0, 0.4824)) .close() .extrude(0.0...
The design consists of two main parts. The first part is a rectangular base with a protruding section. It has a length of zero point six eight seven five units, a width of zero point five six two five units, and a height of zero point two five units. The second part is a rectangular prism with rounded top and bottom. I...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.498775, 0) .lineTo(0.498775, 0.188725) .lineTo(0, 0.188725) .close() .extrude(0.25) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.436765) .lineTo(0, 0.56348) .lineTo(0.6875, ...
The design consists of two main parts. The first part is a cylindrical object with a circular base and a curved top surface. It has a length of zero point five units, a width of zero point five units, and a height of zero point seven five units. The second part is a smaller cylindrical object with rounded top and botto...
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.0745) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.251, 0.251) .circle(0.0745) .extrude(0.75) ) part_1 = part_1.rotate((...
To construct a rounded cylindrical top, start by creating a new coordinate system with specific rotations and translations. Draw a circular 2D sketch on the first face, then scale this sketch to fit the desired size. Transform the scaled sketch into 3D space by applying the necessary rotations and translations. Finally...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .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/00702187.stl")
The design consists of two main parts: a rectangular bar and a cylindrical hole. The rectangular bar has a length of approximately 0.75 units, a width of 0.09375 units, and a height of 0.046875 units. This bar is created by extruding a two-dimensional rectangle along its normal direction. The cylindrical hole is positi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.094118) .lineTo(0, 0.094118) .close() .extrude(0.046875) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.027237, 0.027451) .circle(0.027237) .extrude(0.0...
To create the octagonal plate, start by setting up a new coordinate system with no rotation and a slight vertical translation. Draw a closed loop of eight straight lines to form the outline of the octagon. After completing the loop, scale the entire sketch to reduce its size. Transform the scaled sketch into a three-di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1999) .lineTo(0.2026, 0.0027) .lineTo(0.4798, 0) .lineTo(0.6797, 0.1999) .lineTo(0.6797, 0.4798) .lineTo(0.4824, 0.6824) .lineTo(0.1999, 0.6797) .lineTo(0, 0.4798) .close() .extrude(0.0703) ) part...
The design involves creating a symmetrical angular wave shape. Start by defining a new coordinate system with default settings. Draw the first two-dimensional sketch, which consists of three faces. Each face has a similar shape, featuring a series of connected lines that form a closed loop. The first face starts at the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1912, 0) .lineTo(0.3176, 0.1882) .lineTo(0.3176, 0.4706) .lineTo(0.2647, 0.3941) .close() .extrude(0.0469) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2176, 0) .lineTo(0.4059,...
Start by creating a new coordinate system aligned with the default axes. On the first face, draw a rectangular outline to define the base shape. Scale this outline to reduce its size proportionally. Transform the scaled outline into a 3D object by extruding it along the normal direction to create a rectangular block. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3618, 0) .lineTo(0.3618, 0.75) .lineTo(0, 0.75) .close() .extrude(0.3594) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00926696.stl")
Start by creating a new coordinate system with no rotation and a specific translation. Draw a rectangular two-dimensional sketch on the first face, ensuring the sides are proportional to the desired final dimensions. Transform this sketch into a three-dimensional object by rotating and translating it according to the p...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6719, 0) .lineTo(0.6719, 0.3636) .lineTo(0, 0.3636) .close() .extrude(0.6719) ) part_1 = part_1.translate((0.039062, -0.054688, 0.03125)) result = part_1 cq.exporters.export(result, "./stlcq/0027/002...
The L-shaped CAD model consists of a rectangular base with a vertical extension and a horizontal cutout in the middle. The base measures 0.75 units in length and 0.5625 units in width. The vertical extension rises 0.5625 units from the base. The horizontal cutout spans the middle of the base, creating a distinctive L-s...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0.6559, 0.5618) .lineTo(0.6559, 0.1882) .lineTo(0.4882, 0.1882) .lineTo(0.4882, 0.0941) .lineTo(0.2618, 0.0941) .lineTo(0.2618, 0.1882) .lineTo(0.09...
The design involves creating a disk-shaped object with a central hole. The disk has a square cross-section with a side length of 0.75 units and a thickness of 0.0938 units. The central hole is smaller, contributing to the overall shape and structure of the object. The disk and the hole are aligned centrally, forming a ...
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.0676) .extrude(0.0938) ) result = part_1 cq.exporters.export(result, "./stlcq/0030/00301847.stl")
The design consists of two main parts. The first part is a hollow cylinder created by extruding a circular sketch with a smaller concentric circle removed from its center. The cylinder has a length and width of zero point two and a height of zero point three seven five. The second part is a rectangular protrusion place...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.102, 0.102) .circle(0.1012) .moveTo(0.102, 0.102) .circle(0.0374) .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.132812, 0.273438, 0)) # Part 2: join pa...
Begin by setting up a new coordinate system with the origin slightly offset along the z-axis. Draw a rectangular sketch on the first face, forming a closed loop with four straight lines. After completing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6794) .lineTo(0, 0.6794) .close() .extrude(0.0312) ) part_1 = part_1.translate((0, 0, 0.046875)) result = part_1 cq.exporters.export(result, "./stlcq/0081/00819488.stl")
Start by creating a new coordinate system with Euler angles set to zero degrees and a translation vector of 0.0, 0.0, 0.0033. Draw a two-dimensional sketch on the first face, consisting of two loops. The first loop forms a larger rectangle, and the second loop forms a smaller rectangle inside the first. Scale the entir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2676) .lineTo(0, 0.2676) .close() .moveTo(0.0176, 0.0176) .lineTo(0.7324, 0.0176) .lineTo(0.7324, 0.25) .lineTo(0.0176, 0.25) .close() .extrude(0.2109) ) res...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first face as a rectangular shape with a small protrusion. For the second face, create a more complex shape with a curved section and a small rectangular extension. After completing both faces, scale the entire two-d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3706, 0) .lineTo(0.4147, 0.0088) .lineTo(0.3706, 0.0088) .lineTo(0, 0.0088) .close() .extrude(0.6172) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3706, 0.0088) .lineTo(0.5882,...
Start by creating a new coordinate system aligned with the global axes. Draw a rectangular shape on the first face, ensuring that the sides are parallel to the coordinate axes. Once the rectangle is complete, scale it down to fit the desired size. Transform this scaled rectangle into a three-dimensional object by extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.375) ) result = part_1 cq.exporters.export(result, "./stlcq/0070/00706883.stl")
The design consists of four parts, each contributing to the final assembly. The first part is a cylindrical object with rounded edges, measuring zero point four one two five in length, zero point four one two five in width, and zero point seven five in height. The second part is a smaller cylindrical object with a flat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.207843, 0.207843) .circle(0.206219) .moveTo(0.207843, 0.207843) .circle(0.092555) .extrude(0.75) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.207843, 0.207843) .circle(0.092555) .extrude(0.75) )...
The design involves creating a rounded rectangular shape with cylindrical sections and holes. Start by establishing a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that includes a series of lines and arcs forming a rounded rectangle, along with two circular cut...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5706) .lineTo(0.0882, 0.0882) .threePointArc((0.1794, 0), (0.2676, 0.0882)) .lineTo(0.3559, 0.5706) .threePointArc((0.1794, 0.75), (0, 0.5706)) .close() .moveTo(0.1794, 0.5706) .circle(0.0912) .moveTo...
To create the cylindrical object, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular shape on the first face, consisting of two concentric circles. After drawing the shape, scale it to the desired size. Transform this scaled sketch into a three-dimensi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0157, 0.0157) .circle(0.0156) .moveTo(0.0157, 0.0157) .circle(0.0099) .extrude(0.7109) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.023438, 0.007812, 0.007812)) resul...
Start by creating a rectangular block. Begin with a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, ensuring that the dimensions are proportional to the desired final size. Scale the rectangle to fit the required dimensions. Transform the scaled sketch into a thr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2265, 0) .lineTo(0.2265, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1875) ) result = part_1 cq.exporters.export(result, "./stlcq/0006/00062862.stl")
The first part involves creating a rectangular box with a length of 0.75 units, a width of 0.375 units, and a height of 0.3125 units. The second part involves constructing a smaller cube-like structure with a length of approximately 0.372 units, a width of approximately 0.363 units, and a height of 0.125 units. The sec...
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.3125) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.3662) .line...
The cylindrical object is created by starting with a circular base that is then scaled down and extruded to form a solid body. The final shape is a cylinder with a smooth surface and rounded edges. The cylinder measures 0.5625 units in both length and width, and stands 0.75 units tall. This simple yet robust design can...
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/0019/00190648.stl")
Start by creating a new coordinate system with default settings. Then, draw a circular shape on a flat surface, ensuring it is centered and has a moderate size. Scale this circular shape to reduce its size while maintaining its proportions. Transform this scaled shape into a three-dimensional object by aligning it with...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.375) ) result = part_1 cq.exporters.export(result, "./stlcq/0084/00842698.stl")
Start by creating a new coordinate system with specific angles and translations. Then, draw a two-dimensional sketch on the first face, forming a square. Transform this sketch into three-dimensional space and extrude it to create a solid body. The final shape is a cube with smooth, rounded edges and a uniform gray colo...
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.25) ) part_1 = part_1.translate((0.28125, 0.226562, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0061/00612762.stl")
Start by creating a cylindrical object with a hollow center. The object consists of a larger outer cylinder and a smaller inner cylinder, forming the hollow space. The overall dimensions of the object are 0.75 units in length and width, and 0.2216 units in height. The outer cylinder is defined by a circle, and the inne...
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.2382) .extrude(0.2188) ) result = part_1 cq.exporters.export(result, "./stlcq/0088/00889096.stl")
The design consists of two main parts. The first part is a cube with a length and width of approximately 0.641 units and a height of about 0.442 units. The second part is a rectangular block that is positioned above and slightly offset from the cube. The rectangular block has a length of around 0.641 units, a width of ...
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.4453) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6406, 0) .lineTo(0.6406, 0.2563) ...
The design involves creating a rectangular prism with rounded edges and a flat top. The process begins by setting up a new coordinate system with default angles and translations. A two-dimensional sketch is drawn on the first face, forming a complex shape with lines and arcs. This sketch is then scaled down and transfo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4559, 0.0912) .threePointArc((0.4853, 0.1029), (0.5118, 0.1235)) .lineTo(0.7471, 0.3882) .threePointArc((0.75, 0.4088), (0.7324, 0.4206)) .lineTo(0.5147, 0.4206) .threePointArc((0.4794, 0.4147), (0...
Construct a rectangular block by creating a new coordinate system and drawing a two-dimensional sketch of a square on the first face. The square is then scaled, rotated, and translated to its final position. The sketch is extruded to form a three-dimensional rectangular block. The block has a square base and a height t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1484, 0) .lineTo(0.1484, 0.1484) .lineTo(0, 0.1484) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.046875, 0.5, 0)) result = part_1 cq.exporters.export(result,...
The design involves creating a cube with smooth, rounded edges. Start by defining a new coordinate system aligned with the global axes. Next, draw a square on one of the faces, ensuring it forms a closed loop. This square is then scaled down and transformed into three-dimensional space. The scaled and transformed squar...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0054/00547361.stl")
The design consists of two main parts. The first part is a cube with a circular hole through its center. The cube has a length of 0.6 units, a width of 0.42 units, and a height of 0.27 units. The circular hole is centered and has a diameter that fits proportionally within the cube. The second part is a smaller cube wit...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.601562, 0) .lineTo(0.601562, 0.422273) .lineTo(0, 0.422273) .close() .moveTo(0.301961, 0.209957) .circle(0.132108) .extrude(0.273438) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .mov...
The first part of the CAD model is an L-shaped base with a slight curve at the bottom. It measures 0.75 units in length, 0.3343 units in width, and 0.1355 units in height. The second part is a small, rounded rectangular cutout that measures 0.0398 units in length, 0.0199 units in width, and 0.2259 units in height. This...
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 design involves creating a rectangular base with a protrusion. The base starts with a two-dimensional sketch on the first face, which forms a complex shape with multiple straight lines. After drawing the sketch, apply a scale factor to reduce its size. The scaled sketch is then transformed into a three-dimensional ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3059) .lineTo(0.3176, 0.3059) .lineTo(0.3176, 0.5176) .lineTo(0.55, 0.5176) .lineTo(0.55, 0.6765) .lineTo(0.0441, 0.6765) .lineTo(0.0441, 0.7294) .lineTo(0, 0.723...
The design consists of two main parts. The first part is a rounded rectangular base with a U-shaped cutout. This part has a length of 0.5143, a width of 0.3214, and a height of 0.3214. The second part is a rounded rectangular extension with a U-shaped cutout that attaches to the first part. This extension has a length ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5156, 0) .lineTo(0.5156, 0.3215) .lineTo(0.4186, 0.3215) .lineTo(0.4186, 0.1072) .lineTo(0.0971, 0.1072) .lineTo(0.0971, 0.3215) .lineTo(0, 0.3215) .close() .extrude(0.3203) ) part_1 = ...
The design involves creating a cylinder with a central hole. Start by setting up a coordinate system and drawing two concentric circles to define the outer and inner diameters of the cylinder. These circles are then scaled down and transformed into a three-dimensional shape. The final part is a cylinder with a central ...
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.0676) .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/00...
The design involves creating a cylindrical object with a smooth surface and rounded edges. The top of the cylinder is flat and circular. The overall dimensions are 0.285 units in both length and width, and 0.75 units in height. The cylinder is formed by extruding a 2D sketch, which consists of two concentric circles, i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1412, 0.1412) .circle(0.1401) .moveTo(0.1412, 0.1412) .circle(0.0585) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0075/00759418.stl")
The design consists of two right triangular prisms, each with a rectangular base and a triangular top. The first part has a length of zero point five, a width of zero point five, and a height of zero point three seven five. The second part is smaller, with a length of zero point two five, a width of zero point two five...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.251, 0) .lineTo(0.251, 0.251) .close() .extrude(0.375) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.251, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.5) .lineTo(0.251, 0.251) .close()...
To create a cylindrical ring with a central hole, start by setting up a new coordinate system with specific rotations and translations. Then, draw a two-dimensional sketch that includes two concentric circles. After scaling the sketch, transform it into three dimensions and extrude it to form the final shape. The resul...
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.1953) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.195312, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on a new face, ensuring the circle is centered and has a moderate size. Scale the circle to fit the desired dimensions. Transform the scaled circle into a 3D object by extruding it along the vertical axis to create a cylinder...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.051, 0.051) .circle(0.0506) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0045/00455674.stl")
The first part consists of a rectangular base with an L-shaped protrusion and curved edges. This part has a length of 0.7264, a width of 0.6162, and a height of 0.0949. The second part is a cylindrical base with a rectangular top and a protruding section. This part has a length of 0.7264, a width of 0.75, and a height ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.27068) .lineTo(0.159559, 0.27068) .lineTo(0.159559, 0) .lineTo(0.401746, 0) .lineTo(0.401746, 0.151011) .threePointArc((0.418842, 0.19375), (0.461581, 0.210846)) .lineTo(0.549908, 0.210846) .threePointArc...
To construct the cylindrical object, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a circular sketch on a new face and scale it down. Transform this scaled sketch into three dimensions by rotating and translating it according to the coordinate system settings. Ext...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90) result = part_1 cq.exporters.export(result, "./stlcq/0094/00948143.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch on the first face, forming a complex shape with a rectangular base and a protruding section. The base has a length of 0.75 units and a width of 0.5625 units. The protruding section extends from the middle of the base, adding ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1118) .lineTo(0.4324, 0.1118) .lineTo(0.4324, 0.5618) .lineTo(0.3176, 0.5618) .lineTo(0.3176, 0.1118) .lineTo(0, 0.1118) .close() .extrude(0.75) ) result = part_...
To create the cylindrical object, start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a circle on a single face and scale it to the desired size. Transform this scaled sketch into a three-dimensional shape by applying a rotation and translation. Finally, extrude t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.098, 0.098) .circle(0.0973) .extrude(0.6172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.0625, 0.6875, 0.0625)) result = part_1 cq.exporters.export(result, "./stlcq/0049/00493174.stl")
To construct a cylindrical object, start by setting up a new coordinate system with specific angles and translations. Then, draw a circular sketch on a new face and scale it appropriately. Transform this sketch into a three-dimensional shape by applying the necessary rotations and translations. Finally, extrude the ske...
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/0049/00498806.stl")
The design consists of five main parts that form an L-shaped bracket. The first part is a rectangular base with a length of 0.75, a width of 0.5859, and a height of 0.0938. The second part is a square top with a length of 0.75, a width of 0.4688, and a height of 0.0938, which removes material from the existing body. Th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5853) .lineTo(0, 0.5853) .close() .extrude(0.0938) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.09375, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") ...
Start by creating a cube with rounded edges and corners. The cube has a length of 0.7364 units, a width of 0.5454 units, and a height of 0.6818 units. Next, construct two identical cylinders with a small gap between them. These cylinders are positioned on the top surface of the cube. Each cylinder has a length of 0.463...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7344, 0) .lineTo(0.7344, 0.5443) .lineTo(0, 0.5443) .close() .extrude(0.6797) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0271, 0.0271) .circle(0.0271) .extrude(0.0703) ) ...
Start by creating a new coordinate system with specific rotations and translations. Next, draw a circular sketch on a face, then scale this sketch to achieve the desired size. Transform the scaled sketch into a three-dimensional object by applying the defined rotations and translations. Finally, extrude the sketch in b...
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/0045/00456154.stl")
The design involves creating a cylindrical object with a smooth surface and rounded edges. The cylinder is created by extruding a circular sketch along its normal. The final dimensions of the cylinder are 0.20769230769230768 units in both width and length, and 0.75 units in height. The cylinder stands independently and...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1051) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0038/00381190.stl")
The design consists of three main parts. The first part is a rectangular base with a length of approximately 0.75, a width of 0.4821, and a height of 0.4821. This base forms the foundation of the structure. The second part includes two smaller rectangular blocks, each with a length of 0.75, a width of 0.1607, and a hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.482353) .lineTo(0, 0.482353) .close() .extrude(0.484375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.484375, 0)) # Part 2: cut part_2 = ( cq.Workplane...
The first part involves creating a circular plate with several holes. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a large circle and four smaller circles on the first face. Scale the entire sketch and transform it into 3D by rotating and translating it according...
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.0412) .moveTo(0.6912, 0.3735) .circle(0.0206) .moveTo(0.2176, 0.1) .circle(0.0206) .moveTo(0.2176, 0.65) .circle(0.0176) .extrude(0...
Start by creating a rectangular prism base. This involves setting up a new coordinate system with specific rotations and translations. Draw a rectangular shape in a two-dimensional sketch, then scale this rectangle to fit the desired size. Transform the scaled rectangle into a three-dimensional object by rotating and t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5412) .lineTo(0, 0.5412) .close() .extrude(0.1484) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.148438, 0)) result = part_1 cq.exporters.export(result, "....
The first part involves creating a rectangular box with a square opening on top. The box has a flat bottom and four vertical walls. The dimensions of this part are: length 0.7214, width 0.4357, and height 0.5571. The second part involves constructing a cube with rounded edges and corners. The dimensions of this part ar...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.71875, 0) .lineTo(0.71875, 0.434069) .lineTo(0, 0.434069) .close() .moveTo(0.070466, 0.070466) .lineTo(0.648284, 0.070466) .lineTo(0.648284, 0.363603) .lineTo(0.070466, 0.363603) .close...
The design consists of two main parts. The first part is a cylindrical object with a height of 0.75 units and a base that measures 0.075 units in both length and width. This cylinder is positioned slightly offset from the origin. The second part is a smaller cylindrical object placed on top of the first cylinder. It ha...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0392, 0.0392) .circle(0.0389) .extrude(0.75) ) part_1 = part_1.translate((0.023438, 0.023438, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .moveTo(0.0627, 0.0627) ...
The L-shaped bracket consists of two perpendicular arms, each with a length and width of 0.75 units and a height of 0.0833 units. The arms form a right angle, and each arm has four holes evenly spaced along its length. The holes are small and positioned to ensure structural integrity while providing mounting points. Th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3324) .lineTo(0.3324, 0.3324) .lineTo(0.3324, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.1676, 0.1676) .circle(0.0324) .moveTo(0.1676, 0.5) .circle(0.0324) ...
Start by creating a new coordinate system and then draw a two-dimensional sketch on the first face. The sketch outlines a rectangular block with a notch on one side. The notch is defined by several lines that create a complex shape. After completing the sketch, scale it down and transform it into a three-dimensional ob...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3906, 0) .lineTo(0.3906, 0.0751) .lineTo(0, 0.0751) .lineTo(0, 0.0551) .lineTo(0.0551, 0.0628) .lineTo(0.0551, 0.0368) .lineTo(0.0551, 0.0123) .lineTo(0, 0.0199) .close() .extrude(0...
The design involves creating a cylindrical shape with a rectangular top and a circular base. The top has a flat surface with rounded edges. The height of the shape is 0.375 meters, the width is 0.01171875 meters, and the length is 0.02734375 meters. The process starts by setting up a new coordinate system and drawing a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0312, 0) .lineTo(0.0312, 0.0134) .lineTo(0, 0.0134) .close() .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, "...
The rectangular base is created by defining a new coordinate system with specific Euler angles and a translation vector. A two-dimensional sketch is drawn to form a rectangle, which is then scaled down. The scaled sketch is transformed into a three-dimensional shape by rotating and translating it according to the coord...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4118, 0) .lineTo(0.4118, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
The first part involves creating a rectangular block with two circular holes on its top surface. The block measures 0.75 units in length, 0.3462 units in width, and 0.1442 units in height. The holes are positioned symmetrically along the length of the block. The second part involves constructing two identical cylinders...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3471) .lineTo(0, 0.3471) .close() .moveTo(0.1735, 0.1735) .circle(0.0441) .moveTo(0.5765, 0.1735) .circle(0.0441) .extrude(0.1406) ) # Part 2: cut part_2 = ( ...
Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape on the first face, ensuring the lines form a closed loop. Transform this two-dimensional sketch into a three-dimensional object by rotating and translating it according to the initial coordinate sys...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3281, 0) .lineTo(0.3281, 0.1956) .lineTo(0, 0.1956) .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...
Start by creating a cylindrical object with a central circular hole. The object has a flat and parallel top and bottom surface, and smooth, curved sides. The height of the cylinder is 0.45 units, and both the length and width are 0.75 units. The central hole runs through the entire height of the cylinder, creating a ho...
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/0085/00856016.stl")
The design consists of three main parts: a cylindrical base, a larger cylindrical section, and a ring. The cylindrical base has a height of 0.0239 units and a diameter of 0.478 units. The larger cylindrical section, positioned above the base, has a height of 0.0239 units and a diameter of 0.564 units. The ring, which c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2392, 0.2392) .circle(0.2373) .extrude(0.0234) ) part_1 = part_1.translate((0.046875, 0.226562, 0.023438)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0.2801, 0.2801) .circle(0.2824) .moveTo(0.2801, 0.2...
The star-shaped box is constructed by creating a 2D sketch of a star with a hollow center. This sketch is then scaled down and transformed into a 3D model by extruding it along its normal. The final solid body is created through a boolean operation. The star-shaped box has a flat base and top, with the star shape formi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2593) .lineTo(0.1422, 0.4433) .lineTo(0.1366, 0.6775) .lineTo(0.3541, 0.5966) .lineTo(0.5743, 0.6775) .lineTo(0.5687, 0.4433) .lineTo(0.7109, 0.2593) .lineTo(0.4879, 0.1924) .lineTo(0.3541, 0) .li...
Create a rectangular box base by starting with a new coordinate system aligned to the default axes. Draw a two-dimensional rectangle on the first face, forming a closed loop with four straight lines. Scale this rectangle to 75% of its original size. Then, extrude the scaled rectangle along the normal direction to creat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.75) .lineTo(0, 0.75) .close() .extrude(0.3438) ) result = part_1 cq.exporters.export(result, "./stlcq/0059/00594610.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a rectangular shape on a plane, then scale this rectangle to reduce its size. Rotate and translate the scaled rectangle to position it correctly in three-dimensional space. Extrude this shape along its normal to create a thin recta...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0941) .lineTo(0, 0.0941) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90) result = part_1 cq.exporters.export(result, "./stlcq/0045/00459105.stl")
The design consists of four parts that form an L-shaped CAD model. The first part is a rectangular block with dimensions of seven hundred fifty millimeters in length, one hundred eighty-seven and a half millimeters in width, and three hundred seventy-five millimeters in height. This block serves as the base of the mode...
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.6559, 0.1882) .lineTo(0.0941, 0.1882) .lineTo(0, 0.1882) .close() .extrude(0.375) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.375, ...
Start by creating a new coordinate system aligned with the default axes. Draw a two-dimensional sketch on the first face, forming a complex shape with a series of connected lines. This shape includes a larger rectangle with a smaller, offset rectangle inside it. Once the sketch is complete, scale it down to fit the des...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3324) .lineTo(0, 0.3324) .lineTo(0, 0.2794) .lineTo(0.6971, 0.2794) .lineTo(0.6971, 0.0529) .lineTo(0, 0.0529) .close() .extrude(0.6953) ) result = part_1 cq.ex...
The design consists of two main parts: a hexagonal prism and a cylindrical top. The hexagonal prism has a base that is a scaled-down hexagon, with a length of 0.75 units, a width of 0.6495 units, and a height of 0.2537 units. This prism forms the main body of the structure. The cylindrical top is positioned on top of t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3235) .lineTo(0.1882, 0) .lineTo(0.5618, 0) .lineTo(0.75, 0.3235) .lineTo(0.5618, 0.65) .lineTo(0.1882, 0.65) .close() .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.3035...
The design involves creating a cylinder with a central hole. Four faces are defined, each containing two concentric circles. The outer circles have varying radii, while the inner circles have a consistent radius. These faces are then scaled down and transformed into a 3D model. The final part is a solid cylinder with a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0735, 0.2706) .circle(0.0735) .moveTo(0.0735, 0.2706) .circle(0.0559) .extrude(0.0391) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0735, 0.4794) .circle(0.0735) .moveTo(0.0735, 0.4794) .cir...
Start by creating a new coordinate system with specific angles and translations to set the orientation and position. Draw the first two-dimensional sketch on the first face, which consists of four loops. The first loop forms a complex curved shape with ten segments, including arcs and lines. The second loop is a simple...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0676, 0.2706) .threePointArc((0.1265, 0.2118), (0.1471, 0.1324)) .threePointArc((0.1824, 0.0382), (0.2765, 0)) .lineTo(0.4735, 0) .threePointArc((0.5676, 0.0382), (0.6029, 0.1324)) .threePointArc((0.6235, 0.2118), (...
Start by creating a new coordinate system with specific Euler angles and a translation vector to position the model correctly. Draw a two-dimensional sketch that consists of four faces, each forming a rectangle. The first face connects points at the bottom left, top left, top right, and bottom right. The second face co...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3412) .lineTo(0.0676, 0.3412) .lineTo(0.0676, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0703) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0676, 0) .lineTo(0.2735, 0) .lineTo(0.2735, 0.3...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular shape with a flat surface on one side and a rounded edge on the opposite side. The rectangle has a length of 0.75 units, a width of 0.075 units, and a height of 0.0078125 units. Transform this shape into th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0382) .lineTo(0.75, 0.0765) .lineTo(0, 0.0765) .close() .extrude(0.0078) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) result = part_1 cq.e...
Create a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, forming a closed loop with four straight lines. Scale this rectangle to a smaller size while maintaining its proportions. Transform the scaled rectangle into a three-dimensional object by extruding it along...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.375) ) result = part_1 cq.exporters.export(result, "./stlcq/0023/00236010.stl")
The design involves creating a hexagonal prism and a central hole. The hexagonal prism has a length of 0.11319153543307087 units, a width of 0.12989616141732283 units, and a height of 0.75 units. The central hole, located near the center of the hexagonal prism, has a diameter of 0.0705 units and extends through the ent...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.099) .lineTo(0.0005, 0.0328) .lineTo(0.0583, 0) .lineTo(0.1156, 0.0339) .lineTo(0.1151, 0.1) .lineTo(0.0573, 0.1328) .close() .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(...
The rectangular plate is created by starting with a simple rectangular shape. This shape is then scaled down to fit the desired dimensions. The scaled shape is transformed into a three-dimensional object and extruded to create the final solid body. The rectangular plate has a flat surface with rounded corners. It measu...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0074/00744291.stl")
The design consists of five cylindrical tiers stacked on top of each other. The first tier has a height of 0.15 units and a square base of 0.5 units by 0.5 units. The second tier, positioned slightly above and inward from the first, has a height of 0.15 units and a square base of 0.4 units by 0.4 units. The third tier,...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.251, 0.251) .circle(0.249) .extrude(0.1484) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2, 0.2) .circle(0.1984) .extrude(0.1484) ) part_2 = part_2.translate((0.046875, 0.046875, 0.148438)) # Part ...
The ring assembly consists of five faces that form the outline of three interlocking rings. The first face includes two concentric circles, creating a ring shape. The second face is a complex shape formed by lines and arcs, resembling a curved segment of a ring. The third face is similar to the first, with two concentr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1206, 0.2441) .circle(0.1206) .moveTo(0.1206, 0.2441) .circle(0.0912) .extrude(0.0391) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1206, 0.1265) .lineTo(0.2706, 0.1265) .threePointArc((0.2735, ...
The design consists of two main components: a cylindrical object and a cylindrical rod with a rounded tip. The cylindrical object has a flat top and bottom, a smooth surface, and a uniform diameter throughout its length. It measures 0.0694 units in length and width, and 0.75 units in height. The cylindrical rod, on the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.035294, 0.035018) .circle(0.035294) .extrude(0.75) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.015686, 0.015564) .circle(0.015686) .extrude(0.710938) ) part_2 = part_2.translate((0.023438, 0.023438,...
The design involves creating a rectangular prism with a slightly curved top surface. Begin by establishing a new coordinate system with specific rotations and translations. Next, draw a complex two-dimensional shape that forms the base of the prism. This shape includes several straight lines that create a unique profil...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1265, 0) .lineTo(0.1265, 0.0618) .lineTo(0.5, 0.0618) .lineTo(0.5, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0.3118, 0.5) .lineTo(0, 0.5) .close() .extrude(0.375) ) part_1 =...
The design involves creating a cylindrical object with a central hole. A new coordinate system is established with specific angles and translations. A circular shape with a smaller concentric circle is drawn, then scaled down and transformed into a three-dimensional form. The final step is to extrude this shape to crea...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.0912) .extrude(0.5625) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "./stlcq/...
The design consists of five parts, each forming a distinct shape. The first part is a rectangular plate with two circular holes on opposite sides, measuring approximately 0.24 units in length, 0.055 units in width, and 0.0185 units in height. The second part is a solid, gray cylinder with rounded edges, measuring about...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.027543, 0) .lineTo(0.214645, 0) .threePointArc((0.242188, 0.027543), (0.214645, 0.056036)) .lineTo(0.027543, 0.056036) .threePointArc((0, 0.027543), (0.027543, 0)) .close() .moveTo(0.214645, 0.027543) .circl...
The octagonal base is a solid object with a flat top and rounded edges. It starts as an octagonal sketch on a plane, which is then scaled down to 75% of its original size. This scaled sketch is transformed into three-dimensional space and extruded 0.1875 units to create the final solid body. The base has a length and w...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3765) .lineTo(0.1088, 0.1088) .lineTo(0.3765, 0) .lineTo(0.6412, 0.1088) .lineTo(0.75, 0.3765) .lineTo(0.6412, 0.6412) .lineTo(0.3765, 0.75) .lineTo(0.1088, 0.6412) .close() .extrude(0.1875) ) re...
The first part involves creating a square box with a rectangular slit. The box has a length and width of 0.75 units and a height of 0.225 units. The second part involves constructing a rectangular block that is positioned above the first part. This block has a length of 0.6587 units, a width of 0.0463 units, and a heig...
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.0382, 0.0382) .lineTo(0.7118, 0.0382) .lineTo(0.7118, 0.7118) .lineTo(0.0382, 0.7118) .close() .extrude(0.2266) ) part...
The first part of the design involves creating a rounded cylindrical base. Start by defining a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular shape on a single face, scale it appropriately, and transform it into a three-dimensional object. This transformation includes r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0314, 0.0314) .circle(0.0311) .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/0070/00700304.stl")
The design involves creating a square plate with a central rectangular cutout and four holes at the corners. The first step is to define a rectangular outline for the plate. Inside this rectangle, there are five smaller shapes: four small circles at the corners and one larger circle in the center. The second face inclu...
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.2676) .moveTo(0.0706, 0.0706) .circle(0.0147) .moveTo(0.0706, 0.6794) .circle(0.0147) .mov...
Start by creating a rectangular block with rounded edges and corners. The block has a length of about 0.75 units, a width of about 0.6266 units, and a height of 0.0603 units. Next, construct a smaller cross-shaped object that sits on top of the rectangular block. The cross has a length and width of about 0.3617 units a...
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, 0.6265) .close() .extrude(0.0625) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0.1198) .lineTo(0.1198, 0.1198) .lineTo(0.1198, 0) ...