input
stringlengths
267
2.05k
output
stringlengths
209
3.36k
Start by creating a new coordinate system with the specified settings. Then, draw a circular sketch on the first face. Scale this sketch appropriately and transform it into three-dimensional space. Extrude the transformed sketch to create a solid cylindrical object. The final dimensions of this part are a length and wi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2588, 0.2588) .circle(0.2568) .extrude(0.2578) ) part_1 = part_1.translate((0.117188, 0.117188, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0071/00716773.stl")
To create the rectangular prism, start by defining a new coordinate system with no rotation or translation. Draw a two-dimensional rectangle on the first face, forming a closed loop with four lines. After completing the sketch, scale it down by a factor of 0.5 to reduce its size proportionally. Transform the scaled ske...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0078, 0) .lineTo(0.0078, 0.5) .lineTo(0, 0.5) .close() .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0030/00305274.stl")
The design involves creating a cylindrical object. First, establish a new coordinate system with specific Euler angles and a translation vector. Then, draw a circle within a new face and apply a scale factor to the sketch. Transform the scaled sketch into three dimensions using the coordinate system's rotation and tran...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0392, 0.0392) .circle(0.0389) .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0093/00933068.stl")
To construct the cylindrical base, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch consisting of two concentric circles, then scale the entire sketch down. Transform the scaled sketch into three dimensions and extrude it to create a solid bo...
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.2118) .extrude(0.0234) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.242188, 0)) result = part_1 cq.exporters.export(result, "./stlc...
The object is a 3D CAD model with a curved, open-ended shape. It features a smooth, continuous surface with a slight indentation on one side. The model is created by extruding a scaled 2D sketch along the normal direction. The final dimensions of the object are 0.75 units in length, 0.7421 units in width, and 0.0625 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3882) .threePointArc((0.7353, 0.4265), (0.7, 0.4471)) .lineTo(0.5324, 0.4853) .threePointArc((0.4794, 0.4735), (0.4588, 0.4265)) .lineTo(0.4588, 0.2794) .threePointArc((0...
The hexagonal column features a hexagonal shape with a circular opening at the top and a flat base. The column tapers slightly towards the top, giving it a subtle, elegant appearance. The overall dimensions of the column include a length of approximately 0.64 units, a width of about 0.64 units, and a height of 0.75 uni...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.2336) .lineTo(0.2362, 0.0025) .lineTo(0.5552, 0.0854) .lineTo(0.6406, 0.407) .lineTo(0.4045, 0.6406) .lineTo(0.0854, 0.5552) .close() .moveTo(0.3191, 0.3191) .circle(0.1708) .extrude(0.75) ) resu...
Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch of the first face, which consists of a series of connected lines forming a complex shape. Scale this 2D sketch to reduce its size. Transform the scaled 2D sketch into a 3D model by applying the previously d...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.35) .lineTo(0.1235, 0) .lineTo(0.6265, 0) .lineTo(0.75, 0.3265) .lineTo(0.5529, 0.5294) .lineTo(0.1706, 0.5265) .close() .extrude(0.3906) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0...
Create a rectangular prism with slightly rounded top and bottom edges. Start by defining a new coordinate system aligned with the default axes. Draw a two-dimensional rectangle on the first face, ensuring it has the correct proportions. Scale the rectangle to fit the desired size, then transform it into a three-dimensi...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.45, 0) .lineTo(0.45, 0.75) .lineTo(0, 0.75) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0016/00163787.stl")
The first part involves creating a cylindrical object with a rectangular section at the top. The part has a length and width of approximately 0.0631 units and a height of 0.7143 units. The second part involves constructing a rectangular prism with a triangular cutout on one of its faces. This part has a length and widt...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.018627) .lineTo(0.043873, 0.0625) .lineTo(0.043873, 0.053676) .lineTo(0.052696, 0.053676) .lineTo(0.0625, 0.043627) .lineTo(0.018873, 0) .lineTo(0.008824, 0.009804) .lineTo(0.008824, 0.018627) .close(...
The design consists of a primary cylindrical body and three smaller cylindrical protrusions on its top surface. The main cylinder has a height of 0.46875 units, a width and length of 0.5625 units. The three protrusions, each with a height of 0.75 units, are positioned on the top surface of the main cylinder. These prot...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .extrude(0.4688) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0529, 0.1373) .circle(0.0529) .extrude(0.75) ) part_2 = part_2.union( cq.Workplane("XY") .moveTo(0...
The first part involves constructing a cube with a circular hole. The cube has a length of 0.75 units, a width of 0.7279 units, and a height of 0.1765 units. A circular hole is centered within the cube, creating a hollow section. The second part involves constructing a rectangular prism with chamfered corners. The rect...
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() .moveTo(0.3765, 0.3647) .circle(0.0529) .extrude(0.1797) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineT...
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw the first two-dimensional sketch on the first face, consisting of two loops. The outer loop forms a square, while the inner loop creates a smaller square inside, leaving a hollow space. Scale the sketch to reduce its siz...
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() .moveTo(0.0186, 0.0186) .lineTo(0.2314, 0.0186) .lineTo(0.2314, 0.2314) .lineTo(0.0186, 0.2314) .close() .extrude(0.75) ) part_1...
The part is a rectangular prism with curved top and bottom edges, creating a slightly arched top surface and a flat bottom surface. The part has a symmetrical shape with rounded corners. The length of the part is approximately zero point seven five units, the width is around zero point five three units, and the height ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0676) .lineTo(0.2, 0.0676) .threePointArc((0.3735, 0), (0.55, 0.0676)) .lineTo(0.75, 0.0676) .lineTo(0.75, 0.4647) .lineTo(0.55, 0.4647) .threePointArc((0.3765, 0.5324), (0.2, 0.4647)) .lineTo(0, 0.4647) ...
Start by creating a new coordinate system with default settings. Draw a two-dimensional rectangular sketch on the first face. The rectangle has a length of about 0.75 units and a width of about 0.5024 units. Scale the sketch down to 75% of its original size. Extrude the scaled sketch along the normal direction by 0.082...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.5029) .lineTo(0, 0.5029) .close() .extrude(0.0859) ) result = part_1 cq.exporters.export(result, "./stlcq/0019/00192057.stl")
The design involves creating a rounded rectangular base. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a closed loop with five lines that define the outline of the base. After completing the sketch, apply a scale...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.4471) .lineTo(0.2147, 0) .lineTo(0.6441, 0) .lineTo(0.75, 0.1029) .lineTo(0.2324, 0.6706) .close() .extrude(0.5391) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.539062, 0)) result = par...
The design consists of three parts: a tapered rectangular prism, a tapered rectangular prism with a cutout, and a rounded cube. The first part is a tapered rectangular prism with a length of 0.75, a width of 0.2669, and a height of 0.2847. This part forms the base of the structure. The second part is a smaller tapered ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.014706) .threePointArc((0.002941, 0.002941), (0.014706, 0)) .lineTo(0.735294, 0) .threePointArc((0.747059, 0.002941), (0.75, 0.014706)) .lineTo(0.75, 0.252941) .threePointArc((0.747059, 0.261765), (0.735294, 0.26...
The design involves creating a cylindrical ring with a central hole. Begin by setting up a new coordinate system aligned with the default axes. Draw a two-dimensional sketch consisting of two concentric circles, one larger and one smaller, to define the outer and inner boundaries of the ring. Scale the sketch to fit th...
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.2059) .extrude(0.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0056/00565372.stl")
Create a cube with a triangular cutout on one face. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a rectangular sketch on a new face, then scale it to fit the desired dimensions. Transform the sketch into a three-dimensional object by applying rotation and transla...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7471, 0) .lineTo(0.7471, 0.75) .lineTo(0, 0.75) .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(result,...
The design consists of a rectangular plate with two central horizontal slots. The rectangular plate has a length of approximately 0.75, a width of approximately 0.2143, and a height of 0.0214. The first central horizontal slot, located near the center of the plate, has a length of approximately 0.7114, a width of 0.025...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2147) .lineTo(0, 0.2147) .close() .extrude(0.0234) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7109, 0) .lineTo(0.7109, 0.0251) .li...
The design involves creating a rectangular block with two cylindrical holes on its surface. The block has rounded edges and a flat top. The dimensions of the block are 0.75 units in length, 0.2917 units in width, and 0.1667 units in height. The holes are aligned horizontally and are of equal size. Additionally, there a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0824) .threePointArc((0.0235, 0.0235), (0.0824, 0)) .lineTo(0.6676, 0) .threePointArc((0.7265, 0.0235), (0.75, 0.0824)) .lineTo(0.75, 0.2912) .lineTo(0, 0.2912) .close() .moveTo(0.6029, 0.1471) .circl...
Create a ring-shaped object with a flat, circular base. The object consists of a larger outer circle and a smaller inner circle, forming a central hole. Both circles share the same center point. The object is then scaled down to fit within a square base of 0.75 units by 0.75 units. The height of the object is 0.075 uni...
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.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0028/00283351.stl")
Create a new coordinate system and draw a two-dimensional square sketch on the first face. Scale the sketch to fit the desired size and transform it into a three-dimensional shape. Extrude the sketch to form a solid cube. The cube has rounded edges and corners and measures 0.75 units in height, width, and depth. The cu...
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/0070/00705289.stl")
The design involves creating an L-shaped CAD model with a rectangular base and a vertical rectangular extension. The base is wider than the vertical extension. The overall dimensions of the model are 0.75 units in length, 0.4375 units in width, and 0.25 units in height. The base and the vertical extension are integrate...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1265) .lineTo(0.5, 0.1265) .lineTo(0.5, 0.4382) .lineTo(0.25, 0.4382) .lineTo(0.25, 0.1265) .lineTo(0, 0.1265) .close() .extrude(0.25) ) part_1 = part_1.rotate((0...
The design involves creating a ring-shaped object with a flat, circular base. The object starts with a two-dimensional sketch that includes two concentric circles. The outer circle forms the outer boundary of the ring, while the inner circle creates the central hole. After scaling the sketch, the design is transformed ...
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.0781) ) result = part_1 cq.exporters.export(result, "./stlcq/0041/00412909.stl")
The design consists of two main parts. The first part is a square plate with rounded edges and corners. It measures 0.5625 units in length, 0.6875 units in width, and 0.0938 units in height. The second part is a rectangular frame with rounded corners. It measures 0.625 units in length, 0.75 units in width, and 0.0312 u...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5635, 0) .lineTo(0.5635, 0.6875) .lineTo(0, 0.6875) .close() .extrude(0.0938) ) part_1 = part_1.translate((0.03125, 0.03125, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) ...
The first part is a cylindrical object with a hollow center and flat circular ends. It measures 0.5214 units in length, 0.5214 units in width, and 0.2472 units in height. The second part is a rectangular prism with curved edges on one side. It measures 0.3239 units in length, 0.3913 units in width, and 0.0488 units in ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2627, 0.2627) .circle(0.2607) .moveTo(0.2627, 0.2627) .circle(0.1786) .extrude(0.25) ) part_1 = part_1.translate((0.226562, 0, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.3232, ...
The design consists of five parts. The first part is a rectangular box with a length of 0.5, width of 0.75, and height of 0.05. The second part is a rectangular plate with rounded corners, measuring 0.475 in length, 0.725 in width, and 0.0125 in height. The third part is a cylindrical object with a small, rounded top a...
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() .moveTo(0.011765, 0.011765) .lineTo(0.488235, 0.011765) .lineTo(0.488235, 0.738235) .lineTo(0.011765, 0.738235) .close() .extrude(...
The design involves creating a rectangular base with a protrusion. The base is a rectangular shape with a smaller rectangular section removed from one corner, creating a step-like feature. This shape is then scaled down to fit the desired dimensions. The final part is a solid body with a length of approximately 0.75 un...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.1324) .lineTo(0.7059, 0.1324) .lineTo(0.7059, 0.0441) .lineTo(0.0441, 0.0441) .lineTo(0.0441, 0.1324) .lineTo(0, 0.1324) .close() .extrude(0.0859) ) result = par...
The design consists of two main parts. The first part is a rectangular prism with a trapezoidal top face. This part has a length of approximately 0.75 units, a width of 0.61 units, and a height of 0.1565 units. The second part is a cylindrical protrusion that extends from one side of the rectangular prism. This protrus...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.5706, 0.6088) .lineTo(0.15, 0.6088) .close() .extrude(0.1562) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.242188, 0)) # Part 2: join part_2 = ( cq.Workplane...
Start by creating a new coordinate system with specific rotations and translations. Draw a circular sketch on a new face and scale it down to fit the desired size. Transform this sketch into a three-dimensional object by applying the specified rotations and translations. Extrude the transformed sketch to form a solid c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.302, 0.302) .circle(0.2996) .extrude(0.4531) ) part_1 = part_1.translate((0.078125, 0.078125, 0.148438)) result = part_1 cq.exporters.export(result, "./stlcq/0034/00343981.stl")
The design consists of two rounded cubes. The first rounded cube has a square base with a side length of 0.75 units and a height of 0.0375 units. This cube is positioned at the origin. The second rounded cube is smaller, with a rectangular base measuring 0.1215 units in length and 0.1715 units in width, and a height of...
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.0391) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.122, 0) .lineTo(0.122, 0.1719) .lineTo(...
The design involves creating a cylindrical shape with a rectangular top and a hole in the center. Start by setting up a new coordinate system with specific rotations and translations. The first face consists of a large circle with a smaller concentric circle inside it. The second face is a rectangle with a curved top, ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1647, 0.5853) .circle(0.1647) .moveTo(0.1647, 0.5853) .circle(0.0618) .extrude(0.2188) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0559, 0) .lineTo(0.2794, 0) .lineTo(0.2794, 0.4618) .three...
The design involves creating a square plate and adding four rectangular holes in its corners. The square plate has a length and width of approximately 0.75 units and a height of 0.02 units. The rectangular holes, positioned in the corners, have a length and width of about 0.41 units and a depth of 0.08 units. These hol...
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.0234) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0813, 0) .lineTo(0.0813, 0.0813) .lineTo...
Start by creating a new coordinate system with default settings. Draw a rectangular sketch on the first face, forming a closed loop. Scale this sketch down to 75% of its original size. Transform the scaled sketch into three-dimensional space using the default coordinate system. Extrude the sketch 0.0469 units along the...
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.0469) ) result = part_1 cq.exporters.export(result, "./stlcq/0036/00362315.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional rectangle on the first face. Scale the rectangle to reduce its size. Transform the scaled rectangle into a three-dimensional object by applying the rotation and translation defined in the coordinate sys...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0235) .lineTo(0, 0.0235) .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...
Create a rectangular plate by starting with a new coordinate system aligned with the global axes. Draw a closed loop on a new face, forming a rectangle with a slight cut-off at one corner. Scale the entire sketch uniformly to reduce its size. Transform the scaled sketch into three dimensions using the coordinate system...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4559) .lineTo(0.0206, 0.4559) .close() .extrude(0.0312) ) result = part_1 cq.exporters.export(result, "./stlcq/0040/00407934.stl")
To construct the rectangular base, start by setting up a new coordinate system with no rotation or translation. Draw a closed loop on a new face, forming a rectangle with a length of 0.75 units and a width of 0.0703 units. Scale this sketch to reduce its size, then transform it to ensure it aligns correctly with the co...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0706) .lineTo(0, 0.0706) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0057/00576702.stl")
Start by setting up a new coordinate system with the origin shifted slightly upwards along the z-axis. Then, draw a rectangular shape on a plane, ensuring that the rectangle has a length of 0.75 units and a width of 0.375 units. After drawing the rectangle, scale it down to 75% of its original size. Transform this scal...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.3765) .lineTo(0, 0.3765) .close() .extrude(0.0391) ) result = part_1 cq.exporters.export(result, "./stlcq/0010/00104212.stl")
The design consists of three parts. The first part is a rectangular prism with a smaller rectangular extension, forming an L-shape. The second part is a cube with rounded edges and corners. The third part is a cylinder with a rectangular top and a circular base. The dimensions of the first part are approximately 0.75 u...
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.1265, 0.25) .lineTo(0.1265, 0.5) .lineTo(0, 0.5) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5, 0)) # Part 2:...
Create a cylinder with a central hole by starting with a new coordinate system aligned to the global axes. Draw a two-dimensional sketch consisting of two concentric circles. The outer circle represents the outer boundary of the cylinder, while the inner circle forms the central hole. Scale the sketch to reduce its siz...
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/0022/00226998.stl")
Begin by setting up a new coordinate system with all angles and translations set to zero. Draw a square on the first face, ensuring that all sides are equal in length. Scale this square to fit the desired dimensions. Transform the square into three-dimensional space without altering its orientation or position. Extrude...
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/0046/00467956.stl")
The design consists of two main parts. The first part is a cube with rounded edges and corners, created by drawing a 2D sketch of a rectangle, scaling it, transforming it into 3D space, and then extruding it along the normal. This part has a length and width of approximately 0.645 units and a height of 0.057 units. The...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6484, 0) .lineTo(0.6484, 0.6484) .lineTo(0, 0.6484) .close() .extrude(0.0547) ) part_1 = part_1.translate((0.054688, 0.054688, 0)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0.151...
Start by creating a new coordinate system aligned with the default axes. Draw a circular shape on a new face, then scale it to fit the required size. Transform this scaled shape into a three-dimensional object and extrude it along its normal direction to create a cylindrical solid. The final cylindrical object will hav...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0118, 0.0118) .circle(0.0117) .extrude(0.75) ) result = part_1 cq.exporters.export(result, "./stlcq/0072/00725356.stl")
The design involves creating a rounded rectangular base. Start by setting up a new coordinate system with default angles and vectors. Draw a two-dimensional rectangle on the first face, then scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional object by rotating and translating i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6765) .lineTo(0, 0.6765) .close() .extrude(0.5234) ) result = part_1 cq.exporters.export(result, "./stlcq/0044/00444184.stl")
The design consists of a rectangular plate and two cylindrical protrusions. The rectangular plate has a length of approximately zero point seven five units, a width of zero point four one units, and a height of zero point zero one nine units. The plate is positioned with a slight offset in the y-direction. The two cyli...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4088) .lineTo(0, 0.4088) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.054688, 0)) # Part 2: join part_2 = ( cq.Workplane("XY"...
Start by creating a new coordinate system with specific rotations and translations. Then, draw a two-dimensional rectangle on this coordinate system. Transform this rectangle into three dimensions by applying the defined rotations and translations. Extrude the transformed rectangle to create a solid body. The final sha...
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.2891) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.289062, 0)) result = part_1 cq.exporters.export(result, "./stl...
Create a rectangular plate with several holes. The plate has a rectangular base and five circular holes positioned within it. The first two holes are located near the bottom corners, the third hole is centered in the middle, and the last two holes are near the top corners. The plate is then extruded to form a three-dim...
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.3765, 0.25) .circle(0.0794) .moveTo(0.0765, 0.0735) .circle(0.0324) .moveTo(0.0765, 0.4235) .circle(0.0324) .moveTo(...
The design involves creating a ring-shaped part with a circular cross-section. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that includes two concentric circles, then scale this sketch to fit the desired dimensions. Transform the scaled s...
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.3088) .extrude(0.0469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.078125, 0)) result = part_1 cq.exporters.export(result, "./stlc...
Start by creating a new coordinate system aligned with the default axes. Sketch the outline of the ring on the first face, which consists of two concentric circles. The outer circle forms the outer edge of the ring, while the inner circle defines the inner void. Scale down the entire sketch to fit the desired dimension...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .moveTo(0.3735, 0.3735) .circle(0.2706) .extrude(0.1094) ) result = part_1 cq.exporters.export(result, "./stlcq/0051/00512167.stl")
Start by creating a new coordinate system aligned with the global axes. Draw a rectangular sketch on a new face, forming a square with sides of equal length. After completing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by extruding it along the no...
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.4141) ) result = part_1 cq.exporters.export(result, "./stlcq/0054/00547357.stl")
Start by creating a new coordinate system aligned with the global axes. Draw a two-dimensional rectangular sketch on the first face, forming a closed loop with four straight lines. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by extruding it along the normal direction...
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.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0046/00462253.stl")
The design involves creating two separate parts that are then combined to form the final shape. The first part is a rectangular box with a length of 0.1667 meters, a width of 0.3333 meters, and a height of 0.75 meters. This part is created by drawing a 2D sketch, scaling it, rotating and translating it, and then extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.1686, 0) .lineTo(0.1686, 0.3359) .lineTo(0, 0.3359) .close() .extrude(0.75) ) part_1 = part_1.translate((0, 0.007812, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(...
The square box base is constructed by creating a new coordinate system and drawing a two-dimensional sketch on the first face. The sketch consists of two nested loops forming a rectangular shape with a smaller inner rectangle. After drawing the sketch, scale it down by 75%. The sketch is then extruded 0.0833 units to c...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.6676, 0) .lineTo(0.6676, 0.75) .lineTo(0, 0.75) .close() .moveTo(0.0176, 0.0176) .lineTo(0.6471, 0.0176) .lineTo(0.6471, 0.7324) .lineTo(0.0176, 0.7324) .close() .extrude(0.0859) ) ...
The design involves creating a rectangular prism with rounded edges. The process begins by setting up a new coordinate system and drawing a 2D sketch on the xy-plane. The sketch consists of two faces, each with loops of lines that define the shape. After completing the sketch, it is scaled down and transformed into a 3...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.15) .lineTo(0, 0.15) .lineTo(0, 0.1441) .lineTo(0.0059, 0.1441) .lineTo(0.0059, 0.1471) .lineTo(0.7441, 0.1471) .lineTo(0.7441, 0.0029) .lineTo(0.0059, 0.0029) ...
The first part is a rectangular prism with a length of 0.1214 meters, a width of 0.1225 meters, and a height of 0.2154 meters. The second part is also a rectangular prism, but smaller, with a length of 0.0554 meters, a width of 0.116 meters, and a height of 0.1832 meters. The third part is a tall rectangular prism with...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.124, 0) .lineTo(0.124, 0.125) .lineTo(0, 0.125) .close() .extrude(0.2188) ) part_1 = part_1.translate((0, 0.015625, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0....
The design consists of two main parts. The first part is a rectangular prism with rounded edges and a central rectangular cutout. This part has a length of 0.75, a width of 0.2143, and a height of 0.0729. The second part is a cylindrical object with a hollow center and rounded edges. This part has a length of 0.2143, a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1059, 0.1059) .circle(0.1088) .moveTo(0.1059, 0.1059) .circle(0.0441) .extrude(0.0703) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.1059, 0) .lineTo(0.6441, 0) .threePointArc((0.75, 0.1059), (0....
The first part of the cylindrical object begins with creating a new coordinate system aligned to the origin. A circular sketch is drawn on the first face, centered at a specific point and scaled down to fit the desired dimensions. This sketch is then transformed into a three-dimensional shape by rotating and translatin...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.102, 0.102) .circle(0.1012) .extrude(0.5469) ) part_1 = part_1.translate((0.09375, 0.09375, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0079/00793845.stl")
Start by creating a new coordinate system with specific rotations and translations. Then, draw a circular shape within a two-dimensional sketch. Scale the sketch to reduce its size. Transform the scaled sketch into a three-dimensional object by applying the previously defined rotations and translations. Extrude the tra...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2824, 0.2824) .circle(0.2801) .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/0013/00134219.stl")
The design consists of three main parts. The first part is a cube-shaped object with a length, width, and height of 0.5 units, 0.5 units, and 0.75 units, respectively. The second part features two parallel cylinders, each with a length of 0.4162 units, a width of 0.01 units, and a height of 0.5075 units. These cylinder...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0255, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.5) .lineTo(0, 0.5) .close() .moveTo(0.0255, 0.0255) .lineTo(0.4745, 0.0255) .lineTo(0.4745, 0.4745) .lineTo(0.0255, 0.4745) .close() .ext...
To create the L-shaped CAD model, start by setting up a new coordinate system with specific rotations and translations. Draw a two-dimensional sketch that forms the outline of the L-shape on three different faces. The first face includes a vertical and horizontal segment forming a corner, while the second and third fac...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.0165, 0) .lineTo(0.0165, 0.0165) .lineTo(0.0165, 0.6811) .lineTo(0.0165, 0.7031) .lineTo(0, 0.7031) .close() .extrude(0.0156) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0165,...
The design consists of two main parts. The first part is a cube with one corner cut off, featuring a length of 0.75, a width of 0.46875, and a height of 0.46875. This part is created by defining a specific coordinate system and drawing a 2D sketch that is then transformed and extruded into a 3D model. The second part i...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.4706, 0.2853) .lineTo(0.2824, 0.4676) .lineTo(0, 0.4676) .close() .extrude(0.4688) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.46875, 0)) # Part 2: join par...
To create a cross-shaped object, start by setting up a new coordinate system with all angles and translations set to zero. Draw five rectangular faces to form the basic shape of the cross. The first face forms the vertical bar of the cross, while the second and third faces form the horizontal bar. The fourth and fifth ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3765) .lineTo(0.2265, 0.3765) .lineTo(0.2265, 0.6) .lineTo(0, 0.6) .close() .extrude(0.2969) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.2265, 0) .lineTo(0.5265, 0) .lineTo(0.5265, 0.376...
The design consists of two main parts that combine to form a rectangular box. The first part is a rectangular prism with a rectangular cutout. It has a length of 0.2488 meters, a width of 0.1635 meters, and a height of 0.0818 meters. This part is created by drawing a 2D sketch of the outer rectangle and an inner cutout...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.1647) .lineTo(0, 0.1647) .close() .moveTo(0.0108, 0.0108) .lineTo(0.2392, 0.0108) .lineTo(0.2392, 0.1539) .lineTo(0.0108, 0.1539) .close() .extrude(0.0781) ) ...
The design consists of nine individual parts, each contributing to the overall structure. The first part is a rectangular base with a length of 0.2571, a width of 0.4071, and a height of 0.0021. The second part is a right triangle with a length of 0.1426, a width of 0.1714, and a height of 0.0021. The third part is a t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.256495, 0) .lineTo(0.256495, 0.40625) .lineTo(0, 0.40625) .close() .extrude(0.007812) ) part_1 = part_1.translate((0.140625, 0.171875, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") .moveTo(0...
The design consists of two main parts. The first part is a cube with rounded edges and corners. It has a length of 0.75 units, a width of 0.4773 units, and a height of 0.5455 units. This part is created by extruding a 2D sketch along the normal. The second part is a rectangular protrusion that extends from the first pa...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4765) .lineTo(0, 0.4765) .close() .extrude(0.5469) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.546875, 0)) # Part 2: cut part_2 = ( cq.Workplane("XY")...
Create a rounded cube base by starting with a square sketch on a flat surface. The sketch forms a closed loop with four equal sides. After drawing the sketch, scale it down to fit the desired size. Transform this scaled sketch into a three-dimensional object by extruding it along the vertical axis to create a solid bod...
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.625) ) result = part_1 cq.exporters.export(result, "./stlcq/0041/00417790.stl")
The first part is a rectangular box with a length of 0.5 units, a width of 0.75 units, and a height of 0.3 units. The second part is a smaller rectangular block placed on top of the first part, with a length of 0.15 units, a width of 0.75 units, and a height of 0.15 units. The third part is a cylindrical hole drilled t...
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.2969) ) # Part 2: cut part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.15, 0) .lineTo(0.15, 0.75) .lineTo(0, 0.75...
Create a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a complex shape with arcs and lines, then scale the sketch to reduce its size. Transform the scaled sketch into three dimensions by rotating and translating it according to the coordinate system ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.0147) .threePointArc((0.0029, 0.0029), (0.0147, 0)) .lineTo(0.7353, 0) .threePointArc((0.7471, 0.0029), (0.75, 0.0147)) .lineTo(0.75, 0.3941) .lineTo(0.4882, 0.6) .lineTo(0.2618, 0.6) .lineTo(0, 0.3941) ...
Create a cylindrical base by starting with a new coordinate system aligned to the default axes. Draw a circle on the first face and then scale it down to fit the desired size. Transform the scaled circle into a three-dimensional object and extrude it to form a solid cylinder. The final dimensions of the cylindrical bas...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3735, 0.3735) .circle(0.3765) .extrude(0.1641) ) result = part_1 cq.exporters.export(result, "./stlcq/0031/00313993.stl")
The design involves creating a rectangular base with a vertical extension. Begin by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a 2D sketch on the first face, forming a complex shape with six lines. After completing the sketch, scale it down to 75% of its original size. ...
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.1265, 0.25) .lineTo(0.1265, 0.5) .lineTo(0, 0.5) .close() .extrude(0.5) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.5, 0)) result = ...
Start by creating a coordinate system that rotates the workplane by ninety degrees around the z-axis and translates it slightly upwards. Draw a rectangular base on this rotated plane. The rectangle has a longer side and a shorter side, with the longer side significantly longer than the shorter side. After drawing the r...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.0265) .lineTo(0, 0.0265) .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 ring with a smooth, cylindrical shape and a flat, circular top. The ring has a uniform thickness and a consistent diameter throughout. Its dimensions are approximately zero point seven five units in length and width, and zero point one zero eight three units in height. The second part...
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.3206) .extrude(0.1094) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.109375, 0)) # Part 2: new part_2 = ( cq.Workplane("XY") ...
Start by creating a rectangular block with rounded edges. The block has a length of approximately 0.75 units, a width of 0.27 units, and a height of 0.05 units. This block forms the base of the design. Next, add a cylinder to the design. The cylinder has a diameter of 0.27 units and a height of 0.17 units. The cylinder...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1353, 0) .lineTo(0.6147, 0) .threePointArc((0.75, 0.1353), (0.6147, 0.2735)) .lineTo(0.1353, 0.2735) .threePointArc((0, 0.1353), (0.1353, 0)) .close() .extrude(0.0469) ) part_1 = part_1.translate((0, 0, 0.03125)...
The design involves creating a rectangular bracket with rounded edges and two circular holes. Start by setting up a new coordinate system and drawing a two-dimensional sketch on the first face. This sketch consists of a rectangular shape with rounded corners and two smaller circles located at the ends of the rectangle....
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0765, 0) .lineTo(0.6765, 0) .threePointArc((0.75, 0.0765), (0.6765, 0.15)) .lineTo(0.0765, 0.15) .threePointArc((0, 0.0765), (0.0765, 0)) .close() .moveTo(0.0765, 0.0765) .circle(0.0353) .moveTo(0.6765, ...
The part consists of a curved, semi-circular shape with a flat base and a smooth, rounded top. The design starts with a two-dimensional sketch that includes three faces. The first face forms a rectangle, the second face forms a taller rectangle, and the third face combines a vertical line and an arc to create the curve...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0.3676) .lineTo(0.5529, 0) .lineTo(0.5529, 0.3676) .close() .extrude(0.0312) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0, 0.3676) .lineTo(0.5529, 0.3676) .lineTo(0.5529, 0.7353) .close() ...
To create the rectangular plate, start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a simple rectangular shape on a new face, ensuring it forms a closed loop. Transform this shape into a three-dimensional object by applying the specified rotation and translation. Extru...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4766, 0) .lineTo(0.4766, 0.0374) .lineTo(0, 0.0374) .close() .extrude(0.75) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.75, 0)) result = part_1 cq.exporters.export(result, "./s...
The design involves creating a rectangular base with a smaller offset top. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch that forms a unique shape with specific vertices and lines. This sketch is then scaled down and transformed into a thr...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.3588, 0.3588) .lineTo(0.3588, 0.7206) .lineTo(0, 0.7206) .close() .extrude(0.7188) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.71875, 0)) result = part_1 c...
Start by creating a new coordinate system and drawing a rectangular sketch on the first face. The sketch forms a closed loop with four lines, creating a square shape. After drawing the sketch, scale it down to 75% of its original size. Transform the scaled sketch into a three-dimensional object by rotating it 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.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0054/00546312.stl")
The design involves constructing two rectangular plates with rounded corners and flat surfaces. The first plate has a length of 0.75 units, a width of 0.6 units, and a height of 0.0075 units. The second plate, slightly smaller, has a length of 0.735 units, a width of 0.585 units, and the same height of 0.0075 units. Bo...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.6) .lineTo(0, 0.6) .close() .extrude(0.0078) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.7344, 0) .lineTo(0.7344, 0.5846) .lineTo(...
The rounded cylindrical base is constructed by creating a circular profile and extruding it to form a 3D shape. The circular profile is centered and scaled appropriately before being transformed into 3D space. The final dimensions of the base are approximately 0.041 units in both width and length, and 0.75 units in hei...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0196, 0.0196) .circle(0.0195) .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/0060/00604012.stl")
Start by creating a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a closed loop with five lines. After completing the sketch, scale it down by 75%. Transform the scaled sketch into a three-dimensional object by applying the previously...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.4147, 0) .lineTo(0.75, 0.1324) .lineTo(0.4824, 0.4029) .lineTo(0.0853, 0.4029) .close() .extrude(0.2188) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.21875, 0)) result = part...
Start by creating a new coordinate system with specific angles and translations. Then, draw a circular shape on a flat surface. Scale this shape to reduce its size. Transform the scaled shape into a three-dimensional object by rotating and translating it. Finally, extend the shape along its normal direction to create a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .extrude(0.4219) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.421875, 0)) result = part_1 cq.exporters.export(result, "./stlcq/0010/00103832.stl")
The design involves creating a cube and a cylindrical protrusion. The cube has a length and width of 0.75 units and a height of 0.225 units. The cylindrical protrusion, positioned on top of the cube, has a diameter of 0.1057 units and a height of 0.2727 units. When combined, the final shape is a cube with 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.75) .lineTo(0, 0.75) .close() .extrude(0.2266) ) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.0549, 0.0549) .circle(0.0545) .extrude(0.2734) ) part_2 =...
Start by creating a new coordinate system aligned with the default axes. Draw the first face with two nested squares. The outer square forms the base of the model, while the inner square creates a recessed area. Scale the sketch to fit the desired size. Transform the sketch into a three-dimensional object by rotating a...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.375, 0) .lineTo(0.375, 0.375) .lineTo(0, 0.375) .close() .moveTo(0.075, 0.075) .lineTo(0.3, 0.075) .lineTo(0.3, 0.3) .lineTo(0.075, 0.3) .close() .extrude(0.75) ) result = part_1 ...
To create the rectangular block, start by setting up a new coordinate system with no rotation or translation. Draw a two-dimensional rectangle on the first face, ensuring that the sides are parallel to the axes. Scale the rectangle to reduce its size, then transform it 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.2353) .lineTo(0, 0.2353) .close() .extrude(0.4688) ) result = part_1 cq.exporters.export(result, "./stlcq/0051/00516063.stl")
Create a rectangular block with a circular hole. The block has a length of approximately 0.75 units, a width of 0.2724 units, and a height of 0.0842 units. The circular hole is centered within the block, and its diameter is proportional to the width of the block. The final shape is a solid rectangular prism with a cyli...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2735) .lineTo(0, 0.2735) .close() .moveTo(0.3735, 0.1353) .circle(0.0765) .extrude(0.0859) ) result = part_1 cq.exporters.export(result, "./stlcq/0086/00866606.stl")
The design consists of three main components: a circular plate with a central hole, a cylindrical object with rounded edges, and a ring-shaped object with a central hole. The circular plate has a diameter of 0.75 units and a thickness of 0.028125 units. The cylindrical object, positioned slightly offset from the center...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3765, 0.3765) .circle(0.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 design involves creating a rounded cylindrical object. Begin by setting up a new coordinate system with standard Euler angles and a zero translation vector. On the first face, draw a single circle. After drawing, scale the circle to the desired size. Transform the scaled sketch into three dimensions and then extrud...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3229, 0.3255) .circle(0.3229) .extrude(0.5547) ) result = part_1 cq.exporters.export(result, "./stlcq/0030/00305801.stl")
Create a rounded cylindrical object by starting with a new coordinate system rotated and translated to position the object correctly. Draw a circular sketch and scale it to the desired size. Transform this sketch into a 3D shape by rotating and translating it. Extrude the sketch in both directions to form a solid cylin...
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/0020/00206277.stl")
The design involves creating a two-step block with a rectangular base and a smaller rectangular step on top. Start by setting up a new coordinate system with specific Euler angles and a translation vector. Then, draw two two-dimensional sketches: the first forms a rectangle on the base, and the second extends this rect...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.25, 0) .lineTo(0.25, 0.2176) .lineTo(0, 0.2176) .close() .extrude(0.3359) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.25, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.4176) .lineTo...
Create a new coordinate system with specific Euler angles and a translation vector. Draw a two-dimensional sketch on the first face, forming a complex shape with multiple straight lines. This shape includes a rectangular base and a triangular top. Scale the sketch to reduce its size, then transform it into three dimens...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.2412, 0) .lineTo(0.2412, 0.1588) .lineTo(0.4794, 0.1588) .lineTo(0.4794, 0) .lineTo(0.7206, 0) .lineTo(0.4059, 0.75) .lineTo(0.1676, 0.75) .close() .extrude(0.4766) ) part_1 = part_1.ro...
Start by creating a new coordinate system aligned with the global axes. Draw a rectangular shape on a new face, ensuring the corners align with the specified coordinates. Scale the rectangle to reduce its size. Transform the scaled rectangle into a three-dimensional object without altering its orientation or position. ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.2647) .lineTo(0, 0.2647) .close() .extrude(0.0078) ) result = part_1 cq.exporters.export(result, "./stlcq/0058/00588299.stl")
The design consists of two cylindrical objects. The first cylinder has a hollow center and rounded edges, with a height of 0.5735 units, and both its length and width are 0.5294 units. The second cylinder also has a central hole, with a height of 0.1765 units, and the same length and width as the first cylinder. These ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.2667, 0.2667) .circle(0.2646) .moveTo(0.2667, 0.2667) .circle(0.1417) .extrude(0.5703) ) part_1 = part_1.translate((0, 0, 0.179688)) # Part 2: join part_2 = ( cq.Workplane("XY") .moveTo(0.2667, 0.2667) .cir...
Start by creating a new coordinate system aligned with the global axes. Draw a two-dimensional sketch of a square on the first face. The square has rounded edges and a flat surface. After drawing the sketch, scale it down to fit the desired dimensions. Transform the scaled sketch into a three-dimensional object by alig...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.75, 0) .lineTo(0.75, 0.7176) .lineTo(0, 0.7176) .close() .extrude(0.0156) ) result = part_1 cq.exporters.export(result, "./stlcq/0027/00276232.stl")
The design involves creating a cylindrical object with a small circular hole at the top. The base of the cylinder is defined by a larger circle, and a smaller, irregular hexagonal shape is inscribed within it. These shapes are then scaled down and transformed into a three-dimensional object by extruding them along the ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.3765, 0.3765) .circle(0.3735) .moveTo(0.3176, 0.3765) .lineTo(0.3471, 0.3265) .lineTo(0.4029, 0.3265) .lineTo(0.4324, 0.3765) .lineTo(0.4029, 0.4235) .lineTo(0.3471, 0.4235) .close() .extrude(0.2891)...
The part consists of a rectangular base with two cylindrical protrusions. The base has a length of approximately 0.3527 units and a width of about 0.0857 units. The height of the part is around 0.0928 units. The first cylindrical protrusion is located near one corner of the base, while the second is positioned closer t...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.0386, 0.0386) .circle(0.0372) .moveTo(0.0386, 0.0386) .circle(0.0248) .extrude(0.0938) ) part_1 = part_1.union( cq.Workplane("XY") .moveTo(0.0758, 0.0041) .lineTo(0.0758, 0.0386) .lineTo(0.0758, 0.0855) ...
Start by creating a rectangular shape with rounded edges. This involves drawing a series of lines and arcs to form the outline of the shape. Once the initial sketch is complete, scale it down to fit the desired dimensions. The shape is then transformed into a three-dimensional object by extruding it along the normal di...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0.1265, 0) .lineTo(0.6265, 0) .threePointArc((0.75, 0.1265), (0.6265, 0.25)) .lineTo(0.1265, 0.25) .threePointArc((0, 0.1265), (0.1265, 0)) .close() .extrude(0.0625) ) result = part_1 cq.exporters.export(result,...
The design involves creating a cylindrical base with a sharp point at one end and a flat, rounded top at the other. The process begins by setting up a new coordinate system with specific Euler angles and a translation vector. A two-dimensional sketch is drawn, forming a loop that includes lines and an arc. This sketch ...
import cadquery as cq # Part 1: new part_1 = ( cq.Workplane("XY") .moveTo(0, 0) .lineTo(0.5, 0) .lineTo(0.5, 0.0275) .threePointArc((0.249, 0.0686), (0, 0.0255)) .close() .extrude(0.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0.023438, 0.75, 0)) result = part_1 cq....
The rectangular bar is a simple solid object with a flat top and bottom and straight edges. The part is created by defining a rectangular profile and then extruding it to form a three-dimensional shape. The overall dimensions of the rectangular bar are approximately zero point seven five units in length, zero point zer...
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.0156) ) part_1 = part_1.rotate((0, 0, 0), (1, 0, 0), 90).translate((0, 0.015625, 0)) result = part_1 cq.exporters.export(result, "....
Start by creating a new coordinate system aligned with the default axes. Draw a circular face with a smaller concentric circle inside it. Scale the entire sketch to reduce its size. Transform the scaled sketch into three-dimensional space and extrude it to form a cylindrical object with a hollow center. The final shape...
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/0054/00549370.stl")