spring-boot-actuator-demo
spring-boot-actuator-demo copied to clipboard
Gaussian Curvature
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?
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.)