Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curvature measure function missing #100

Open
DRLing2021 opened this issue Oct 28, 2024 · 1 comment
Open

Curvature measure function missing #100

DRLing2021 opened this issue Oct 28, 2024 · 1 comment

Comments

@DRLing2021
Copy link

We are working on a project that uses point cloud curvatures to identify concave regions. On the githut site we found the following exmaples, but after we import the pcu, it seems that the method "mesh_mean_and_gaussian_curvatures" does not exist. Can you advise what is the right way to use pcu to estimate curvature today?

The sample referred is as :

`
import point_cloud_utils as pcu

v is a #v by 3 NumPy array of vertices

f is an #f by 3 NumPy array of face indexes into v

v, f = pcu.load_mesh_vfc("my_model.ply")

Compute principal min/max curvature magnitudes (k1, k2) and directions (d1, d2)

using the one ring of each vertex

k1, k2, d1, d2 = pcu.mesh_principal_curvatures(v, f)

Compute principal min/max curvature magnitudes (k1, k2) and directions (d1, d2)

using a radius. This method is much more robust but requires tuning the radius

k1, k2, d1, d2 = pcu.mesh_principal_curvatures(v, f, r=0.1)

Compute Mean (kh) and Gaussian (kg) curvatures using the one ring of each vertex

kh, kg = pcu.mesh_mean_and_gaussian_curvatures(v, f)

Compute Mean (kh) and Gaussian (kg) curvatures using using a radius.

This method is much more robust but requires tuning the radius

kh, kg = pcu.mesh_mean_and_gaussian_curvatures(v, f, r=0.1)

@DRLing2021
Copy link
Author

The error message is " module 'point_cloud_utils' has no attribute 'mesh_mean_and_gaussian_curvatures'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant