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

feat: replace draw_surfaces with Acts-based obj and ply export #1357

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Apr 1, 2024

Briefly, what does this PR introduce?

Instead of writing our own obj files in draw_surfaces (with only support for planar surfaces), this PR converts it to use the Acts support for export to obj and ply files, optionally and with parameter support for coloring etc. Syntax is:

eicrecon -Pacts:WriteObj=true -Pacts:WritePly=true -Pacts:OutputDir=$PWD/tracking_geometry

where OutputDir must exist and defaults to current working directory (because it exists; upstream choice).

To open the obj and ply models, you can use e.g. meshlab. Just import all files at once.

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

Yes, by default tracking_geometry.obj will not be written anymore.

@github-actions github-actions bot added topic: tracking Relates to tracking reconstruction topic: infrastructure labels Apr 1, 2024
@wdconinc wdconinc marked this pull request as ready for review April 2, 2024 01:33
@wdconinc
Copy link
Contributor Author

wdconinc commented Apr 2, 2024

This is probably going to look mostly like modern art, but here is what all these layers look like in meshlab (default color assignments, meshes as downloaded from CI):

image

@wdconinc
Copy link
Contributor Author

wdconinc commented Apr 2, 2024

I will go ahead and merge this already. The reason why this is exported for each DIS test sample (even though this only depends on geometry currently) is because I am working on exports of event data as well (covariance ellipses for measurements, etc), see https://acts.readthedocs.io/en/latest/core/visualization/3d.html. That's likely something that should be done in a next PR.

@wdconinc wdconinc added this pull request to the merge queue Apr 2, 2024
Merged via the queue into main with commit 01bf5bc Apr 2, 2024
75 checks passed
@wdconinc wdconinc deleted the acts-obj-visualization branch April 2, 2024 13:51
ajentsch pushed a commit that referenced this pull request May 20, 2024
### Briefly, what does this PR introduce?
Instead of writing our own obj files in `draw_surfaces` (with only
support for planar surfaces), this PR converts it to use the Acts
support for export to obj and ply files, optionally and with parameter
support for coloring etc. Syntax is:
```
eicrecon -Pacts:WriteObj=true -Pacts:WritePly=true -Pacts:OutputDir=$PWD/tracking_geometry
```
where `OutputDir` must exist and defaults to current working directory
(because it exists; upstream choice).

To open the obj and ply models, you can use e.g.
[meshlab](https://www.meshlab.net). Just import all files at once.

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] New feature (issue #1330)
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?
No.

### Does this PR change default behavior?
Yes, by default `tracking_geometry.obj` will not be written anymore.

---------

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure topic: tracking Relates to tracking reconstruction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ACTS::CylindricalSurfaces in obj output from draw_surfaces
3 participants