unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47463: Blender: Voxel remesher failed to create mesh
@ 2021-03-29  9:55 Ekaitz Zarraga
  2021-04-21 16:24 ` Ekaitz Zarraga
  2021-04-21 17:30 ` bug#47463: Fixed by 47467 Ekaitz Zarraga
  0 siblings, 2 replies; 4+ messages in thread
From: Ekaitz Zarraga @ 2021-03-29  9:55 UTC (permalink / raw)
  To: 47463


Hi,

I found an issue with blender. Our packaged version it's not able to run the
Voxel Remesher, I think because OpenVBD[^1] is not included in our package.

Every time I use the Voxel Remesh tool it says:
"Voxel remesher failed to create mesh"

But the Quadriflow remesher works fine.

I searched a little bit in the code and I found the following:


Here is where the error message appears (object_remesh.c:147):

``` c
  new_mesh = BKE_mesh_remesh_voxel_to_mesh_nomain(
      mesh, mesh->remesh_voxel_size, mesh->remesh_voxel_adaptivity, isovalue);

  if (!new_mesh) {
    BKE_report(op->reports, RPT_ERROR, "Voxel remesher failed to create mesh");
    return OPERATOR_CANCELLED;
  }
```

So it means the `new_mesh` is not created. Checking the definition of the
`BKE_mesh_remesh_voxel_to_mesh_nomain` function we get this
(mesh_remesh_voxel.c:296):


``` c
Mesh *BKE_mesh_remesh_voxel_to_mesh_nomain(Mesh *mesh,
                                           float voxel_size,
                                           float adaptivity,
                                           float isovalue)
{
  Mesh *new_mesh = NULL;
#ifdef WITH_OPENVDB
  struct OpenVDBLevelSet *level_set;
  struct OpenVDBTransform *xform = OpenVDBTransform_create();
  OpenVDBTransform_create_linear_transform(xform, (double)voxel_size);
  level_set = BKE_mesh_remesh_voxel_ovdb_mesh_to_level_set_create(mesh, xform);
  new_mesh = BKE_mesh_remesh_voxel_ovdb_volume_to_mesh_nomain(
      level_set, (double)isovalue, (double)adaptivity, false);
  OpenVDBLevelSet_free(level_set);
  OpenVDBTransform_free(xform);
#else
  UNUSED_VARS(mesh, voxel_size, adaptivity, isovalue);
#endif
  return new_mesh;
}
```

I also checked blender package and I doesn't look like it includes OpenVDB, so
this makes sense.

As this is a powerful tool and enables much better workflows for sculpting I
think we should add it.

I'll try to add it myself, if you are ok with that.

Best,

Ekaitz


[^1]: https://www.openvdb.org/





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47463: Blender: Voxel remesher failed to create mesh
  2021-03-29  9:55 bug#47463: Blender: Voxel remesher failed to create mesh Ekaitz Zarraga
@ 2021-04-21 16:24 ` Ekaitz Zarraga
  2021-04-21 16:31   ` Leo Famulari
  2021-04-21 17:30 ` bug#47463: Fixed by 47467 Ekaitz Zarraga
  1 sibling, 1 reply; 4+ messages in thread
From: Ekaitz Zarraga @ 2021-04-21 16:24 UTC (permalink / raw)
  To: 47463@debbugs.gnu.org, Leo Famulari

This issue can be closed since: 47467 is merged




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47463: Blender: Voxel remesher failed to create mesh
  2021-04-21 16:24 ` Ekaitz Zarraga
@ 2021-04-21 16:31   ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2021-04-21 16:31 UTC (permalink / raw)
  To: Ekaitz Zarraga; +Cc: 47463@debbugs.gnu.org

On Wed, Apr 21, 2021 at 04:24:18PM +0000, Ekaitz Zarraga wrote:
> This issue can be closed since: 47467 is merged

Feel free to close it. 

Bugs are closed by sending mail to <BUGNUMBER-done@debbugs.gnu.org>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47463: Fixed by 47467
  2021-03-29  9:55 bug#47463: Blender: Voxel remesher failed to create mesh Ekaitz Zarraga
  2021-04-21 16:24 ` Ekaitz Zarraga
@ 2021-04-21 17:30 ` Ekaitz Zarraga
  1 sibling, 0 replies; 4+ messages in thread
From: Ekaitz Zarraga @ 2021-04-21 17:30 UTC (permalink / raw)
  To: 47463-done@debbugs.gnu.org

Empty Message




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-21 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  9:55 bug#47463: Blender: Voxel remesher failed to create mesh Ekaitz Zarraga
2021-04-21 16:24 ` Ekaitz Zarraga
2021-04-21 16:31   ` Leo Famulari
2021-04-21 17:30 ` bug#47463: Fixed by 47467 Ekaitz Zarraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).