From unknown Sat Aug 16 11:37:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57828 <57828@debbugs.gnu.org> To: bug#57828 <57828@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add discregrid. Reply-To: bug#57828 <57828@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:37:18 +0000 retitle 57828 [PATCH] gnu: Add discregrid. reassign 57828 guix-patches submitter 57828 "Paul A. Patience" severity 57828 normal tag 57828 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 15 09:16:56 2022 Received: (at submit) by debbugs.gnu.org; 15 Sep 2022 13:16:56 +0000 Received: from localhost ([127.0.0.1]:57482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYojg-000793-0N for submit@debbugs.gnu.org; Thu, 15 Sep 2022 09:16:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:56478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYojd-00078v-Mz for submit@debbugs.gnu.org; Thu, 15 Sep 2022 09:16:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYojd-0001Gi-Fd for guix-patches@gnu.org; Thu, 15 Sep 2022 09:16:53 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:47071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYojZ-0003Hn-MW for guix-patches@gnu.org; Thu, 15 Sep 2022 09:16:53 -0400 Date: Thu, 15 Sep 2022 13:16:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail3; t=1663247797; x=1663506997; bh=9q80soE4KrL4VTWxo0sWpvoU48xW6HJ6I0WvZw35ws8=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=QlpAIlrCFy/0UIRtsVp0RftA8NikHqWiyShECMyDdIF9B1EutHhQNPq3g9mSxMJBn Snj9Om38gGIYNANYkAOP5nlTAZiGFfhJ4uUBl4cbZDfWMgWq6oEhvqiCLHgnBHORSH m6VzLfAEKaEt2l7JZASDaZAasPXGOUr9OeZbayYKq9UGxpRvW313FKUQgekofTm/1d iXyeG3UW8+ft5MSK/uyjqWt+7VJo/CQEbVq9yjACcFKEcbOkLYspTVQKs4t3lTwhBy J9Watmz6fNKM/D9PjNx5E+Xdy1YsGx9zxW2+AhDppdmvu08jw9I2PBrgh5bWO1fZxE GFIyWSEBIybbg== To: guix-patches@gnu.org From: "Paul A. Patience" Subject: [PATCH] gnu: Add discregrid. Message-ID: <20220915131616.1130446-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=paul@apatience.com; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: "Paul A. Patience" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/graphics.scm (discregrid): New variable. --- gnu/packages/graphics.scm | 69 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index ef17f059e6..cb03cc36e5 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -2202,6 +2202,75 @@ (define-public azpainter ") (license license:gpl3+))) +(define-public discregrid + (let ((commit "4c27e1cc88be828c6ac5b8a05759ac7e01cf79e9") + (revision "0")) + (package + (name "discregrid") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/InteractiveComputerGraphics/Discre= grid") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01cwfpw19rc9k5glx9dhnqpihd0is28a9b53qvzp5kgjmdq2v1p0")) + (modules '((guix build utils))) + (snippet + #~(begin + (delete-file-recursively "extern/cxxopts") + (substitute* '("cmd/discrete_field_to_bitmap/main.cpp" + "cmd/generate_density_map/main.cpp" + "cmd/generate_sdf/main.cpp") + (("^#include ") + "#include ")))))) + (build-system cmake-build-system) + (outputs '("out" "bin")) + (arguments + (list #:tests? #f ; No tests + #:configure-flags + #~(list (string-append "-DCMAKE_INSTALL_BINDIR=3D" + #$output:bin "/bin") + ;; Bespoke version of BUILD_SHARED_LIBS. + "-DBUILD_AS_SHARED_LIBS=3DON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake + (lambda _ + (let ((port (open-file "cmd/CMakeLists.txt" "a"))) + (display "install(TARGETS + DiscreteFieldToBitmap + GenerateDensityMap + GenerateSDF) +" + port) + (close-port port))))))) + (inputs + (list cxxopts eigen)) + (home-page "https://github.com/InteractiveComputerGraphics/Discregri= d") + (synopsis "Discretize functions on regular grids") + (description "Discregrid is a C++ library for the parallel discretiz= ation +of (preferably smooth) functions on regular grids. It generates a (cubic) +polynomial discretization given a box-shaped domain, a grid resolution, an= d a +3D scalar field. The library can also serialize and deserialize the gener= ated +discrete grid, and compute and discretize the signed distance field +corresponding to a triangle mesh. The following programs are included wit= h +Discregrid: + +@itemize +@item @code{GenerateSDF}: Computes a discrete (cubic) signed distance fiel= d +from a triangle mesh in OBJ format. + +@item @code{DiscreteFieldToBitmap}: Generates an image in bitmap format of= a +two-dimensional slice of a previously computed discretization. + +@item @code{GenerateDensityMap}: Generates a density map from a previously +generated discrete signed distance field using the cubic spline kernel. +@end itemize") + (license license:expat)))) + (define-public mmg (package (name "mmg") -- 2.37.3 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 10:19:27 2022 Received: (at 57828-done) by debbugs.gnu.org; 6 Oct 2022 14:19:27 +0000 Received: from localhost ([127.0.0.1]:33049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogRih-0007CK-AQ for submit@debbugs.gnu.org; Thu, 06 Oct 2022 10:19:27 -0400 Received: from mira.cbaines.net ([212.71.252.8]:41514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogRif-0007CD-UK for 57828-done@debbugs.gnu.org; Thu, 06 Oct 2022 10:19:26 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:fc93:27fb:8412:c8b7]) by mira.cbaines.net (Postfix) with ESMTPSA id 76AE627BBE9; Thu, 6 Oct 2022 15:19:25 +0100 (BST) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d0cf7ad4; Thu, 6 Oct 2022 14:19:25 +0000 (UTC) References: <20220915131616.1130446-1-paul@apatience.com> User-agent: mu4e 1.8.9; emacs 28.1 From: Christopher Baines To: "Paul A. Patience" Subject: Re: [bug#57828] [PATCH] gnu: Add discregrid. Date: Thu, 06 Oct 2022 15:18:37 +0100 In-reply-to: <20220915131616.1130446-1-paul@apatience.com> Message-ID: <87lept2fwz.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 57828-done Cc: 57828-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain "Paul A. Patience" writes: > * gnu/packages/graphics.scm (discregrid): New variable. > --- > gnu/packages/graphics.scm | 69 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) Thanks Paul, good job especially with replacing the bundled cxxopts. I've pushed this to master as 5b42b64ea89564c58325d16d3d0f4a0a03ebae0f. Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmM+4+xfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xfrzg//YkJod8UANn0iiUho+6h2U7PD/5YpfHZT K/+qafOnetxv6+D3LFvQy1FzJ9OF7K0WClxdJka3lsprvRR3vgStQf2BHIqzNlu0 EjSSGRxfZ820OaLwd5/8c/PQhcCFWHdgZ/8B4+Hd3krvuE8Lb8LW5Kt+7hVA3h/1 DaoGiO4skSZzNrJrKQswKp0Xmw1tJ2Tf5SnHsJjtoX47CiXWBdA3v+sQTHujqot4 8jqTdjXVMI7nwTTmjZkVkA/8T8ncExtJBgoGS5iu8bqfXXCZsYghUHsnnPu7EoAi NLLzHx0k4rv/UOsFVgIIHAjjCoLC1iFe4/L3XNiJWqecrBCW3kkG7X1s8huNuPQw L6v2KWxQbtZ/wHl/+/LdoNXFYRFYJfccNgFXybUhV2zKKtG4HGkXIsTbQDtFaO9M 9dzbCq/HGCLVOexw2nsCzBTzD8KzG5d1Pj0qoE8LfW5dE7ovEsDBQ21Rg2YWYTTf Unhc8BiDRVPx3dFafTknSxVt34R67acPl0uFCYb1RfhBFnMsjzK0fq86NWP+ytQo /80CTpiWDuphelwG97S+VRkpXC1ez1aYuK7Zt40mg55DnK3ccZU+mM5pTbBECQ5I iZ4Hlsr9m3nOJFAz1optI5vHuaqhlSRwpxbEsLRXOm+sTCuYmhxerjWvXYqexjXS G7TMce9frKw= =pi1S -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 11:37:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator