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:
Zoe Prieto 2025-12-20 01:56:13 -03:00 committed by GitHub
parent a230b86128
commit a2fd6cc57e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 594 additions and 2 deletions

View file

@ -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