Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add open-usd exporter #701

Merged
merged 4 commits into from
Apr 12, 2024
Merged

add open-usd exporter #701

merged 4 commits into from
Apr 12, 2024

Conversation

koubaa
Copy link
Collaborator

@koubaa koubaa commented Apr 12, 2024

The API isn't so clean yet. An example script looks like this:

import ansys.mechanical.core as mech
project_file=r"D:\path\to\project.mechdat"

usda_file = r"D:\path\to\scene.usda"

app = mech.App(version=242, db_file=project_file)
app.open(project_file)

print(app)
from ansys.mechanical.core.embedding.viz.usd_converter import to_usd_file
print(f"converting {project_file} to usda at {usda_file}")
to_usd_file(app, usda_file)

@koubaa koubaa requested a review from a team as a code owner April 12, 2024 14:55
@github-actions github-actions bot added the dependencies Related with project dependencies label Apr 12, 2024
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Apr 12, 2024
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.80%. Comparing base (6fb184a) to head (3edd5d7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #701      +/-   ##
==========================================
- Coverage   77.56%   76.80%   -0.77%     
==========================================
  Files          31       31              
  Lines        1970     1970              
==========================================
- Hits         1528     1513      -15     
- Misses        442      457      +15     

@koubaa koubaa merged commit 075583d into main Apr 12, 2024
56 checks passed
@koubaa koubaa deleted the open-usd branch April 12, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related with project dependencies documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants