Skip to content

FaceToEdge

FaceToEdge(remove_faces: bool = True)

Bases: BaseTransform

Converts the mesh faces face (triangles [3, num_faces] or tetrahedra [4, num_faces]) to undirected, coalesced edges.

Parameters:

Name Type Description Default
remove_faces bool

If True, removes the face attribute. Default: True

True

Example:

from mlx_graphs.transforms import FaceToEdge

graph = FaceToEdge()(mesh)
Source code in mlx_graphs/transforms/point_cloud.py
def __init__(self, remove_faces: bool = True):
    self.remove_faces = remove_faces

from mlx_graphs.transforms import FaceToEdge · mlx_graphs/transforms/point_cloud.py