@@ -41,10 +41,10 @@ def forward(ctx, points, points_first_idx, tris, tris_first_idx, max_points):
41
41
in the corresponding example in the batch
42
42
idxs: LongTensor of shape `(P,)` indicating the closest triangular face
43
43
in the corresponindg example in the batch.
44
-
44
+
45
45
`dists[p] = d(points[p], tris[idxs[p], 0], tris[idxs[p], 1], tris[idxs[p], 2])`
46
46
where `d(u, v0, v1, v2)` is the distance of point `u` from the trianfular face `(v0, v1, v2)`
47
-
47
+
48
48
"""
49
49
dists , idxs = _C .point_face_dist_forward (
50
50
points , points_first_idx , tris , tris_first_idx , max_points
@@ -91,7 +91,7 @@ def forward(ctx, points, points_first_idx, tris, tris_first_idx, max_tris):
91
91
corresponding example in the batch
92
92
idxs: LongTensor of shape `(T,)` indicating the closest point in the
93
93
corresponindg example in the batch.
94
-
94
+
95
95
`dists[t] = d(points[idxs[t]], tris[t, 0], tris[t, 1], tris[t, 2])`,
96
96
where `d(u, v0, v1, v2)` is the distance of point `u` from the triangular
97
97
face `(v0, v1, v2)`.
@@ -141,7 +141,7 @@ def forward(ctx, points, points_first_idx, segms, segms_first_idx, max_points):
141
141
corresponding example in the batch
142
142
idxs: LongTensor of shape `(P,)` indicating the closest edge in the
143
143
corresponindg example in the batch.
144
-
144
+
145
145
`dists[p] = d(points[p], segms[idxs[p], 0], segms[idxs[p], 1])`,
146
146
where `d(u, v0, v1)` is the distance of point `u` from the edge segment
147
147
spanned by `(v0, v1)`.
@@ -191,7 +191,7 @@ def forward(ctx, points, points_first_idx, segms, segms_first_idx, max_segms):
191
191
corresponding example in the batch
192
192
idxs: LongTensor of shape `(S,)` indicating the closest point in the
193
193
corresponindg example in the batch.
194
-
194
+
195
195
`dists[s] = d(points[idxs[s]], edges[s, 0], edges[s, 1])`,
196
196
where `d(u, v0, v1)` is the distance of point `u` from the segment
197
197
spanned by `(v0, v1)`.
@@ -226,7 +226,7 @@ def point_mesh_edge_distance(meshes: Meshes, pcls: Pointclouds):
226
226
to the closest edge segment in mesh and averages across all points in pcl
227
227
`edge_point(mesh, pcl)`: Computes the squared distance of each edge segment in mesh
228
228
to the closest point in pcl and averages across all edges in mesh.
229
-
229
+
230
230
The above distance functions are applied for all `(mesh, pcl)` pairs in the batch and
231
231
then averaged across the batch.
232
232
@@ -293,7 +293,7 @@ def point_mesh_face_distance(meshes: Meshes, pcls: Pointclouds):
293
293
to the closest triangular face in mesh and averages across all points in pcl
294
294
`face_point(mesh, pcl)`: Computes the squared distance of each triangular face in mesh
295
295
to the closest point in pcl and averages across all faces in mesh.
296
-
296
+
297
297
The above distance functions are applied for all `(mesh, pcl)` pairs in the batch and
298
298
then averaged across the batch.
299
299
0 commit comments