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

Gaussian Curvature #152

Open
rob-rb opened this issue May 13, 2021 · 1 comment
Open

Gaussian Curvature #152

rob-rb opened this issue May 13, 2021 · 1 comment

Comments

@rob-rb
Copy link

rob-rb commented May 13, 2021

Hi Nico,
I see that there is already an angles function in Trimesh. So basically there would be a fast method to calculate discrete gaussian curvature in the sense of 2*pi - Sum_over_angles_at_a_vertex. Could you give me some hint howto do that?

@nschloe
Copy link
Collaborator

nschloe commented May 13, 2021

You'll need to aggregate the angles for each point, numpy.add.at is your friend. npx's sum_at is even faster. (It uses bincount as a workhorse.)

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

2 participants