Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.0.4 instead.
Reason given by maintainers: Accidentially released from a forked repo

DOI Build Status

python-embree

This library is a thin wrapper around Embree 3.

As much as possible, it tries to emulate the C API usage. The main point of this is to avoid creating a new API which would obfuscate the usage of the C API. Ideally, it should be easy to read the Embree documentation or examples, and translate things straightforwardly to equivalent Python code.

A secondary goal is to provide easy interoperability with numpy.

NOTE: very little of the library is wrapped so far, but this library is being developed in a way that should make it as easy as possible to wrap more functionality as necessary. If you find that a function that you'd like to use isn't wrapped, please create an issue or feel free to wrap it on your own and submit a pull request.

Installation

Windows

If you install Embree using the MSI from Embree's website, the Embree binaries, headers, and libraries will all be installed to C:\Program Files\Intel\Embree3 by default.

As an example, to compile using MSYS2 from the MinGW 64-bit console, after cding to the root directory of this repository, it should be possible to run:

$ python setup.py build_ext -I/c/Program\ Files/Intel/Embree3/include -L /c/Program\ Files/Intel/Embree3/lib
$ python setup.py install

to successfully compile and install python-embree.

Tips and tricks

Retain and release

The underlying Embree library uses reference counting to properly clean up resources used by the different types it provides (RTCDevice, RTCScene, etc.). This means that each type exposes a pair of "retain" and "release" functions: e.g., rtcRetainDevice, and rtcReleaseDevice. How to use these correctly is spelled out in the Embree API docs and the many Embree tutorials. Please consult these when using python-embree. The classes providing a lightweight object-oriented wrapper around Embree's types do not call any retain or release functions behind the scenes: this is the user's responsibility.

Parallelism

