MCPcopy Create free account
hub / github.com/DeepGraphLearning/S3F / compute_curvatures

Function compute_curvatures

s3f/surface.py:92–102  ·  view source on GitHub ↗
(xyz, normals, batch, curvature_scales)

Source from the content-addressed store, hash-verified

90
91
92def compute_curvatures(xyz, normals, batch, curvature_scales):
93 cur = curvatures(
94 vertices=xyz,
95 triangles=None,
96 normals=normals,
97 scales=curvature_scales,
98 batch=batch,
99 reg=1e-10,
100 )
101 cur[torch.isnan(cur)] = 0.
102 return cur
103
104
105# On-the-fly generation of the surfaces ========================================

Callers

nothing calls this directly

Calls 1

curvaturesFunction · 0.85

Tested by

no test coverage detected