mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
Increase code coverage of subdivide_meshes
Summary: Increase code coverage of subdivide_meshes and re-include it in code coverage test Reviewed By: bottler Differential Revision: D29097476 fbshipit-source-id: 3403ae38a90c4b53f24188eed11faae202a235b5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a0f79318c5
commit
780e231536
@@ -6,7 +6,7 @@ import torch.nn as nn
|
||||
from pytorch3d.structures import Meshes
|
||||
|
||||
|
||||
class SubdivideMeshes(nn.Module): # pragma: no cover
|
||||
class SubdivideMeshes(nn.Module):
|
||||
"""
|
||||
Subdivide a triangle mesh by adding a new vertex at the center of each edge
|
||||
and dividing each face into four new faces. Vectors of vertex
|
||||
@@ -396,7 +396,7 @@ def create_verts_index(verts_per_mesh, edges_per_mesh, device=None):
|
||||
return verts_idx
|
||||
|
||||
|
||||
def create_faces_index(faces_per_mesh, device=None): # pragma: no cover
|
||||
def create_faces_index(faces_per_mesh, device=None):
|
||||
"""
|
||||
Helper function to group the faces indices for each mesh. New faces are
|
||||
stacked at the end of the original faces tensor, so in order to have
|
||||
|
||||
Reference in New Issue
Block a user