From nobody Sat Nov 19 16:42:30 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NDzw713kRz4hHRg; Sat, 19 Nov 2022 16:42:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NDzw70VMdz3wk1; Sat, 19 Nov 2022 16:42:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668876151; h=from:from: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; bh=4AuOA5ZphcPkC/jxmE1TUNgvSg1D2rk+K0iBmdn2rus=; b=n8bpGYrJEHAaSgtJHf6LuphtYCcZsmnqEMbc8sAWogeKAjpkyAY3GUaMM+Sd4+lTjvYaX+ 9uittwhaid8no9yB3J0UoZTrySj+36Wh0lDQt+etRWnxLKeEJFBjV8zgmEKD2GalMms1oF AzSwfyhHtGbWhjp/iKmywXnU2fKG+I1bWWmBU5R/nznxVCABuURsnSl4BScYv+VXOaPkMM lOQDrhSwUh1KZigERBilwGeWJovwSbU0mMnSIoiJDQmS40fLWoTwW+X2T3LIlKR6oTfTTs +oz7xYar6Cdlds5009tmRXyOWmoAhLBHg7Yo8IVw4HGpgX/5XY9viSZBas+vow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668876151; h=from:from: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; bh=4AuOA5ZphcPkC/jxmE1TUNgvSg1D2rk+K0iBmdn2rus=; b=PLnktiDXDi9YLCIZft4iPwAwl5gZG7qxkyfgYthdnUph//y3nyRl/ViaRFVaNCChutuPaT 5wB6og2cD2OMC/8faY21oIghPhGi73YLkrPPnE0v8j0jVCptJKbPP5YE/d8mzOjw9/ApYD gzWFNBwXkRtsImbRI13GwTv7i9W1JrbAd9kHzNBVcDMZ3szw0t3hHJOfN/Y//hhv0P0Blh FY2jmkQuAx6vMxLF1bl0/Vh06cgdI50kxQxMa8sy+JRNvL+/d8yeWxMoebEzcnEo7wHsWW 5qmEUYMkzIznN3MDXzJqZjmQRIqTNtNZQ77hzRyYHy5MNEVPdD8PoOsiKlbbVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668876151; a=rsa-sha256; cv=none; b=fQQJ+dCO/9xF9PKVWrywNZlcjuvesbAsPJ8OdTpPwhOik4zwN9ADR1rxqkLHs7OJadHOWn yR+ANQdZsl1qFFZpm3SjvAF7zELXolewOtu7OySKmcnFNVdm+JYQewC4J3VAGxYvQYdKSI AVLc5hQY9qtCyxcGrhuwVo7obKNIJ8coANHjR6oCWvPF92sR8KBWdbhpIMVSnhdba9mdF1 jQaR/9fzw6Q9sKgkrgd+wM7rkXPPXE4Jzs77XgFROkvYg09lCxEwJ8dk5rbbi1NBElrvcd CLk7D6EtV4Tue+/KP9fbEu81fKJC+KWWZQMbv5cEU9LcFTIUaevafRmfy0wiaw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NDzw668Sszsk3; Sat, 19 Nov 2022 16:42:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AJGgUdE038746; Sat, 19 Nov 2022 16:42:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AJGgUgZ038745; Sat, 19 Nov 2022 16:42:30 GMT (envelope-from git) Date: Sat, 19 Nov 2022 16:42:30 GMT Message-Id: <202211191642.2AJGgUgZ038745@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 68756d9a564b - main - science/py-sdf: add a simple SDF mesh generator List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 68756d9a564b08fcffb2da9b2a056ed6df6d97a0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=68756d9a564b08fcffb2da9b2a056ed6df6d97a0 commit 68756d9a564b08fcffb2da9b2a056ed6df6d97a0 Author: Thierry Thomas AuthorDate: 2022-11-19 16:34:16 +0000 Commit: Thierry Thomas CommitDate: 2022-11-19 16:35:41 +0000 science/py-sdf: add a simple SDF mesh generator --- science/Makefile | 1 + science/py-sdf/Makefile | 36 ++++++++++++++++++++++++++++++++++++ science/py-sdf/distinfo | 3 +++ science/py-sdf/pkg-descr | 12 ++++++++++++ science/py-sdf/pkg-plist | 30 ++++++++++++++++++++++++++++++ 5 files changed, 82 insertions(+) diff --git a/science/Makefile b/science/Makefile index 8101c80249e6..4b5cb25529d7 100644 --- a/science/Makefile +++ b/science/Makefile @@ -400,6 +400,7 @@ SUBDIR += py-scimath SUBDIR += py-scipy SUBDIR += py-scoria + SUBDIR += py-sdf SUBDIR += py-segregation SUBDIR += py-segyio SUBDIR += py-sklearn-pandas diff --git a/science/py-sdf/Makefile b/science/py-sdf/Makefile new file mode 100644 index 000000000000..b9b13cbe5d7a --- /dev/null +++ b/science/py-sdf/Makefile @@ -0,0 +1,36 @@ +PORTNAME= sdf +PORTVERSION= 0.1 +CATEGORIES= science cad python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Simple SDF mesh generation in Python +WWW= https://github.com/nschloe/meshio + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}meshio>0:science/py-meshio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-image>0:graphics/py-scikit-image@${PY_FLAVOR} + +USE_GITHUB= yes +GH_ACCOUNT= fogleman +GH_TAGNAME= cee1dac # No release yet + +USES= python:3.7+ +USE_PYTHON= distutils + +OPTIONS_DEFINE= EXAMPLES +PORTEXAMPLES= * + +NO_ARCH= yes + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}) + +.include diff --git a/science/py-sdf/distinfo b/science/py-sdf/distinfo new file mode 100644 index 000000000000..783bed9819db --- /dev/null +++ b/science/py-sdf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1668871567 +SHA256 (fogleman-sdf-0.1-cee1dac_GH0.tar.gz) = 1a78bd4cc73aa126cad938eddabcd459768c2d71c853fc30c20af3f810695143 +SIZE (fogleman-sdf-0.1-cee1dac_GH0.tar.gz) = 8269639 diff --git a/science/py-sdf/pkg-descr b/science/py-sdf/pkg-descr new file mode 100644 index 000000000000..e2f05eff66e7 --- /dev/null +++ b/science/py-sdf/pkg-descr @@ -0,0 +1,12 @@ +Generate 3D meshes based on SDFs (signed distance functions) with a dirt simple +Python API. + +sdf natively writes binary STL files. For other formats, meshio is used (based +on your output file extension). This adds support for over 20 different 3D file +formats, including OBJ, PLY, VTK, and many more. + +You could use cad/meshlab or cad/gmsh to view the mesh. + +Remark: there exists also another Python program named SDF (in uppercase), +Scientific Data Format, but this is a different one: see +. diff --git a/science/py-sdf/pkg-plist b/science/py-sdf/pkg-plist new file mode 100644 index 000000000000..d84066eb9632 --- /dev/null +++ b/science/py-sdf/pkg-plist @@ -0,0 +1,30 @@ +%%PYTHON_SITELIBDIR%%/sdf/__init__.py +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/d2.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/d2.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/d3.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/d3.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/dn.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/dn.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/ease.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/ease.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/mesh.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/mesh.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/progress.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/progress.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/stl.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/stl.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/text.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/text.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/util.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/sdf/__pycache__/util.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/sdf/d2.py +%%PYTHON_SITELIBDIR%%/sdf/d3.py +%%PYTHON_SITELIBDIR%%/sdf/dn.py +%%PYTHON_SITELIBDIR%%/sdf/ease.py +%%PYTHON_SITELIBDIR%%/sdf/mesh.py +%%PYTHON_SITELIBDIR%%/sdf/progress.py +%%PYTHON_SITELIBDIR%%/sdf/stl.py +%%PYTHON_SITELIBDIR%%/sdf/text.py +%%PYTHON_SITELIBDIR%%/sdf/util.py