Using multiprocessing for concurrency in Python requires objects that are put into queues to be serialized using pickle. Unfortunately, it is not currently possible to serialize the Embree data structures (see the Embree repository's issues #137 and #238), and there do not appear to be plans to support this feature. The rationale for not supporting this feature is that building the Embree BVH from scratch is usually faster than reading the equivalent amount of data from disk.

This means that you will not be able to use any of the extensions classes exported by embree.pyx (such as embree.Device, embree.Scene, etc.) with multiprocessing directly. To get around this problem, a simple fix is to wrap a bit of Embree functionality in a Python class with its own __reduce__ method. For an example, see the implementation of TrimeshShapeModel here.

Metadata

Release files for embree 4.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for embree 4.1.0
File Actions
embree-4.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for embree-4.1.0-cp311-cp311-win_amd64.whl
embree-4.1.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
embree-4.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for embree-4.1.0-cp310-cp310-win_amd64.whl
embree-4.1.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
embree-4.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for embree-4.1.0-cp39-cp39-win_amd64.whl
embree-4.1.0-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
embree-4.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for embree-4.1.0-cp38-cp38-win_amd64.whl
embree-4.1.0-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
embree-4.1.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for embree-4.1.0-cp37-cp37m-win_amd64.whl
embree-4.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
embree-4.1.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for embree-4.1.0-cp36-cp36m-win_amd64.whl
embree-4.1.0-cp36-cp36m-manylinux_2_28_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.28+ x86-64 Details for embree-4.1.0-cp36-cp36m-manylinux_2_28_x86_64.whl

Total release size: 157.9 MB

Release files / embree-4.1.0-cp311-cp311-win_amd64.whl

Download URL embree-4.1.0-cp311-cp311-win_amd64.whl
Size 12.5 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d170d713fba5827ec4e5059c324f103f336b1af2d839878b8751869623721949
BLAKE2b-256 checksum
How to use checksums
2bf6d34723156479f5c87bc5a7e51c8123915c5d44bb8c915177bef9cd822871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 13.8 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b543face44e5bd8b60b89c769012b2bcb5ed5d77c64c4a9b0d08943b887370df
BLAKE2b-256 checksum
How to use checksums
ecb665c926e8617dc6252ec9b06b08da4f05210b2692d0e64937eb3284f95b69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp310-cp310-win_amd64.whl

Download URL embree-4.1.0-cp310-cp310-win_amd64.whl
Size 12.5 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
2303aa4b1b785ac3d366a327ecf46c085ce50e97385e7edfb94c0a6bd7da8b17
BLAKE2b-256 checksum
How to use checksums
a31568483f90e3931ac9e8d3e22df9d2390ce3a2fa0d2fbce9a6597fab4cbcdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 13.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6b4f89d9098173b22b7963c12033d499b80e0b655680296eb09a23e55c96b792
BLAKE2b-256 checksum
How to use checksums
a7d2efa703dd7d712db04c8da387d660012dd822f991273dbf0f0f0a37e3d4fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp39-cp39-win_amd64.whl

Download URL embree-4.1.0-cp39-cp39-win_amd64.whl
Size 12.5 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
4f16bd44d76c1677ee88cdaa0a5b5589afbdce5a22481e402583eb97bb3d198d
BLAKE2b-256 checksum
How to use checksums
60cdd20f52dfac93e6119e09f350215ab692573e429654bd7ab086e91b597594
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Size 13.8 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c1f5a6f23b185d19f2a4972556b596d8413fc89c78c2aab3c00ab5b73ef8cf12
BLAKE2b-256 checksum
How to use checksums
8bdcbf9345bb12945bbce1e6991a57d66d8cf256c690dad490e923b6918b1349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp38-cp38-win_amd64.whl

Download URL embree-4.1.0-cp38-cp38-win_amd64.whl
Size 12.5 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2f5bb17199708fc093300da008842a4393429db510175b6005aa617ee32698f2
BLAKE2b-256 checksum
How to use checksums
b0b6e2485c0c4859f1c0a575e4e1f4d52e19f034e35c69bdbcf3d82ab438cad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp38-cp38-manylinux_2_28_x86_64.whl
Size 13.8 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b8d906f99d0e1f92d51f6f88e4a55d5dfe74c9dbe70330a26e81c36715502686
BLAKE2b-256 checksum
How to use checksums
53600cb2934f0f7536d96a13481954c5cef13f804f4176e823e7409556275aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp37-cp37m-win_amd64.whl

Download URL embree-4.1.0-cp37-cp37m-win_amd64.whl
Size 12.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
93ed1f9dca072c4cfd8a23a47098232cb49a4919dfe6af77ce0e5745ebbf7e47
BLAKE2b-256 checksum
How to use checksums
eab19eb1a5239a44d0bc2e5b670fff213fc765edeb47a021209438eee758fc97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp37-cp37m-manylinux_2_28_x86_64.whl
Size 13.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
972833c8b5c956001f99d10c6e84beb4d454003e9c4eb46ec9927f5d0463231d
BLAKE2b-256 checksum
How to use checksums
2cf25975e8e21724c54536bc0ae5d10b65b1ca562f9ec393fbe21e16648d85b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp36-cp36m-win_amd64.whl

Download URL embree-4.1.0-cp36-cp36m-win_amd64.whl
Size 12.6 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
622f1ccafd980e561ac09066f91879302c16672b241b22b491c07fafd528292f
BLAKE2b-256 checksum
How to use checksums
8e527d8f458fc745ca937fb4abb3c13f61575159c45e5bc42469fc9c40870259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / embree-4.1.0-cp36-cp36m-manylinux_2_28_x86_64.whl

Download URL embree-4.1.0-cp36-cp36m-manylinux_2_28_x86_64.whl
Size 13.7 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0088aec0f8f87656d02c9726a49729c8ce89ab924a5ca34b10e89f54537c9cef
BLAKE2b-256 checksum
How to use checksums
fc5ff042a323505a1bee87c5bc960d30f6c4ab6a94d577febdc0b6b441333318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for embree 4.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.1.0 This release

12 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page