rename Parameters consistently and according to PEP8 naming conventions:
curvatures, vertex_neighbor_list, ?, threshold
rename Returns to something clearer (i don’t know what they mean), and rename function to something clearer:
extract_univariate_pits()?
def clouchoux(MCurv, GCurv):
this function is called only within clouchoux_pits(), so remove this function and replace “if clouchoux(MCurv[i], GCurv[i]):” with: “if (MCurv > 0.2) and (GCurv < 0):” and include 0.2 as a Parameter.
def clouchoux_pits(Vertexes, MCurv, GCurv):
rename Parameters consistently and according to PEP8 naming conventions:
remove extraneous Parameters and code, rename Parameters consistently and according to PEP8 naming conventions, and rename function to something clearer:
extract_basins_pits()?
libfundi.py
All of the general comments for libbasin.py above apply.
Re: Prim and mst -- how do these differ from the x/min_span_tree.py code?
Minimum spanning tree is general-purpose enough that it should be in utils/paths.py
Best to remove the random from downsample() -- we want everything to be replicable.
General
libbasin.py
you can replace this with mesh.py’s new find_adjacent_faces()
you can replace this with mesh.py’s find_neighbors() or find_neighbors_vertex()
i don’t understand what this function does. rename Parameters consistently and according to PEP8 naming conventions:
rename function to something clearer:
rename function to something clearer:
rename Parameters consistently and according to PEP8 naming conventions:
rename Parameters consistently and according to PEP8 naming conventions:
rename Returns:
rename function to something clearer:
superfluous function -- remove
too little to warrant a function; remove and include line of code where the function is called
rename Parameters consistently and according to PEP8 naming conventions:
rename Returns:
rename function to something clearer:
the following appends vertices, not faces, so what is going on?:
FcMbr = [] # members that are faces of this connected component
superfluous function -- remove
too little to warrant a function; remove and include line of code where the function is called
rename Parameters consistently and according to PEP8 naming conventions:
rename Returns to something clearer (i don’t know what they mean), and rename function to something clearer:
this function is called only within clouchoux_pits(), so remove this function and replace “if clouchoux(MCurv[i], GCurv[i]):” with: “if (MCurv > 0.2) and (GCurv < 0):” and include 0.2 as a Parameter.
rename Parameters consistently and according to PEP8 naming conventions:
rename function to something clearer:
remove extraneous Parameters and code, rename Parameters consistently and according to PEP8 naming conventions, and rename function to something clearer:
libfundi.py
All of the general comments for libbasin.py above apply.
Re: Prim and mst -- how do these differ from the x/min_span_tree.py code?
Minimum spanning tree is general-purpose enough that it should be in utils/paths.py
Best to remove the random from downsample() -- we want everything to be replicable.