Skip to main content

collada2obj

codecov

This Python library can be used to easily convert collada (i.e., .dae) files to wavefront (i.e., .obj ) files. This transformation between file formats for 3d models is useful for a variety of applications, though this library was motivated by the need for this transformation in some robotics applications.

At the moment, this library is a work in progress and is not yet fully functional. However, the basic functionality is there and the library can be used to convert simple collada files to obj files.

See the examples directory for example usages of the library.

Installation

To install this library, you can use pip:

pip install collada2obj

Local Installation

If you want to install this library locally (recommended only if you want to tweak/play around with collada2obj itself), then you can clone this repository and install it using pip in the following way:

Change to the root directory of this repo and then run the following command:

pip install -e .

Usage

from collada2obj import ColladaFileConverter

def main(input_filename: str = "../convert_base_mesh/base.dae", output_filename: str = "./out.obj"):
    # Setup
    print(
        "Create a converter for the Collada file \"{}\" and export to OBJ file \"{}\"."
        .format(input_filename, output_filename)
    )
    converter = ColladaFileConverter(dae_filename=input_filename, obj_filename=output_filename)
    converter.export_obj()

if __name__ == '__main__':
    main()

Acknowledgements

This library was initially created by the user @georgethrax on GitHub. It was later expanded and refactored by the Wrench Robotics team.

Metadata

Release files for collada2obj 0.1.2

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

Source distribution (sdist)

Source distribution for collada2obj 0.1.2
File Size Uploaded Provenance Actions
collada2obj-0.1.2.tar.gz 6.8 kB Without provenance Details for collada2obj-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for collada2obj 0.1.2
File Interpreter ABI Platform Actions
collada2obj-0.1.2-py3-none-any.whl Python 3 none any Details for collada2obj-0.1.2-py3-none-any.whl

Total release size: 14.7 kB

Release files / collada2obj-0.1.2.tar.gz

Download URL collada2obj-0.1.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3d517eadb04d1ac3c690a60c596195c65749fd1786709bcee9b2e3cc55de8ce2
BLAKE2b-256 checksum
How to use checksums
a11e306068da05fa79cbdd7212a7a78043591e478c5b28a6c3046ca367e90ed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / collada2obj-0.1.2-py3-none-any.whl

Download URL collada2obj-0.1.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fd1427a0e671e4afc0be112f7d1a6fac1a57f6fd26ce0184e4bd27fa653e900
BLAKE2b-256 checksum
How to use checksums
871ea24259331256c539b681ef75bd0abe03885913895eea13cda8caade2249e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Security for collada2obj 0.1.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.

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