MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/H2-Mapping / linearize_id

Method linearize_id

mapping/src/utils/mesh_util.py:17–18  ·  view source on GitHub ↗
(self, xyz, n_xyz)

Source from the content-addressed store, hash-verified

15
16 @torch.no_grad()
17 def linearize_id(self, xyz, n_xyz):
18 return xyz[:, 2] + n_xyz[-1] * xyz[:, 1] + (n_xyz[-1] * n_xyz[-2]) * xyz[:, 0]
19
20 @torch.no_grad()
21 def downsample_points(self, points, voxel_size=0.01):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected