science/py-sdf 0.1_6 FreeBSD
Simple SDF mesh generation in Python
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- science, cad, python
Description
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 <https://pypi.org/project/SDF/>.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | science/py-sdf | 0.1_6 |
| DragonFly | science/py-sdf | 0.1_3 |
Install
Binary package:
pkg install py312-sdf
From the ports tree:
cd /usr/ports/science/py-sdf/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-sdf>0:science/py-sdf
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | 0.1_6 | - | 0.1_3 | 0.1_6 |
| FreeBSD:14:quarterly | - | 0.1_6 | n/a | 0.1_3 | 0.1_6 |
| FreeBSD:15:latest | - | 0.1_6 | n/a | 0.1_3 | 0.1_3 |
| FreeBSD:15:quarterly | - | 0.1_6 | n/a | n/a | n/a |
| FreeBSD:16:latest | - | 0.1_6 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 6
${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy${PYTHON_PKGNAMEPREFIX}scipy>0: science/py-scipy${PYTHON_PKGNAMEPREFIX}meshio>0: science/py-meshio${PYTHON_PKGNAMEPREFIX}pillow>0: graphics/py-pillow${PYTHON_PKGNAMEPREFIX}matplotlib>0: math/py-matplotlib${PYTHON_PKGNAMEPREFIX}scikit-image>0: graphics/py-scikit-image
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 198
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/minizip
- archivers/py-brotli
- archivers/py-zopfli
- archivers/zopfli
- archivers/zstd
- audio/lame
- audio/libogg
- audio/libvorbis
- audio/mpg123
- audio/opus
- converters/fribidi
- converters/libiconv
- databases/postgresql18-client
- databases/py-sqlite3
- databases/sfcgal
- databases/spatialite
- databases/sqlite3
- devel/binutils
- devel/boost-libs
- devel/gettext-runtime
- devel/glib20
- devel/icu
- devel/json-c
- devel/libdatrie
- devel/libedit
- devel/libffi
- devel/libinotify
- devel/libltdl
- devel/librttopo
- devel/libthai
- devel/libunistring
- devel/npth
- devel/nspr
- devel/pcre2
- devel/pkgconf
- devel/py-cftime
- devel/py-cycler
- devel/py-lazy_loader
- devel/py-lxml
- devel/py-olefile
- devel/py-packaging
- devel/py-pyparsing
- devel/py-python-dateutil
- devel/py-pytz
- devel/py-pyyaml
- devel/py-six
- devel/py-tzdata
- devel/py-unicodedata2
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- graphics/cairo
- graphics/freeimage
- graphics/gd
- graphics/gdal
- graphics/gdk-pixbuf2
- graphics/geos
- graphics/giflib
- graphics/graphite2
- graphics/graphviz
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/lerc
- graphics/libavif
- graphics/libgeotiff
- graphics/libimagequant
- graphics/libyuv
- graphics/openjpeg
- graphics/png
- graphics/poppler
- graphics/poppler-data
- graphics/proj
- graphics/py-gdal
- graphics/py-imageio
- graphics/py-imageio-ffmpeg
- graphics/py-pillow
- graphics/py-pydot
- graphics/py-pygraphviz
- graphics/py-scikit-image
- graphics/py-tifffile
- graphics/tiff
- graphics/webp
- lang/cython
- lang/gcc14
- lang/python312
- lang/python315
- lang/tcl86
- math/gmp
- math/libtommath
- math/mpc
- math/mpdecimal
- math/mpfr
- math/openblas
- math/py-bottleneck
The first 100 are listed.
No port depends on this one.
Configuration
Options name: science_sdf
| Option | Default | Description |
|---|---|---|
| EXAMPLES | off | Build and/or install examples |
- USES
- python
- Service scripts
- none
Files
pkg-plist 30
- %%PYTHON_SITELIBDIR%%/sdf/__init__.py
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/__init__.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/__init__.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/d2.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/d2.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/d3.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/d3.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/dn.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/dn.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/ease.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/ease.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/mesh.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/mesh.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/progress.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/progress.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/stl.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/stl.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/text.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/text.cpython-.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/util.cpython-.opt-1.pyc
- %%PYTHON_SITELIBDIR%%/sdf/__pycache__/util.cpython-.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
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| fogleman-sdf-0.1-cee1dac_GH0.tar.gz | 8.269639e+06 | 1a78bd4cc73aa126cad938eddabcd459768c2d71c853fc30c20af3f810695143 |
Commit history 0
No commits in the history this site was built from.