Skip to content

Remove inner mesh without refiner #55

@jjjkkyz

Description

@jjjkkyz

Hi, I notice that you use a refiner network to remove the inner mesh introduing by sparse to dense conversion.
I think a better way to sovle it is using the mask attribute in scikit-image with a little modification in both repos.

Here I show a result of my current version with remove_interior=False.

Image

In your repo (ss_vae.py line 122):

  mask[sparse_index_i[..., 0], sparse_index_i[..., 1], sparse_index_i[..., 2]] = True
  vertices, faces, _, _ = measure.marching_cubes(
      sdf.numpy(),
      mc_threshold,
      method="lewiner",
      mask = mask.numpy()
  )

In scikit-image repo (skimage/measure/_marching_cubes_lewiner_cy.pyx line 983)

if no_mask or (mask[z_st, y_st, x_st] and mask[z, y_st, x_st] and mask[z_st, y, x_st] and mask[z_st, y_st, x] and mask[z, y, x_st] and mask[z, y_st, x] and mask[z_st, y, x] and mask[z, y, x]):

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