A tiny CUDA library for fast barycentric operations
Project description
pybarycuda
Pybaracuda is python wrapper for Barycuda - which is a tiny CUDA accelerated library with no dependencies that performs various barycentric operations. This is an attempt to speed-up a 3D renderer that I'm working on.
Currently, the library exposes the following functions:
point_in_simplex
- takes an array of points, the vertices of a 2D/3D simplex, and tells you if each point lies inside the simplex.bary_simplex
- takes an array of points, the vertices of a 2D/3D simplex, and returns the barycentric coordinates for each point.
Development
See the Github repo.
References
Shirley, P. (2009) Fundamentals of Computer Graphics
https://en.wikipedia.org/wiki/Barycentric_coordinate_system
https://math.stackexchange.com/questions/1226707/how-to-check-if-point-x-in-mathbbrn-is-in-a-n-simplex
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybarycuda-1.0.0.tar.gz
(200.1 kB
view hashes)
Built Distribution
Close
Hashes for pybarycuda-1.0.0-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8b7b85a77ba7699fbc5912da5998241da3cd83d63719566f18cac2f024301b4 |
|
MD5 | e54218bcd05a7f0e52454694e2849574 |
|
BLAKE2b-256 | 58ac64abdeea0a7a60acadb5baef8550104f7206c507bbde216a7bebc81a04cc |