Skip to content

Commit

Permalink
fixes on docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMagnet committed Apr 29, 2024
1 parent a135b9e commit 9492ed9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
# autodoc_mock_imports = ["pyFM", "scipy", "numpy", "trimesh", "scipy.linalg", "scipy.sparse", 'potpourri3d', "robust_laplacian"]

autodoc_default_options = {
'members': True}
'members': True,
'member-order': 'bysource'}

templates_path = ['_templates']
exclude_patterns = []
Expand Down
6 changes: 6 additions & 0 deletions pyFM/spectral/convert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
Python implementation of:
[1] - "Deblurring and Denoising of Maps between Shapes", by Danielle Ezuz and Mirela Ben-Chen.
"""

import scipy.linalg
import numpy as np

Expand Down
22 changes: 14 additions & 8 deletions pyFM/spectral/projection_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
.. note::
Python implementation of:
[1] - "Deblurring and Denoising of Maps between Shapes", by Danielle Ezuz and Mirela Ben-Chen.
"""

import time

import numpy as np
Expand Down Expand Up @@ -244,8 +250,8 @@ def compute_dmin(vert_emb, faces, points_emb, vertind, vert_sqnorms=None, points
(n1,) squared norm of each vertex
points_sqnorm :
(n2,) squared norm of each point
Returns
Returns
----------------------------
delta_min : np.ndarray
(m1,n2) delta_min for each face on the source shape.
Expand Down Expand Up @@ -289,8 +295,8 @@ def compute_all_dmin(vert_emb, faces, points_emb, vert_sqnorm=None, points_sqnor
(n1,) squared norm of each vertex
points_sqnorm :
(n2,) squared norm of each point
Returns
Returns
----------------------------
delta_min : np.ndarray
(m1,n2) delta_min for each face on the source shape.
Expand Down Expand Up @@ -446,11 +452,11 @@ def point_to_triangles_projection(triangles, point, return_bary=False):
-------*-------*------->s
|P0 \
reg4 | reg5 \ reg6
IGNORE
IGNORE
Most notations come from :
[1] "David Eberly, 'Distance Between Point and Triangle in 3D',
Geometric Tools, LLC, (1999)"
.. note::
Most notations come from :
[1] "David Eberly, 'Distance Between Point and Triangle in 3D', Geometric Tools, LLC, (1999)"
Parameters
-------------------------------
Expand Down Expand Up @@ -762,8 +768,8 @@ def pointTriangleDistance(TRI, P, return_bary=False):
r"""
Computes distance between a point and a triangle in a p-dimensional space
Based on the implementation in (modified to return barycentric coordinates of the projection):
https://gist.github.com/joshuashaffer/99d58e4ccbd37ca5d96e
.. note::
Based on the implementation in (modified to return barycentric coordinates of the projection): https://gist.github.com/joshuashaffer/99d58e4ccbd37ca5d96e
DESCRIPTION
Calculate the distance of a given point P from a triangle TRI.
Expand Down

0 comments on commit 9492ed9

Please sign in to comment.