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 JSON output for CSG objects #1133

Merged
merged 7 commits into from
Mar 6, 2024
Merged

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Feb 28, 2024

CHAINED on #1130.

Example:

{
  "_type": "all",
  "daughters": [
    {
      "_type": "shape",
      "interior": {
        "_type": "cone",
        "halfheight": 2.0,
        "radii": [
          1.0,
          0.5
        ]
      },
      "label": "cone"
    },
    {
      "_type": "transformed",
      "daughter": {
        "_type": "shape",
        "interior": {
          "_type": "cylinder",
          "halfheight": 2.0,
          "radius": 1.0
        },
        "label": "cyl"
      },
      "transform": {
        "_type": "transformation",
        "data": [
          1.0,
          0.0,
          0.0,
          0.0,
          0.7071067811865475,
          -0.7071067811865475,
          0.0,
          0.7071067811865475,
          0.7071067811865475,
          1.0,
          2.0,
          3.0
        ]
      }
    },
    {
      "_type": "shape",
      "interior": {
        "_type": "ellipsoid",
        "radii": [
          1.0,
          2.0,
          3.0
        ]
      },
      "label": "ell"
    },
    {
      "_type": "transformed",
      "daughter": {
        "_type": "shape",
        "interior": {
          "_type": "sphere",
          "radius": 1.25
        },
        "label": "sph"
      },
      "transform": {
        "_type": "translation",
        "data": [
          1.0,
          2.0,
          3.0
        ]
      }
    }
  ],
  "label": "all_quadric"
}

@sethrj sethrj added enhancement New feature or request orange Work on ORANGE geometry engine labels Feb 28, 2024
@sethrj sethrj mentioned this pull request Mar 1, 2024
@sethrj sethrj requested a review from elliottbiondo March 5, 2024 13:52
@sethrj sethrj marked this pull request as ready for review March 5, 2024 14:09
@sethrj
Copy link
Member Author

sethrj commented Mar 5, 2024

@elliottbiondo this one next please!

@sethrj sethrj enabled auto-merge (squash) March 6, 2024 15:46
@sethrj sethrj merged commit 2596ea8 into celeritas-project:develop Mar 6, 2024
20 of 21 checks passed
@sethrj sethrj deleted the csg-output branch March 6, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request orange Work on ORANGE geometry engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants