wavefront_reader
A parser for wavefront .obj and .mtl files
Free software: MIT license
Documentation: https://wavefront-reader.readthedocs.io.
Features
Reads out wavefront objects to dictionaries with their attributes, including their materials:
from wavefront_reader import read_wavefront, read_objfile, read_mtlfile
geoms = read_wavefront('myObjects.obj')
cube = geoms['Cube']
cube_vertices = cube['v']
cube_diffuse_material = cube['material']['Kd']
The module has a lot of tests, and handles face indexing by re-indexing the vertex, normal, and texcoord arrays simply by reindexing them into same-length, sequential arrays. While this reduces the memory benefits of the .obj format, it makes it much easier to load the data into OpenGL or reindex the data yourself.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2017-01-18)
First release on PyPI.
Metadata
Release files for wavefront_reader 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wavefront_reader-0.2.2.tar.gz | 15.5 kB | Without provenance | Details for wavefront_reader-0.2.2.tar.gz |
Release files / wavefront_reader-0.2.2.tar.gz
| Download URL | wavefront_reader-0.2.2.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f860fa6adefb32a24bfc280e14a735610410a34a1928821682aa34106680291f
|
|
BLAKE2b-256 checksum How to use checksums |
8a8bdcba57c4cb9259697e97811180038ab4b52ecfb9bbb818e8be1258149379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wavefront_reader 0.2.2
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.