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: add export to json geometry using hierarchy map #679

Merged

Conversation

asalzburger
Copy link
Contributor

@asalzburger asalzburger commented Jan 28, 2021

This PR adds a Geometry/Surface converter for the Geometry examples in the framework, using the GeometryHierarchyMapConverter<> from the Core repository.

It also corrects a faulty include directory from AtlasExamples/Plugin to AtlasExamples/Io.

It needed also a to_json conversion for std::shared_ptr<const Surface> surface rather than the const Surface&.

@asalzburger asalzburger self-assigned this Jan 28, 2021
@asalzburger asalzburger added this to the next milestone Jan 28, 2021
@asalzburger asalzburger added Component - Examples Affects the Examples module Feature Development to integrate a new feature labels Jan 28, 2021
Copy link
Contributor

@Corentin-Allaire Corentin-Allaire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one comment concerning the boundary.

// This is a navigation volume, write the boundaries
if (writeBoundary) {
for (auto bsurface : volume.boundarySurfaces()) {
// ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it normal that the writing of the boundary does nothing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a place-holder, but I think I can add it. For writing the boundaries, I should actually resolve also the volume pointing, but then this would be a different type ... I will add "just" the plain surface information here.

@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #679 (133d048) into master (9efc8fc) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #679   +/-   ##
=======================================
  Coverage   49.07%   49.07%           
=======================================
  Files         331      331           
  Lines       16568    16568           
  Branches     7722     7722           
=======================================
  Hits         8130     8130           
  Misses       3006     3006           
  Partials     5432     5432           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9efc8fc...133d048. Read the comment docs.

Copy link
Contributor Author

@asalzburger asalzburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressing PR comments.

@asalzburger
Copy link
Contributor Author

Merging master in & then have a look.

@asalzburger asalzburger merged commit c97d2af into acts-project:master Jan 29, 2021
@asalzburger asalzburger deleted the feat-export-geometry-json branch January 29, 2021 15:12
@paulgessinger paulgessinger modified the milestones: next, v5.0.0 Jan 29, 2021
asalzburger added a commit to asalzburger/acts that referenced this pull request Feb 3, 2021
Adding Surface writing capability to the framework.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Examples Affects the Examples module Feature Development to integrate a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants