spring-boot-actuator-demo icon indicating copy to clipboard operation
spring-boot-actuator-demo copied to clipboard

Gaussian Curvature

Open rob-rb opened this issue 3 years ago • 1 comments

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?

rob-rb avatar May 13 '21 07:05 rob-rb

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.)

nschloe avatar May 13 '21 16:05 nschloe