in opencascade how do evolved and pipe solids differ?
- User
in opencascade how do evolved and pipe solids differ?
- Assistant
In OpenCascade, both Evolved and Pipe solids are used for creating more complex 3D shapes by sweeping a 2D profile along a path. However, they have some differences in the way they are created and the resulting geometry:
-
Evolved Solid: An Evolved solid is generated by sweeping a 2D profile along a straight or curved path while maintaining its orientation perpendicular to the path's tangential direction at every point. This creates a smooth transition from the starting profile to the end, resulting in a surface or solid with no twisting or deformation. Additionally, the Evolved solid allows for the profile to be scaled along the path, creating more complex shapes. Evolved solids are typically used in modeling extrusions, revolutions, and other simple sweeps where the profile's orientation remains consistent throughout the sweep.
-
- User
How can I create an evolved solid from a profile that follows the inner wire of a face
- Assistant
To create an evolved solid from a profile that follows the inner wire of a face in OpenCascade, follow these steps:
-
Assume that you have a
TopoDS_FacenamedaFaceand aTopoDS_Wireprofile namedaProfile. -
First, we need to extract the inner wire of the face. You can filter through the face's edges and build a wire that represents the inner loop.
TopoDS_Wire innerWire; for (TopExp_Explorer ex(aFace, TopAbs_WIRE); ex.More(); ex.Next()) { TopoDS_Wire currentWire = TopoDS::Wire(ex.Current()); if (!currentWire.IsSame(aFace.OuterWire())) { innerWire = currentWire; break; } } -