Skip to content

Commit

Permalink
docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsellan committed Oct 18, 2023
1 parent 9031019 commit b01b222
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/gpytoolbox/cut_edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
from .remove_unreferenced import remove_unreferenced

def cut_edges(F,E):
"""Cuts edges in a triangle mesh.
Given a triangle mesh, specify a list of edges to cut to create a new
triangle mesh. This mesh must be manifold.
You can not cut a single interior edge, you must cut at least two.
This function mirrors gptoolbox's cut_edges (https://github.com/alecjacobson/gptoolbox/blob/master/mesh/cut_edges.m)
"""Cut a triangle mesh along a specified set of edges.
Given a triangle mesh and a set of edges, this returns a new mesh that has been "cut" along those edges; meaning, such that the two faces incident on that edge are no longer combinatorially connected. This is done by duplicating vertices along the cut edges (see note), and creating a new geometrically identical edge between the duplicated vertices.
Parameters
----------
Expand All @@ -29,6 +27,10 @@ def cut_edges(F,E):
vertices in the new mesh.
This takes care of correctly duplicating vertices.
Notes
-----
Since only vertices that no longer share an edge in common are duplicated, you cannot cut a single interior edge. This function mirrors gptoolbox's cut_edges (https://github.com/alecjacobson/gptoolbox/blob/master/mesh/cut_edges.m)
Examples
--------
```python
Expand Down

0 comments on commit b01b222

Please sign in to comment.