Skip to content

add open-usd exporter#701

Merged
koubaa merged 4 commits into
mainfrom
open-usd
Apr 12, 2024
Merged

add open-usd exporter#701
koubaa merged 4 commits into
mainfrom
open-usd

Conversation

@koubaa

@koubaa koubaa commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

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
@codecov

codecov Bot commented Apr 12, 2024

Copy link
Copy Markdown

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
@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.

2 participants