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

Write the scene back to OPS + OPF files #61

Open
2 tasks
VEZY opened this issue May 24, 2024 · 0 comments
Open
2 tasks

Write the scene back to OPS + OPF files #61

VEZY opened this issue May 24, 2024 · 0 comments

Comments

@VEZY
Copy link
Owner

VEZY commented May 24, 2024

We should be able to write again a scene that we just read.

The only difference we should expect with the scene we read is that there will be as many OPFs as objects in the scene because we can't guarantee that they are the same (or it would be expensive to check that each node is the same...). This is in contrast of e.g. several plants that are defined by the same OPF in an OPS.

To do:

  • Write an MTG that is a scene. Atm the MTG will be written as a very big OPF. We should write the OPFs with their original transformations by removing the scene transformation for each node of the OPF. The transformation is available at the scene root node. We also should write each OPF to a different file, using the original file names (available in the OPF node that is a direct child of the scene), or a proxy of it if the original file is used for several plants
  • When writing the OPF back to disk, filter the ref_meshes to keep only the ones that are in the current OPF that is being written.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant