From patchwork Tue Nov 1 20:22:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44239 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4632627BBEB; Tue, 1 Nov 2022 20:23:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2134327BBE9 for ; Tue, 1 Nov 2022 20:23:14 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opxmp-0000jD-V3; Tue, 01 Nov 2022 16:23:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opxmp-0000j5-2O for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opxmo-0001ql-RF for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opxmo-0000QP-Mr for guix-patches@gnu.org; Tue, 01 Nov 2022 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58952] [PATCH 2/3] gnu: Add vcglib Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58952 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58952@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 58952-submit@debbugs.gnu.org id=B58952.16673341811601 (code B ref 58952); Tue, 01 Nov 2022 20:23:02 +0000 Received: (at 58952) by debbugs.gnu.org; 1 Nov 2022 20:23:01 +0000 Received: from localhost ([127.0.0.1]:44311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmm-0000PZ-Gl for submit@debbugs.gnu.org; Tue, 01 Nov 2022 16:23:01 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opxmj-0000P1-KT for 58952@debbugs.gnu.org; Tue, 01 Nov 2022 16:22:58 -0400 Received: by mail-wr1-f51.google.com with SMTP id l14so21704961wrw.2 for <58952@debbugs.gnu.org>; Tue, 01 Nov 2022 13:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=knXW075fLDGk14AzpR65jMBvSyrDrxdqpGKTLSuh/74=; b=kXHHTdPEqcnCu2MoDZwyQ4IQ5YLpkGoapkiOKXPaZehHyxZq1bku/GlSTe2EkpnAsC 5vmv7SZReSCz50NEjnBcJdzA081DhQhZs+VOCBhns6PCzrQFe52yEZR4SoBbLsGCv9hA A/+mYJL5dBH3xboQaFj9i4fQxHTpxB4uOM84OBl889H/fyMfGpJuv/mN2oLa88j36vSG fdk+CstpgRzzhjtbAIesdxp0CgehQIpff57Ubvj82/vKVOINS5W7Wd19ZtlQCjyVeoYI zDWEcstvqkpyUdHc/XgLN5JHH8QDmHivYo40APB39jLcUvyo5JkKdG12n/jJvnE5qb7R k4ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=knXW075fLDGk14AzpR65jMBvSyrDrxdqpGKTLSuh/74=; b=fiMrksD+iaN5fGAEMPxMulaQSfWTvqgPx2Z+65zxE2YanBsrvLm06rT8VhGTN/gYJi XJFu4NOfCfNMZ7duBTJiWOuNhtAIYvwS9y2MVeBEE1dUl1ASPTC8MbP1Z9blN4JdD4iy F/vosHM4jdYIwwKXKdZuKDUDXQjsI6M+D/4O9P+FIUwox/kDk5dUde0IQReb5KK8ncTt vDMpmOANFE64I9AnHqzZ+WsU3hIDvW+ayLMdrUCuqiLAVqkE5nAhtHbZwiobeMlp/Li4 0hvbJszjNwqlzZTmkmZW4mddg7oIK06pkO+QzoqQ7JuU4Br8PbLObMNzvOru8yyknZFb YM6Q== X-Gm-Message-State: ACrzQf1ZtE1v7XTJi1UD3dC/DZTYP8HZCzDwxf7WR8LQlHJadiMDipxT b/tNW1VSoxoJ3YzMyh9bJiIcXw5MOa0= X-Google-Smtp-Source: AMsMyM6gYs0yq18ddmJ/Q6baPg7jQpOLmRLtg0oClau+jDfaWIFY/lU4yhMhvCp3tyOTm1xCMLF4UA== X-Received: by 2002:adf:e3cf:0:b0:22e:54da:a4f1 with SMTP id k15-20020adfe3cf000000b0022e54daa4f1mr137883wrm.637.1667334171978; Tue, 01 Nov 2022 13:22:51 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm12301474wmq.38.2022.11.01.13.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:22:51 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 1 Nov 2022 20:22:45 +0000 Message-Id: <20221101202246.17659-2-sharlatanus@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101202246.17659-1-sharlatanus@gmail.com> References: <20221101202246.17659-1-sharlatanus@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (vcglib): New variable. --- gnu/packages/engineering.scm | 65 ++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 644c0f8ef9..4f705d4b9b 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2741,6 +2741,71 @@ (define-public lib3ds export filters.") (license license:lgpl2.1+))) +(define-public vcglib + (package + (name "vcglib") + (version "2022.02") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cnr-isti-vclab/vcglib") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w9r22wg7452x4xald4frsq4vc03vbxf3qq3d9a2zl04b1bdna2w")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;Has no tests + #:configure-flags + ;; Make sure we still can build examples which shows nothing major + ;; broken. + #~(list (string-append "-DVCG_BUILD_EXAMPLES=ON") + (string-append "-DEIGEN3_INCLUDE_DIR=" + #$(this-package-input "eigen") + "/include/eigen3")) + #:phases #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out + "/include/vcglib")) + (wrap (string-append include "/wrap/")) + (vcg (string-append include "/vcg"))) + (for-each (lambda (dir) + (mkdir-p dir)) + (list bin include wrap vcg)) + (install-file "apps/metro/metro" bin) + (install-file "../source/CMakeLists.txt" include) + (copy-recursively "../source/wrap/" wrap) + (copy-recursively "../source/vcg/" vcg))))))) + (propagated-inputs (list eigen)) + (synopsis "C++ library to work with triangle meshes") + (home-page "http://vcglib.net/") + (description + "This package provides @acronym{VCGlib, Visualization and Computer Graphics +Library} The VCG library is tailored to mostly manage triangular meshes: offers +many capabilities for processing meshes, such as: + +@itemize + +@item high quality quadric-error edge-collapse based simplfication +@item efficient spatial query structures (uniform grids, hashed grids, kdtree, +etc) +@item advanced smoothing and fairing algorithms +@item computation of curvature +@item optimization of texture coordinates +@item Hausdorff distance computation +@item geodesic paths +@item mesh repairing capabilities +@item isosurface extraction and advancing front meshing algorithms +@item Poisson Disk sampling and other tools to sample point distributions over +meshes +@item subdivision surfaces +@end itemize") + (license license:gpl3+))) + (define-public meshlab (package (name "meshlab")