MCPcopy
hub / github.com/tum-pbs/PhiFlow / thickness_at

Method thickness_at

phi/geom/_spline_solid.py:269–272  ·  view source on GitHub ↗
(self, uv: Tensor)

Source from the content-addressed store, hash-verified

267 return sdf, delta, normal, offset, face_index, on_skeleton, uv, unbounded_uv, tangents, normal_c, thickness, is_edge, is_corner
268
269 def thickness_at(self, uv: Tensor):
270 if not spatial(self.thickness):
271 return self.thickness
272 return math.grid_sample(self.thickness, uv, ZERO_GRADIENT)
273
274 def center_at(self, uv: Tensor):
275 return math.grid_sample(self.points, uv, ZERO_GRADIENT)

Callers 3

build_surface_meshMethod · 0.95
_closest_surfaceMethod · 0.95
transform_with_splineFunction · 0.80

Calls 1

grid_sampleMethod · 0.80

Tested by

no test coverage detected