input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
The design consists of three main parts: a circular plate, a cylindrical cup, and a ring. The circular plate is a flat, circular shape with a central hole and a uniform thickness. It measures 0.75 units in length and width, and 0.028125 units in height. The cylindrical cup has a rounded bottom and a smooth, uniform sur...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2294) .extrude(0.0312) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.2294) .moveTo(0.3765, 0.3765) .cir...
The first part involves creating a cylindrical object with a central circular hole. This object has a length and width of approximately 0.75 units and a height of 0.1875 units. The second part involves constructing a ring-shaped object with a central hole. This ring has a length and width of about 0.547 units and a hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1853) .extrude(0.1875) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2745, 0.2745) .circle(0.2724) .moveTo(0.2745, 0.2745) ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, forming an L-shaped profile with eight lines. After completing the sketch, apply a scale factor to adjust its size. Transform the 2D sketch into a 3D model by rotating and translating it ac...
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.5, 0.5) .lineTo(0.5, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.5) .lineTo(0, 0.5) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a square on the first face, and within this square, draw four smaller circles near the corners. Scale the entire sketch to adjust the size appropriately. Transform the scaled sketch into three dimensions using the define...
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.6441, 0.6441) .circle(0.0559) .moveTo(0.1059, 0.6441) .circle(0.0559) .moveTo(0.6441, 0.1059) .circle(0.0559) .mov...
The design consists of three parts that form a complex assembly. The first part is a curved, L-shaped structure with a length of zero point six five nine six units, a width of zero point three eight nine four units, and a height of zero point one two three eight units. This part is created by extruding a 2D sketch alon...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.123529, 0) .lineTo(0.123529, 0.146691) .threePointArc((0.126103, 0.154412), (0.128676, 0.159559)) .lineTo(0.241912, 0.275368) .threePointArc((0.247059, 0.280515), (0.252206, 0.277941)) .lineTo(0.44...
The design involves constructing two parts: a cube and a rectangular block. The cube has a length, width, and height of 0.75 units. It is created by defining a new coordinate system, drawing a square sketch, transforming it into three dimensions, and extruding it to form a solid body. The rectangular block has a length...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY") .move...
The first part involves creating a rectangular plate with rounded corners. The plate measures 0.75 units in length, 0.5 units in width, and 0.01 units in height. The second part is a similar rectangular object with rounded corners, also measuring 0.75 units in length, 0.5 units in width, and 0.01 units in height. Both ...
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() .moveTo(0.0206, 0.0206) .lineTo(0.7294, 0.0206) .lineTo(0.7294, 0.4794) .lineTo(0.0206, 0.4794) .close() .extrude(0.0078) ) part_1...
The rectangular prism base is constructed by first creating a new coordinate system aligned with the default axes. A two-dimensional sketch is then drawn on the first face, forming a rectangle with a length of 0.1875 units and a width of 0.75 units. This sketch is scaled down by 75% before being transformed into a thre...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.1882, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2812) ) result = part_1 cq.exporters.export(result, "./stlcq/0081/00814514.stl")
The design involves creating a cylindrical object with a smooth surface and rounded edges. Start by setting up a new coordinate system with specific angles and translations. Draw a circle on a face and scale it down. Transform the scaled sketch into 3D space by rotating and translating it. Extrude the sketch to form a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0627, 0.0627) .circle(0.0623) .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/0038/00382513.stl")
The design consists of four parts. The first part is a cube with rounded edges and corners, measuring approximately 0.1835 units in length and width, and 0.0612 units in height. This cube is positioned at coordinates [0.2493, 0.4714, 0.0]. The second part is a rectangular box with rounded edges, slightly behind the fir...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1797, 0) .lineTo(0.1797, 0.1797) .lineTo(0, 0.1797) .close() .extrude(0.0625) ) part_1 = part_1.translate((0.25, 0.46875, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .li...
The design consists of three main parts. The first part is a rectangular plate with a length of 0.7202, a width of 0.3477, and a height of 0.0099. This plate is positioned slightly offset from the origin. The second part is a support bracket with a length of 0.298, a width of 0.0099, and a height of 0.0149. This bracke...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7188, 0) .lineTo(0.7188, 0.3467) .lineTo(0, 0.3467) .close() .extrude(0.0078) ) part_1 = part_1.translate((0.015625, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .line...
Start by creating a new coordinate system with specific angles and a translation vector. On the first face, draw two squares: a larger outer square and a smaller inner square. Scale the entire 2D sketch to reduce its size. Transform the scaled sketch into a 3D model by applying a rotation and translation. Extrude the 2...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5618) .lineTo(0, 0.5618) .close() .moveTo(0.0382, 0.0382) .lineTo(0.7118, 0.0382) .lineTo(0.7118, 0.5265) .lineTo(0.0382, 0.5265) .close() .extrude(0.0469) ) ...
Start by creating a new coordinate system aligned with the default axes. Draw a square on the first face, and within this square, place four small circles near each corner. Scale the entire sketch to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by extruding 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.75) .lineTo(0, 0.75) .close() .moveTo(0.0118, 0.0118) .circle(0.0059) .moveTo(0.0118, 0.7382) .circle(0.0059) .moveTo(0.7382, 0.0118) .circle(0.0059) .mov...
Start by creating a new coordinate system with specific rotations and translations. Draw a circular sketch on a new face, then scale and transform this sketch into a three-dimensional object. Extrude the sketch to form a solid body. The final shape is a cylinder with a height of approximately 0.1913, a width of about 0...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.1875, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0050/00509629.stl")
The part consists of a rectangular plate with two circular holes. The plate has a length of zero point seven five units, a width of zero point zero seven five units, and a height of zero point zero one eight seven five units. The two holes are positioned symmetrically along the length of the plate, each with a diameter...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0765) .lineTo(0, 0.0765) .close() .moveTo(0.1588, 0.0382) .circle(0.0088) .moveTo(0.5912, 0.0382) .circle(0.0088) .extrude(0.0156) ) part_1 = part_1.rotate((0, 0,...
The design consists of three main parts: a cylindrical base, a vertical rod, and a rectangular top. The cylindrical base has a height of 0.25 units and a diameter of 0.25 units. The vertical rod extends from the base, with a height of 0.25 units and a diameter of 0.0625 units. The rectangular top sits above the rod, me...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.1245) .moveTo(0.1255, 0.1255) .circle(0.0304) .extrude(0.25) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1255, 0.1255) .circle(0.0304) .extrude(0.25) ) part_1 = part_1.t...
The design consists of two cylindrical parts that are assembled to form a single structure. The first part is a larger cylinder with a flat circular top and bottom. The top surface is slightly recessed compared to the bottom. This cylinder has a length and width of 0.75 units and a height of approximately 0.0432 units....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.0469) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0431, 0.0431) .circle(0.0428) .extrude(0.1406) ) part_2 = part_2.translate((0.328125, 0.328125, 0.046875))...
Create a rectangular prism base with a specific orientation and dimensions. The base has a length of zero point three one seven five meters, a width of zero point seven five meters, and a height of zero point zero one three two meters. The base is oriented in a particular way using a coordinate system with specific Eul...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3176, 0) .lineTo(0.3176, 0.75) .lineTo(0.2176, 0.75) .lineTo(0.1912, 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, ...
The design consists of two main parts: a cylindrical base and a curved semi-circular top. The cylindrical base has a square cross-section and stands 0.2387 units tall, with each side measuring approximately 0.4204 units. The curved semi-circular top is positioned above the cylindrical base and extends outward, with a l...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2118, 0.2118) .circle(0.2101) .extrude(0.2344) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.125, 0.0625, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0)...
Start by creating a cylindrical object with rounded edges. Begin with a new coordinate system that is rotated and translated to position the object correctly. Draw a two-dimensional sketch on a face, consisting of two loops. The first loop forms an outer boundary with lines and arcs, while the second loop creates an in...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1206) .threePointArc((0.1147, 0), (0.2324, 0.1176)) .lineTo(0.2324, 0.6324) .threePointArc((0.1176, 0.75), (0, 0.6324)) .close() .moveTo(0.0118, 0.1176) .threePointArc((0.1176, 0.0118), (0.2206, 0.1176)) ...
Start by creating a rectangular base in a new coordinate system. The base has a length of 0.75 units and a width of 0.3571 units. This base is then transformed into a 3D object by extruding it along the vertical axis by 0.5357 units. The result is a rectangular prism with the specified dimensions. The transformation an...
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.5391) ) result = part_1 cq.exporters.export(result, "./stlcq/0087/00877595.stl")
Create a rectangular block with rounded edges. Start by defining a new coordinate system aligned with the global axes. Draw a two-dimensional sketch on the first face, forming a loop with four arcs and four lines. The arcs and lines create a rounded rectangle. Scale the sketch to 75% of its original size and transform ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0353) .threePointArc((0.0088, 0.0088), (0.0353, 0)) .lineTo(0.4559, 0) .threePointArc((0.4824, 0.0088), (0.4912, 0.0353)) .lineTo(0.4912, 0.7147) .threePointArc((0.4824, 0.7412), (0.4559, 0.75)) .lineTo(0.035...
Begin by setting up a new coordinate system aligned with the default axes. Draw a rectangular shape on the first face, forming a closed loop with four straight lines. Scale this rectangle to reduce its size. Transform the scaled rectangle into a three-dimensional object by extruding it along the normal direction to cre...
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.3906) ) result = part_1 cq.exporters.export(result, "./stlcq/0017/00171578.stl")
Start by creating a new coordinate system aligned with the default axes. Sketch a circular shape with a central hole on the first face. The outer circle represents the outer boundary of the washer, while the inner circle defines the central hole. After completing the sketch, scale it down to fit the desired size. Extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1706) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0074/00749898.stl")
To create the cylindrical object, start by setting up a new coordinate system with the origin positioned at a specific height. Draw a circular sketch on the first face, then scale the sketch to the desired size. Transform the scaled sketch into three-dimensional space and extrude it in both directions to form a cylinde...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0863, 0.0863) .circle(0.0856) .extrude(0.375) ) part_1 = part_1.translate((0, 0, 0.1875)) result = part_1 cq.exporters.export(result, "./stlcq/0087/00872729.stl")
The roof truss consists of four main faces that form a triangular top and a horizontal bottom. The first face is a complex shape with a straight base, an arc, and several vertical and horizontal lines. The second face connects the base to a higher point, forming a triangular section. The third face is a smaller, rectan...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0029) .lineTo(0.3706, 0.0029) .threePointArc((0.3765, 0), (0.3794, 0.0029)) .lineTo(0.75, 0.0029) .lineTo(0.75, 0.0176) .lineTo(0.7118, 0.0176) .lineTo(0.3824, 0.0176) .lineTo(0.3765, 0.0176) .lineTo(...
The rounded cylindrical base starts with creating a new coordinate system and drawing a single circular face. This circle is then scaled down and transformed to fit the desired orientation and position. The scaled circle is extruded to create a three-dimensional shape with a depth of 0.0363 units. The final dimensions ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .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, "./stlcq/0037/00375128.stl")
Create a cube with a circular hole in the middle. Start by defining a new coordinate system and drawing a rectangular face with a circular cutout. The rectangular face forms the outer boundary of the cube, while the circular cutout defines the hole. After drawing the initial sketch, scale it down to fit the desired dim...
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() .moveTo(0.3765, 0.3324) .circle(0.1676) .extrude(0.3359) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.335938, 0)) ...
The design consists of two main parts. The first part is a wedge-shaped block with a rectangular base and a triangular top. This part measures 0.7371 units in length, 0.4652 units in width, and 0.2764 units in height. The second part is a rectangular protrusion with a square base, which is attached to the first part. T...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0058) .lineTo(0, 0.4637) .lineTo(0.2765, 0.4637) .lineTo(0.7344, 0) .lineTo(0.3686, 0.0058) .close() .extrude(0.2734) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.273438, 0)) # Part 2: ...
The design consists of three parts that are assembled to form a complex structure. The first part is a thin rectangular plate with a length of 0.75 units, a width of approximately 0.47 units, and a height of 0.02 units. This plate forms the base of the structure. The second part is a narrow rectangular prism with a len...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4735) .lineTo(0, 0.4735) .close() .extrude(0.0234) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0088) .lineT...
The design involves creating a square ring with a circular hole in the center. Start by defining a new coordinate system with no rotation or translation. The first step is to draw a complex two-dimensional sketch that forms the outer boundary of the ring. This is followed by drawing a second two-dimensional sketch that...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1765) .lineTo(0.1, 0) .lineTo(0.3, 0) .lineTo(0.3, 0.1353) .threePointArc((0.1, 0.3382), (0.3, 0.5382)) .lineTo(0.3, 0.75) .lineTo(0, 0.75) .lineTo(0, 0.35) .close() .extrude(0.0469) ) part_1 = pa...
The design consists of three parts. The first part is a rectangular prism with rounded edges and a circular cutout. It has a length of approximately 0.3775, a width of 0.75, and a height of 0.0105. The second part is a small cylinder positioned near the top of the first part. It has a length and width of about 0.0455 a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.052941) .threePointArc((0.014706, 0.014706), (0.052941, 0)) .lineTo(0.323529, 0) .threePointArc((0.361765, 0.014706), (0.376471, 0.052941)) .lineTo(0.376471, 0.697059) .threePointArc((0.361765, 0.735294), (0.3235...
Start by creating a new coordinate system and drawing a circular shape on the first face. This circular shape consists of two concentric circles, one larger and one smaller. Scale the entire shape to fit the desired size and transform it into three-dimensional space. Extrude the shape to create a solid cylindrical obje...
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.0828) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0048/00488479.stl")
The design consists of two main parts: a primary cylinder and a vertical extension. The primary cylinder has a height of 0.75 units, a length of 0.125 units, and a width of 0.125 units. It is positioned with its base at a specific location defined by a coordinate system. The vertical extension, which protrudes from the...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.062745, 0.062745) .circle(0.062255) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.031127, 0.031373) .circle(0.03112...
The design involves creating a cylindrical object with a rectangular section at one end. The process starts by setting up a new coordinate system and drawing a two-dimensional rectangle. This rectangle is then scaled, rotated, and translated to position it correctly. The rectangle is extruded in both directions to form...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0157, 0) .lineTo(0.0157, 0.0312) .lineTo(0, 0.0312) .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 design involves creating a ring-shaped object with a flat, circular base. Start by setting up a new coordinate system with default angles and positions. Draw a two-dimensional sketch featuring two concentric circles. The outer circle forms the outer boundary of the ring, while the inner circle defines the central h...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.2324) .extrude(0.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0000/00003801.stl")
Start by creating a new coordinate system aligned with the default axes. Draw a circle on the first face, then scale the circle to reduce its size. Transform the scaled circle into a three-dimensional object by extruding it along the normal direction to form a rounded cylindrical shape. The final dimensions of the obje...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3307, 0.3333) .circle(0.3307) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0011/00119803.stl")
Start by creating a new coordinate system with no rotation or translation. On the first face, draw a square sketch. The square has sides of equal length, forming a closed loop. After drawing the square, scale it down to fit the desired size. Transform the scaled sketch into a three-dimensional object by extruding it al...
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.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0030/00304770.stl")
Start by creating a rectangular plate with a length of 0.75, a width of 0.45, and a height of 0.03. This plate is created by extruding a two-dimensional sketch of a rectangle in three-dimensional space. Next, add four circular holes to the plate. These holes are evenly spaced along the length of the plate and have a di...
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.0312) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.089, 0.2723) .circle(0.0917) .extrude(0.0234) ) part_2 = p...
The design involves creating a hollow cylindrical object. Start by defining a new coordinate system that rotates the third axis by negative ninety degrees and translates 0.75 units along the third axis. Sketch two concentric circles on a face, then scale the sketch to reduce its size. After scaling, rotate and translat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1882, 0.1882) .circle(0.1868) .moveTo(0.1882, 0.1882) .circle(0.0559) .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/0017...
Construct a rounded cube by starting with a new coordinate system that has Euler angles of 0.0, 0.0, and -90.0 degrees, and a translation vector of 0.0, 0.0, and 0.0. Draw a square face on the plane defined by this coordinate system. Scale this face and transform it into a three-dimensional object by rotating and trans...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/006...
Start by creating a new coordinate system with no rotation and a slight translation. Draw a two-dimensional rectangle on the first face, ensuring it forms a perfect square. Scale the sketch to fit the desired size. Transform this sketch into three dimensions by applying the same translation used earlier. Extrude the sk...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0703, 0) .lineTo(0.0703, 0.0703) .lineTo(0, 0.0703) .close() .extrude(0.7188) ) part_1 = part_1.translate((0.023438, 0.023438, 0.03125)) result = part_1 cq.exporters.export(result, "./stlcq/0097/0097...
Start by creating a rectangular bar with a length of 0.75 units, a width of 0.06 units, and a height of 0.03 units. This forms the base of the model. Next, add two cylindrical holes to the bar. The first hole is positioned near one end of the bar, while the second hole is positioned near the opposite end. Each hole has...
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.0312) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.0245, 0.0245) .circle(0.0245) .extrude(0.1484) ) part_...
Start by creating a new coordinate system aligned with the default axes. Draw a rectangular shape on the first face, ensuring that the corners are well-defined. Scale this rectangle to fit the desired dimensions. Transform the scaled rectangle into a three-dimensional object by aligning it with the original coordinate ...
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.0625) ) result = part_1 cq.exporters.export(result, "./stlcq/0004/00041098.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Next, draw a rectangular sketch on the first face, forming a closed loop with four straight lines. Scale the sketch to reduce its size, then transform it into a three-dimensional object by applying a rotation and translation....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2794) .lineTo(0, 0.2794) .close() .extrude(0.3359) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.335938, 0)) result = part_1 cq.exporters.export(result, "....
The design consists of a rectangular prism with rounded edges, a flat top and bottom, and a uniform thickness throughout its length. The first part has a length of 0.07681451612903226, a width of 0.07681451612903226, and a height of 0.75. A small circular hole is then created within this rectangular prism. The hole has...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.078125, 0) .lineTo(0.078125, 0.078125) .lineTo(0, 0.078125) .close() .moveTo(0.003676, 0.003676) .lineTo(0.074449, 0.003676) .lineTo(0.074449, 0.074449) .lineTo(0.003676, 0.074449) .clo...
The first part involves creating a rectangular plate with a crossbar. The plate has a length of 0.45 units, a width of 0.75 units, and a height of 0.045 units. The crossbar extends from one side of the plate to the other, adding structural support. The second part is a multi-piece assembly with a stepped structure. It ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.1235) .lineTo(0.0912, 0.2147) .lineTo(0.0912, 0.2647) .lineTo(0, 0.1765) .close() .extrude(0.0469) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0912, 0) .lineTo(0.0912, 0.2147) .lineTo(0....
The design involves creating a cylinder with slightly rounded top and bottom surfaces. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular face and apply a scale factor to adjust its size. Transform this face into a 3D object by applying the defined rot...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4141) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.414062, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0067/00677153.stl")
The first part involves creating a rectangular plate with rounded edges. The plate has a length of approximately 0.51 meters, a width of 0.75 meters, and a height of 0.026 meters. The second part is a square plate with rounded edges, positioned slightly above and to the side of the first part. This square plate has a l...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0118) .threePointArc((0.0029, 0.0029), (0.0118, 0)) .lineTo(0.4971, 0) .threePointArc((0.5059, 0.0029), (0.5088, 0.0118)) .lineTo(0.5088, 0.7382) .threePointArc((0.5059, 0.7471), (0.4971, 0.75)) .lineTo(0.011...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular loop. Scale the rectangle by a factor of seventy-five percent. Transform the scaled rectangle into three-dimensional space using the same Euler angles and translation vector. 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.5441) .lineTo(0, 0.5441) .close() .extrude(0.1172) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.117188, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system with no rotation or translation. On the first face, draw a rectangle. Scale the rectangle to reduce its size. Transform the scaled rectangle into a three-dimensional block by extruding it along the normal direction. The block has a length, width, and height of approximately 0.7...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2324) .lineTo(0, 0.2324) .close() .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0079/00795911.stl")
Start by creating a new coordinate system with specific rotations and translations. Draw a circular loop on a new face, then scale this sketch to fit the desired size. Transform the scaled sketch into three dimensions by rotating and translating it accordingly. Finally, extrude the transformed sketch to create a solid ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1137, 0.1137) .circle(0.1128) .extrude(0.5234) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.265625, 0.523438, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0089/00890901.stl")
The design consists of two main parts. The first part is a rectangular base with a vertical extension. This part has a length of approximately 0.3 units, a width of about 0.45 units, and a height of around 0.28 units. The second part is a larger rectangular block with a vertical extension. This part has a length of abo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.415809) .lineTo(0.243444, 0.415809) .lineTo(0.243444, 0) .lineTo(0.296752, 0) .lineTo(0.296752, 0.453125) .lineTo(0, 0.453125) .close() .extrude(0.28125) ) part_1 = part_1.translate((0.453125, 0, 0.070312...
The first part is a cylindrical object with a flat base, measuring approximately 0.059 units in length and width and 0.717 units in height. The second part is a cylindrical object with flat circular top and bottom, measuring around 0.085 units in length and width and 0.033 units in height. The third part is a cylindric...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.031373, 0.031373) .circle(0.031127) .extrude(0.71875) ) part_1 = part_1.translate((0.015625, 0.015625, 0.03125)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.043137, 0.043137) .circle(0.0428) .moveTo(...
Create a new coordinate system with specific angles and a translation vector to position the part correctly. Draw a two-dimensional rectangle on the first face and scale it down to fit the desired dimensions. Transform this scaled rectangle into a three-dimensional shape by applying the predefined rotation and translat...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0703) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.070312, 0)) result = part_1 cq.exporters.export(result, "./stl...
Start by creating a new coordinate system with specific rotations and translations. Sketch a rectangle on the first face, forming a closed loop with four lines. Scale the sketch to fit the desired size. Rotate and translate the sketch to align it with the coordinate system. Extrude the sketch to form a solid rectangula...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4531, 0) .lineTo(0.4531, 0.2275) .lineTo(0, 0.2275) .close() .extrude(0.2969) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).rotate((0, 0, 0), (0, 0, 1), 90).translate((0.039062, 0.148438, 0.296875...
Start by creating a rectangular block with a slightly rounded top and bottom. The block has a uniform thickness throughout its length and width. The length of the block is 0.75 units, the width is 0.375 units, and the height is 0.225 units. This block is formed by extruding a two-dimensional sketch into a three-dimensi...
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.2266) ) result = part_1 cq.exporters.export(result, "./stlcq/0031/00317011.stl")
The flat washer is designed with a central hole. The main body of the washer is a circular disc with a smaller concentric circular hole in the middle. The overall shape is symmetrical and flat. The washer has a thickness of 0.0536 units and measures 0.75 units in both length and width. The central hole reduces the mate...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.1706) .extrude(0.0547) ) result = part_1 cq.exporters.export(result, "./stlcq/0062/00628477.stl")
Create a rectangular block with a flat top and bottom, and straight, parallel sides. The block's dimensions are designed to fit specific requirements, with a length of 0.25 units, a width of 0.75 units, and a height of 0.1 units. The process involves drawing a two-dimensional sketch of the block's base, scaling it down...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.75) .lineTo(0, 0.75) .close() .extrude(0.1016) ) result = part_1 cq.exporters.export(result, "./stlcq/0088/00881923.stl")
The design involves creating a vertical rod with a cylindrical top and a rectangular base. The rod starts with a complex two-dimensional sketch that includes three loops. The first loop forms the main body of the rod, while the second and third loops add circular features on either side. After the sketch is completed, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0588, 0) .lineTo(0.0706, 0.0059) .lineTo(0.6794, 0.0059) .lineTo(0.6912, 0) .threePointArc((0.75, 0.0206), (0.6912, 0.0441)) .lineTo(0.6794, 0.0382) .lineTo(0.0706, 0.0382) .lineTo(0.0588, 0.0441) .three...
Create a rectangular section with a hole. Start by setting up a new coordinate system with specific rotations and translations. Draw the first face with a rectangular outline and a circular cutout. The rectangle has rounded corners and a smaller circle in one corner. Scale the entire sketch to fit the desired size. Tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3) .lineTo(0.3029, 0.0029) .lineTo(0.75, 0) .lineTo(0.75, 0.3) .lineTo(0.3, 0.3) .lineTo(0.3, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.6, 0.1294) .circle(0.0765) .extrude(0.1484) ) part_1 = p...
The first part consists of a rectangular base with a triangular top. The base has a length of approximately 0.75 units, a width of approximately 0.375 units, and a height of 0.5 units. The second part features a cylindrical base with a rectangular top. This part has a length of approximately 0.75 units, a width of appr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1882, 0) .lineTo(0.1882, 0.1265) .lineTo(0.5618, 0.1265) .lineTo(0.5618, 0) .lineTo(0.75, 0) .lineTo(0.3765, 0.3765) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90...
The design starts by creating a rectangular base with rounded corners. The base is defined by a series of lines forming a closed loop. After defining the initial shape, the base is scaled down to seventy-five percent of its original size. The scaled shape is then rotated and translated to align with the desired orienta...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.75) .lineTo(0.5853, 0) .lineTo(0.6324, 0) .lineTo(0.0471, 0.75) .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(resul...
The object consists of a rectangular base with a square top, featuring a vertical rectangular extension on one side and a horizontal rectangular extension on the other side. The object is symmetrical along the vertical axis. The base measures approximately three-quarters of a meter in length and width, while the height...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4824, 0) .lineTo(0.4824, 0.4971) .lineTo(0.7353, 0.4971) .lineTo(0.7353, 0.75) .lineTo(0.2529, 0.75) .lineTo(0.2529, 0.2294) .lineTo(0, 0.2294) .close() .extrude(0.3203) ) part_1 = part...
The first part involves creating a cube with rounded edges and corners. Start by defining a coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on the first face and scale it down. Transform this sketch into three dimensions and extrude it to form a solid body. The resulting...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3127, 0) .lineTo(0.3127, 0.3281) .lineTo(0, 0.3281) .close() .extrude(0.4141) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.148438, 0.414062, 0.132812)) # Part 2: join part_2 = ( ...
Design a long, thin rectangular object with rounded edges and flat top and bottom surfaces. The object is created by first drawing a simple rectangular sketch, scaling it down, and then extruding it to create a three-dimensional shape. The final dimensions of the object are approximately 0.75 units in length, 0.036 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0353) .lineTo(0, 0.0353) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0078/00788844.stl")
Create a cylindrical object by first setting up a new coordinate system with specific rotational and translational adjustments. Draw a circle on a new face, then scale and transform this circle to form the base of the cylinder. The final step involves extruding this base to create a solid cylindrical body. The resultin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .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/0036/00365030.stl")
The design consists of two main components: a rectangular plate and a cylindrical object. The rectangular plate has a flat surface with rounded corners, measuring approximately 0.75 units in length, 0.65 units in width, and 0.0055 units in height. The cylindrical object, which is positioned above and slightly offset fr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6471) .lineTo(0, 0.6471) .close() .extrude(0.0078) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.015, 0.015) .circle(0.015) .moveTo(0.015, 0.015) ...
Create a new coordinate system aligned with the global axes. Draw a rectangular shape on a new face, ensuring the proportions are maintained. Transform the sketch into 3D space and then extrude it to form a solid rectangular box. The box has a length of 0.21 units, a width of 0.54 units, and a height of 0.75 units. Thi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2093, 0) .lineTo(0.2093, 0.5391) .lineTo(0, 0.5391) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00920522.stl")
Start by creating a new coordinate system aligned with the default axes. On the first face, draw two concentric circles, one larger and one smaller, to define the boundary of the cylindrical object. Scale the sketch to fit the desired dimensions. Transform the sketch into a three-dimensional object by rotating and tran...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0941, 0.0941) .circle(0.0934) .moveTo(0.0941, 0.0941) .circle(0.0816) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0090/00905884.stl")
The design involves creating a rectangular box with a flat top and bottom and four vertical sides. The box has a slight curvature on its edges. The dimensions of the box are a length of 0.75 units, a width of 0.1875 units, and a height of 0.5625 units. The process begins by setting up a new coordinate system and drawin...
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_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5625, 0)) result = part_1 cq.exporters.export(result, "./s...
Create a cylindrical object with a smooth surface and rounded edges. Start by setting up a new coordinate system and drawing a circle in a two-dimensional sketch. Scale the sketch appropriately and transform it into a three-dimensional object by rotating and translating it. Extrude the sketch in both directions to form...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0078, 0.0078) .circle(0.0078) .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/0081/00817103.stl")
Start by creating a new coordinate system with default settings. Draw a two-dimensional sketch on the first face, consisting of an outer rectangle and an inner rectangle. The outer rectangle forms the boundary of the sketch, while the inner rectangle creates a square opening. After completing the sketch, scale it to th...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6797, 0) .lineTo(0.6797, 0.6797) .lineTo(0, 0.6797) .close() .moveTo(0.0693, 0.0693) .lineTo(0.6131, 0.0693) .lineTo(0.6131, 0.6131) .lineTo(0.0693, 0.6131) .close() .extrude(0.6797...
Start by creating a new coordinate system with no rotation or translation. Draw a square on a new face, then scale it down slightly. Transform this sketch into three dimensions and extrude it to create a cube with rounded edges and a flat top. The cube has a length of approximately 0.75 units, a width of approximately ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7) .lineTo(0, 0.7) .close() .extrude(0.3281) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0.1556, 0.1569) .circle(0.1556) .extrude(0.3281) ) part_2 = pa...
To create the cylindrical object, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a circle on a face, scale the sketch, and then transform it into three dimensions by rotating and translating it. Extrude the sketch to form a cylinder with a height of 0.75 units. The...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1412, 0.1412) .circle(0.1401) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0004/00045424.stl")
Start by creating a new coordinate system with no rotation and a slight translation along the x-axis. Draw a rectangular shape on the first face. This rectangle has a longer side and a shorter side, forming a typical rectangular outline. Scale this rectangle to fit the desired size. Transform the scaled rectangle into ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7422, 0) .lineTo(0.7422, 0.4715) .lineTo(0, 0.4715) .close() .extrude(0.1016) ) part_1 = part_1.translate((0.007812, 0, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0018/00188049.stl")
The design consists of three main parts that combine to form a rectangular box. The first part is a rectangular block with a length of 0.73, width of 0.35, and height of 0.075. This block forms the main body of the box. The second part is a rectangular bar with a length of 0.35, width of 0.0875, and height of 0.01. Thi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7266, 0) .lineTo(0.7266, 0.3476) .lineTo(0, 0.3476) .close() .extrude(0.0781) ) part_1 = part_1.translate((0.007812, 0.007812, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first face of the 2D sketch, which consists of two loops. The first loop forms a trapezoidal shape, and the second loop is a small circle within the trapezoid. Scale the entire 2D sketch to reduce its size. Transform...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0.3765, 0.6265) .lineTo(0, 0.6265) .close() .moveTo(0.25, 0.25) .circle(0.1088) .extrude(0.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).transl...
Start by setting up a new coordinate system with specific rotations and translations. Draw a rectangular shape on the first face. This rectangle will be transformed and scaled to fit the desired dimensions. The transformed shape is then rotated and translated according to the coordinate system settings. Finally, the sh...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0138, 0) .lineTo(0.0138, 0.0234) .lineTo(0, 0.0234) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./s...
Start by creating a new coordinate system and then draw a two-dimensional sketch of a pentagon. The pentagon forms the base of the model and will be transformed into a three-dimensional shape. After drawing the pentagon, scale it down to 75% of its original size. Next, transform the scaled pentagon into a three-dimensi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2647, 0) .lineTo(0.2647, 0.5265) .lineTo(0.1324, 0.75) .lineTo(0, 0.5265) .close() .extrude(0.25) ) result = part_1 cq.exporters.export(result, "./stlcq/0082/00823396.stl")
Start by creating a new coordinate system with default settings. Draw the first face using two loops. The outer loop forms a rectangle, while the inner loop creates a smaller rectangle inside the first one. After drawing the face, apply a scale factor to reduce its size. Next, extrude the face to create a solid rectang...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3941) .lineTo(0, 0.3941) .close() .moveTo(0.0176, 0.0176) .lineTo(0.7324, 0.0176) .lineTo(0.7324, 0.3765) .lineTo(0.0176, 0.3765) .close() .extrude(0.0781) ) ...
The design involves creating a cylindrical object with a height of 0.75 units and a square cross-section with sides measuring 0.199 units. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw a circular shape on a face, scale it appropriately, and transform it into...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.098, 0.098) .circle(0.0973) .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/0040/00403893.stl")
The design involves creating a ring-shaped structure with a rectangular top and a circular hole in the center. The first step is to define a new coordinate system. Then, draw the first face with a rectangular shape and rounded corners. The second face is larger and also has rounded corners, with a circular hole in the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0353, 0) .lineTo(0.0765, 0) .threePointArc((0.0412, 0.1912), (0.0765, 0.3853)) .lineTo(0.0353, 0.3853) .threePointArc((0, 0.1912), (0.0353, 0)) .close() .extrude(0.0391) ) part_1 = part_1.union( cq.Workplane...
Start by creating a new coordinate system with specific Euler angles and a translation vector. On the first face, draw a rectangular sketch. Scale this sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by rotating and translating it according to the coordinate system. Finally, 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.1875) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.1875, 0)) result = part_1 cq.exporters.export(result, "./s...
The first part involves creating a rectangular box by drawing a two-dimensional sketch of a rectangle, scaling it, and then extruding it to form a solid body. The final dimensions are a length of 0.5422, a width of 0.75, and a height of 0.2711. The second part involves creating another rectangular box by drawing a simi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5412, 0) .lineTo(0.5412, 0.75) .lineTo(0, 0.75) .close() .extrude(0.2734) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5078, 0) .lineTo(0.5078, 0.2509) .li...
The design involves creating a rounded cylindrical object. Start by setting up a new coordinate system with default angles and positions. On the first face, draw a circle, then scale it down to fit the desired size. Extrude this circle along the normal direction to form a solid cylinder. The final shape has a circular ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.050582, 0.05098) .circle(0.050582) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0094/00942316.stl")
Start by creating a cube with rounded edges and corners. The cube has a length of 0.5357 units, a width of 0.5357 units, and a height of 0.6429 units. Next, construct a smaller cube with a slightly tilted top. This smaller cube has a length of 0.3214 units, a width of 0.3214 units, and a height of 0.5357 units. The sma...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5391, 0) .lineTo(0.5391, 0.5391) .lineTo(0, 0.5391) .close() .extrude(0.6406) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3203, 0) .lineTo(0.3203, 0.3203) ...
The design consists of a rectangular base with a smaller extension. The base has a length of 0.5625 meters and a width of 0.75 meters. A smaller extension extends from one side of the base, creating a T-shaped structure. The height of the entire model is 0.0281 meters. The base and the extension are combined to form a ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2824) .lineTo(0, 0.75) .lineTo(0.5618, 0.75) .lineTo(0.5618, 0) .lineTo(0.2265, 0) .lineTo(0.2265, 0.2824) .close() .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0092/00925246....
The process begins by setting up a new coordinate system with specific rotations and translations. A two-dimensional sketch is then drawn on a face, forming a rectangle. This sketch is scaled and transformed into a three-dimensional shape. The final step involves extruding the sketch to create a solid rectangular block...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4297, 0) .lineTo(0.4297, 0.337) .lineTo(0, 0.337) .close() .extrude(0.7109) ) 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 L-shaped CAD model consists of a rectangular top and a curved bottom. The first face features a series of arcs and lines that form a complex curved shape, while the second face includes a combination of straight lines and arcs to create a rounded corner. These two faces are combined and transformed into a three-dim...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.5794) .threePointArc((0.0088, 0.5588), (0.0265, 0.5529)) .lineTo(0.3471, 0.5529) .threePointArc((0.3853, 0.5353), (0.4029, 0.4971)) .lineTo(0.4029, 0.1765) .threePointArc((0.4088, 0.1588), (0.4294, 0.15)) .li...
The design consists of two main parts. The first part is a vertical rod with a cylindrical section at the bottom and a rectangular section at the top. The rod has a height of zero point zero zero seven eight, a length of zero point seven five, and a width of zero point three seven five. The second part is a cylindrical...
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.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.007812, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY")...
The design consists of two main parts: a cylindrical base and a rounded cylindrical top. The cylindrical base has a length and width of approximately zero point zero six eight and a height of zero point seven five. It is created by drawing a circular sketch, scaling it, and then extruding it. The rounded cylindrical to...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.035294, 0.035018) .circle(0.035294) .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") .moveTo(0.015686, 0.015686) .circle...
The design consists of two parts. The first part is a cube with a rectangular cutout. It has a length of 0.25 units, a width of 0.5 units, and a height of 0.25 units. The second part is a rectangular block positioned next to the first part. It has a length of 0.75 units, a width of 0.25 units, and a height of 0.5 units...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.251, 0) .lineTo(0.251, 0.5) .lineTo(0, 0.5) .lineTo(0, 0.3745) .lineTo(0.1255, 0.3745) .lineTo(0.1255, 0.1255) .lineTo(0, 0.1255) .close() .extrude(0.25) ) part_1 = part_1.rotate((0, 0,...
The design involves constructing two parts: a rectangular block and a cube. The first part is a rectangular block with a length of 0.75 units, a width of 0.25 units, and a height of 0.25 units. This block is positioned at the origin. The second part is a cube with a length, width, and height of 0.25 units each. The cub...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.25) .lineTo(0, 0.25) .close() .extrude(0.25) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.25) .lineTo(0, 0.2...
The design involves creating a rectangular prism with a cylindrical hole in the center. Start by setting up a new coordinate system with specific angles and a translation vector. Draw a closed loop with six lines to form the outline of the rectangular face, and add a small circle in the center to define the cylindrical...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4147) .lineTo(0.0324, 0) .lineTo(0.1, 0) .lineTo(0.1324, 0.4176) .lineTo(0.1324, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0676, 0.5324) .circle(0.0206) .extrude(0.0391) ) part_1 = part_1.rotate((...
The design involves creating a rectangular prism with protruding sections. The first step is to establish a new coordinate system with specific Euler angles and translation vectors. A two-dimensional sketch is then drawn on the first face, forming a complex closed loop with multiple segments. This sketch is scaled down...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1882) .lineTo(0.4059, 0.1882) .lineTo(0.3765, 0.25) .lineTo(0.25, 0.25) .lineTo(0.25, 0.1882) .lineTo(0.3118, 0.1882) .lineTo(0.3118, 0.1265) .lineTo(0.0618, 0.12...
Start by creating a new coordinate system with specific angles and translations. Then, draw a rectangular sketch on the first face. After completing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional object by applying the specified rotations and translations. Final...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5471) .lineTo(0, 0.5471) .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, "./...
Start by creating a rectangular frame with a new coordinate system. Draw a two-dimensional sketch that consists of three nested rectangles. The outer rectangle forms the boundary, while the inner rectangles create cutouts within the frame. After drawing the sketch, scale it down by 75%. Transform the scaled sketch into...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6941, 0) .lineTo(0.6941, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0353, 0.3912) .lineTo(0.6647, 0.3912) .lineTo(0.6647, 0.7147) .lineTo(0.0353, 0.7147) .close() .moveTo(0.0353, 0.0...
Start by creating a new coordinate system with default settings. Draw a square on the XY plane, ensuring that the sides are parallel to the axes. Scale this square to reduce its size. Transform the scaled square into a 3D object by extruding it along the Z-axis to create a cube. The final cube will have a height, width...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7265) .lineTo(0, 0.7265) .close() .extrude(0.7266) ) result = part_1 cq.exporters.export(result, "./stlcq/0052/00528221.stl")
The design consists of two parts. The first part is a rectangular block with a circular hole. This block has a length of 0.75 units, a width of 0.375 units, and a height of 0.25 units. The second part is a smaller rectangular block with rounded edges. This block has a length of 0.3125 units, a width of 0.1562 units, an...
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.5, 0.1882) .circle(0.0559) .extrude(0.25) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0.1569) .lineT...