fedoo.mesh.extrude
- extrude(mesh, extrude_path, n_nodes=11, ndim=None, name='', local_frame=None)
Build a volume or surface mesh from the extrusion of a surface or wire mesh.
- Parameters:
mesh (fedoo.Mesh) – The mesh to extrude
extrude_path (float, tuple[float] or fedoo.Mesh) – The path along which the mesh will be extruded. extrude_path can either be: - a float: extrude_path is the extrusion thickness. - a tuple: extrude_path is the min and max coordinates values along the thickness. - a fedoo.Mesh with line elements: define the path along which the mesh is extruded.
n_nodes (int) – number of nodes in the extrusion direction. n_nodes is ignored if extrude_path is a Mesh.
ndim (int, optional) – Spatial dimension of an ordinary extrusion. With
local_frame, the frame dimension determines the output dimension; an explicitly givenndimmust match it.local_frame (array_like or scipy/simcoon Rotation, optional) – Smooth local frames along the extrusion path. One frame is broadcast to all path nodes; otherwise one frame per path node is required. Frame rows are the local basis vectors expressed in global coordinates. For a conventional sweep along a curved path, the first frame axis generally follows the path tangent. Other orientations may be used to create an oblique sweep.
name (str, optional) – The name of the final Mesh.
- Return type:
Mesh object