mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Support rotation in MeshFilter (#3176)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com> Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
a230b86128
commit
a2fd6cc57e
12 changed files with 594 additions and 2 deletions
|
|
@ -51,6 +51,12 @@ public:
|
|||
|
||||
virtual bool translated() const { return translated_; }
|
||||
|
||||
virtual void set_rotation(const vector<double>& rotation);
|
||||
|
||||
virtual const vector<double>& rotation() const { return rotation_; }
|
||||
|
||||
virtual bool rotated() const { return rotated_; }
|
||||
|
||||
protected:
|
||||
//----------------------------------------------------------------------------
|
||||
// Data members
|
||||
|
|
@ -58,6 +64,8 @@ protected:
|
|||
int32_t mesh_; //!< Index of the mesh
|
||||
bool translated_ {false}; //!< Whether or not the filter is translated
|
||||
Position translation_ {0.0, 0.0, 0.0}; //!< Filter translation
|
||||
bool rotated_ {false}; //!< Whether or not the filter is rotated
|
||||
vector<double> rotation_; //!< Filter rotation
|
||||
};
|
||||
|
||||
} // namespace openmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue