Modeling a Hollow Tube with Tangent Radial Arcs in CadQuery: Seeking Guidance #1415
Replies: 2 comments
-
Fillet for 3D wires is not implemented, so you'll need to build the spine by hand calling e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi Obi, I have tried drawing your case using the occt API in Cadquery. I hope this helps. import cadquery as cq point1 = gp_Pnt(0.0, 0.0, 0.0) edge1 = BRepBuilderAPI_MakeEdge(point1, point2).Edge() vec1 = gp_Vec(point1, point2) dir1 = gp_Dir(vec1.Crossed(vec2)) dir2 = gp_Dir(vec2.Crossed(vec3)) dir3 = gp_Dir(vec3.Crossed(vec4)) wire_builder = BRepBuilderAPI_MakeWire() path_wire = Wire(wire_builder.Wire()) OCCT_plane = cq.Plane(point1, normal=(vec1.X(), vec1.Y(), vec1.Z())) outer_wire = cq.Workplane(OCCT_plane).circle(20.4) solid = outer_wire.sweep(path_wire) |
Beta Was this translation helpful? Give feedback.
-
Hello, I have experience with Creo, a robust CAD software, and am now delving into CadQuery to explore specifying geometry through code. In Creo, I would solve my current problem by offsetting points from a coordinate system. Specifically, I input the X, Y, and Z coordinates for five points, create a datum curve connecting these points with straight lines, specify the radii for each corner, and finally perform a sweep with a hollow tube cross-section. Now, as I transition into a code-based geometry specification in CadQuery, I am unsure of the recommended approach to model this geometry. I appreciate any insights or suggestions from the community here.
Problem Description:
I aim to model a hollow tube with multiple radial arcs tangent to the straight arm segments. Below are the specifics of the geometry:
Inner Diameter: Ø25.4mm
Wall Thickness: 5.00mm
Radii at Points:
X, Y, Z Coordinates defining the centerline of the path:
I am new to CadQuery and am seeking guidance on how to approach this modeling task, especially in translating the method I used in Creo to CadQuery.
Beta Was this translation helpful? Give feedback.
All reactions