From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6CHhLTukYWAyJQAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 11:56:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eAzbJzukYWCccwAA1q6Kng (envelope-from ) for ; Mon, 29 Mar 2021 09:56:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C9C5A1EC72 for ; Mon, 29 Mar 2021 11:56:10 +0200 (CEST) Received: from localhost ([::1]:52886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQocz-0002cJ-1w for larch@yhetil.org; Mon, 29 Mar 2021 05:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQocs-0002cB-Le for bug-guix@gnu.org; Mon, 29 Mar 2021 05:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQocs-00075S-D7 for bug-guix@gnu.org; Mon, 29 Mar 2021 05:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQocs-0007k9-9O for bug-guix@gnu.org; Mon, 29 Mar 2021 05:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47463: Blender: Voxel remesher failed to create mesh Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Mar 2021 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47463 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47463@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161701171929706 (code B ref -1); Mon, 29 Mar 2021 09:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2021 09:55:19 +0000 Received: from localhost ([127.0.0.1]:47875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQocA-0007j4-LZ for submit@debbugs.gnu.org; Mon, 29 Mar 2021 05:55:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:54476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQoc9-0007iu-06 for submit@debbugs.gnu.org; Mon, 29 Mar 2021 05:55:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQoc8-0002YZ-N3 for bug-guix@gnu.org; Mon, 29 Mar 2021 05:55:16 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:48323) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQoc3-0006Tx-Dv for bug-guix@gnu.org; Mon, 29 Mar 2021 05:55:16 -0400 Date: Mon, 29 Mar 2021 09:55:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1617011707; bh=wBIPUWEgJgdjtXMIZ762vUqEYayBQfWWoEUFUgDEjyE=; h=Date:To:From:Reply-To:Subject:From; b=XdQkpTFsftamC683GRG417SxDUnYwoh+V23IK0aHSxI1uYfCv6mGwXMKHLO6+oKZt rEpjCE3i//mABxX7SZbQhfCOAvEO68+glgzwVpQYSA+vGvkofaRJiL1G45VNoZbgbc brMU4U/SLuk7U0ZvnWv3hSeXWfhBG0O2yBsX2EtnQx1bG6J/DiDZoRP0WReAEYF3H8 jJFF+f5UuXoMgaNO9SORClAvW2Eewmm+o7IRjroByqQDEoktQJkKkUsYKkn+4Gt6DO oVXMG0yPT2SmO8I9vSpaob1yuKlvfmHY8xNlWqrOGWm0NJ7MshtKNJsU2M6q5rXm6O X5dPpKGs277wQ== From: Ekaitz Zarraga Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=ekaitz@elenq.tech; helo=mail2.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617011771; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wBIPUWEgJgdjtXMIZ762vUqEYayBQfWWoEUFUgDEjyE=; b=i2G+O4NyzAs+EnM6Pmj6kx8hCfWpQzYLRVbyZ8zEbLQCHOpKiI1cV9SL7X5snawh/Oey4q sk+kbNaR/ixfGY1mjChrHiMHS1V3Xt+AGKK9KjiT9gtQrvA6X0GDtQOtn0aC0eLovKp6UU SLaqSQBW6LHpABsIb+0zdCXAg3i1IaOanokwczhZYTGVe+oWJ7liWBmiMguOkBVztfnOzc qZZAFq3yWZFDcBkUmMtFZFELiRsX1rcpLhHRNI8BJNaK4fsaOijenw05eLkZe9NHHT1OWr vseMD364T7+mX59wbzBO/2OrzwAXhoDibU5kiNKBeloztm2e52QRDy9TgVqelQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617011771; a=rsa-sha256; cv=none; b=Mc1K0IakU8mPiqjwI1u3gQ+NuJNWhtK0Y6K87+UU0XEcWYnedvZHx8ruFtf1muaRM5ZOh8 +RDVu7b5BrCq7bmtxqYhI1SM07+Ie1v+k9RWKKQu+vl/bQetADJPGD/GZi25DFPnHcKJ+5 lKsIHIfjMKKV6eE4xSV/U0yFByXtGlG9oWklgKE6D4VpEN0BSb5ftC6uUNBvTdq8PbmR1j umJONMuBikcHY7autjMbRu/w61XwYZtqKqaSzwXRpDZRx8vq6rsjLQXXos6WcyBU/0ESJt lMx77/iiiv6pI5+TdjMT2oyVGJ+55GNHhBU8GDM3kGzh0AObXM+2L92tHtjg2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elenq.tech header.s=protonmail3 header.b=XdQkpTFs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=elenq.tech (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elenq.tech header.s=protonmail3 header.b=XdQkpTFs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=elenq.tech (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: C9C5A1EC72 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: agp94CmjFGUG Hi, I found an issue with blender. Our packaged version it's not able to run th= e 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 =3D BKE_mesh_remesh_voxel_to_mesh_nomain( mesh, mesh->remesh_voxel_size, mesh->remesh_voxel_adaptivity, isovalu= e); if (!new_mesh) { BKE_report(op->reports, RPT_ERROR, "Voxel remesher failed to create mes= h"); 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 =3D NULL; #ifdef WITH_OPENVDB struct OpenVDBLevelSet *level_set; struct OpenVDBTransform *xform =3D OpenVDBTransform_create(); OpenVDBTransform_create_linear_transform(xform, (double)voxel_size); level_set =3D BKE_mesh_remesh_voxel_ovdb_mesh_to_level_set_create(mesh, x= form); new_mesh =3D 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/