fedoo.mesh.extract_edges
- extract_edges(mesh: Mesh, reduce_order: bool = False, node_set: str | _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None, element_set: str | _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None)
Extract a mesh with edges from a given 2D or 3D mesh.
- Parameters:
mesh (fd.Mesh) – Mesh from which we want to extract the surface
reduce_order (bool, default = False) – If True, only 2-nodes edges will be extracted in any cases
node_set (str | array_like, optional) – if node_set is defined (array of node indices or node_set name), the surface mesh will include only face whose corner nodes are all in the given node_set.
element_set (str | array_like, optional) – if element_set is defined (array of node indices or node_set name), the surface mesh will include only face that belong to elements in the given element_set.
- Returns:
Edge Mesh with ‘lin2’ or ‘lin3’ elm_type.
- Return type: