Python data converters for Wavefront Technologies OBJ/MTL file to Evo geoscience objects
Project description
Seequent Developer Portal • Seequent Community • Seequent website
Evo
Evo is a unified platform for geoscience teams. It enables access, connection, computation, and management of subsurface data. This empowers better decision-making, simplified collaboration, and accelerated innovation. Evo is built on open APIs, allowing developers to build custom integrations and applications. Our open schemas, code examples, and SDK are available for the community to use and extend.
Evo is powered by Seequent, a Bentley organisation.
Pre-requisites
- Python virtual environment with Python 3.10, 3.11, or 3.12
- Git
Installation
pip install evo-data-converters-obj
OBJ
The OBJ 3D mesh format is a legacy of Wavefront Technologies, but is now a common format for specifying polygon meshes, optionally with texture data (stored in a separate MTL file).
Implementations
The Python Trimesh package is used to work with OBJ files by default, for import and export. There is a second importer implementation that uses TinyOBJ. TinyOBJ might be more suitable for very large meshes.
To use TinyOBJ, it will have to be installed. Once it is installed, you can specify the TinyOBJ backend via a parameter to convert_obj(): convert_obj(..., implementation="tinyobj").
Installing tinyobjloader
The TinyOBJ library is good, but the PyPI release has unstable Python bindings. This version was found to work. You will have to do it after every uv sync:
uv pip install tinyobjloader@git+https://github.com/tinyobjloader/tinyobjloader.git#a4e519b0a0f29c790464fcfeadfe25a7f9fa15ff
Alternatively, you can edit packages/obj/pyproject.toml:
[project.optional-dependencies]
optional_parsers = [
# v2 is not yet stable, the current release (2.0.0rc13) doesn't work
"tinyobjloader@git+https://github.com/tinyobjloader/tinyobjloader.git#a4e519b0a0f29c790464fcfeadfe25a7f9fa15ff",
]
Then do uv sync --extra optional_parsers.
Publish geoscience objects from an OBJ file
The evo-sdk-common Python library can be used to sign in. After successfully signing in, the user can select an organisation, an Evo hub, and a workspace. Use evo-objects to get an ObjectAPIClient, and evo-data-converters-common to convert your file.
Have a look at the code-samples/publish-obj.ipynb Notebook for an example of how to publish an OBJ (and related) files.
Also see the code-samples/publish-obj-script.py example of using convert_obj() inside a python script.
Exporting Triangle Mesh objects to OBJ
To export Triangle Mesh objects from Evo to an OBJ file, call await export_obj() supplying an output file path and a list of EvoObjectMetadata containing the UUIDs of the Evo objects.
EvoObjectMetadata can also specify the version of each object to export. If not specified, so it will export the latest version.
See documentation on the ObjectAPIClient for listing objects and getting their IDs and versions.
You will need the same selection of organisation, Evo hub, and workspace that is needed for importing objects.
See the code-samples/export-obj.ipynb Notebook for an example of how to download a Evo Geoscience object to an OBJ.
Also see the code-samples/export-obj-script.py example of using export_obj() inside a python script.
Code of conduct
We rely on an open, friendly, inclusive environment. To help us ensure this remains possible, please familiarise yourself with our code of conduct.
License
Evo data converters are open source and licensed under the Apache 2.0 license.
Copyright © 2025 Bentley Systems, Incorporated.
Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file evo_data_converters_obj-0.0.3.tar.gz.
File metadata
- Download URL: evo_data_converters_obj-0.0.3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d682b7acc07d72e131fa6ffd4354e4abeebca17957f92a4b147f6ce5712940af
|
|
| MD5 |
8a50eecf1f9f25d2595a7085490490bc
|
|
| BLAKE2b-256 |
3287110bf4f74a3d1564831b0217170614b213351b96c089541519a5744fd875
|
Provenance
The following attestation bundles were made for evo_data_converters_obj-0.0.3.tar.gz:
Publisher:
publish-obj.yaml on SeequentEvo/evo-data-converters
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evo_data_converters_obj-0.0.3.tar.gz -
Subject digest:
d682b7acc07d72e131fa6ffd4354e4abeebca17957f92a4b147f6ce5712940af - Sigstore transparency entry: 1108451201
- Sigstore integration time:
-
Permalink:
SeequentEvo/evo-data-converters@2a650eec9b9772d31085075c96b149b713df25a8 -
Branch / Tag:
refs/tags/evo-data-converters-obj@v0.0.3 - Owner: https://github.com/SeequentEvo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-obj.yaml@2a650eec9b9772d31085075c96b149b713df25a8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file evo_data_converters_obj-0.0.3-py3-none-any.whl.
File metadata
- Download URL: evo_data_converters_obj-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d08723663fada880f39c0f762fb3411d3592593dbe09d235a950e967e9eb9a5a
|
|
| MD5 |
5d9ac2c0fd64cae9237aa1ee60d7d170
|
|
| BLAKE2b-256 |
ea22fd96bf910760508f84ed832b888d8159e398f61b7b97c268ebda644dbb1d
|
Provenance
The following attestation bundles were made for evo_data_converters_obj-0.0.3-py3-none-any.whl:
Publisher:
publish-obj.yaml on SeequentEvo/evo-data-converters
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evo_data_converters_obj-0.0.3-py3-none-any.whl -
Subject digest:
d08723663fada880f39c0f762fb3411d3592593dbe09d235a950e967e9eb9a5a - Sigstore transparency entry: 1108451222
- Sigstore integration time:
-
Permalink:
SeequentEvo/evo-data-converters@2a650eec9b9772d31085075c96b149b713df25a8 -
Branch / Tag:
refs/tags/evo-data-converters-obj@v0.0.3 - Owner: https://github.com/SeequentEvo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-obj.yaml@2a650eec9b9772d31085075c96b149b713df25a8 -
Trigger Event:
release
-
Statement type: