script/extract_edges.py script¶
Extract outline edges of a given mesh and save them into ‘<original path>/edge_<original mesh file name>.vtk’ or into a user defined output file. The outline edge is an edge for which norm(nvec1 - nvec2) < eps, where nvec1 and nvec2 are the normal vectors of the incident facets.
-
extract_edges.
extract_edges
(mesh, eps=1e-16)[source]¶ Extract outline edges of a given mesh. The outline edge is an edge for which norm(nvec_1 - nvec_2) < eps, where nvec_1 and nvec_2 are the normal vectors of the incident facets.
Parameters: mesh : Mesh
The 3D or 2D mesh.
eps : float
The tolerance parameter of the outline edge searching algorithm.
Returns: mesh_out : tuple
The data of the outline mesh, Mesh.from_data() format, i.e. (coors, ngroups, ed_conns, mat_ids, descs).