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 config file formats for Box #166

Merged
merged 4 commits into from
Jul 5, 2021
Merged

Add config file formats for Box #166

merged 4 commits into from
Jul 5, 2021

Conversation

lmh91
Copy link
Collaborator

@lmh91 lmh91 commented Jul 2, 2021

Add some ways to define a box primitive:

box:
   widths: [2,2,2] # or 

   # halfwidths: [1, 1, 1] # or

   # hX: 1
   # hY: 1
   # hZ: 1 # or 

   # x: 1 
   # y: 
   #   from: -1
   #   to: 1
   # z: 1

  origin: [0, 0, 0] # optional
  rotate: 
    Z: 0 # optional

Origin can also be specified like

origin: 
  x: 0
  y: 0
  z: 0 # or

origin: 
  x: 1 # -> origin at (1, 0, 0)

Also add functions get_origin and get_rotation which read in the optional fields origin and rotate.
These will also be used in the read-in of the other primitives (next PR's).

The rotation is applied before the translation to the origin.

@fhagemann fhagemann requested review from fhagemann and removed request for fhagemann July 2, 2021 13:10
@fhagemann
Copy link
Collaborator

Thanks for using commit messages that well describe what you are doing ;)
Silence

@lmh91 lmh91 merged commit 94f49dd into JuliaPhysics:v0.6 Jul 5, 2021
@lmh91 lmh91 deleted the config_file_format_box branch July 14, 2021 12:15
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

Successfully merging this pull request may close these issues.

2 participants