Skip to content

pytorch3d.ops.marching_cubes.marching_cubes return all -1 vertices #1641

Closed
@wshinigamic

Description

@wshinigamic

🐛 Bugs / Unexpected behaviors

All vertices returned by pytorch3d.ops.marching_cubes.marching_cubes() have coordinates -1.

Instructions To Reproduce the Issue:

Code:

from pytorch3d.ops.marching_cubes import marching_cubes
from skimage.draw import ellipsoid

ellip_base = ellipsoid(50, 60, 16, levelset=True)
verts, faces = marching_cubes(torch.from_numpy(ellip_base).unsqueeze(0).float(), 0)
print(verts[0])

Output:

tensor([[-1., -1., -1.],
        [-1., -1., -1.],
        [-1., -1., -1.],
        ...,
        [-1., -1., -1.],
        [-1., -1., -1.],
        [-1., -1., -1.]])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions