feat(meshIO): added linear rescale capability to meshIO

loaded meshes can be linearly rescaled (so for example a unit sphere can be rescaled to a sphere of any radius)
This commit is contained in:
2025-04-25 11:13:15 -04:00
parent 9a76c447f1
commit 2b3330b4f6
2 changed files with 39 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
//
// Copyright (C) 2025 -- The 4D-STAR Collaboration
// File Author: Emily Boudreaux
// Last Modified: February 16, 2025
// Last Modified: March 18, 2025
//
// 4DSSE is free software; you can use it and/or modify
// it under the terms and restrictions the GNU General Library Public
@@ -39,13 +39,19 @@ public:
* @brief Constructor that initializes the MeshIO object with a mesh file.
* @param mesh_file The name of the mesh file.
*/
MeshIO(const std::string mesh_file);
MeshIO(const std::string &mesh_file, double scale_factor = 1.0);
/**
* @brief Destructor for the MeshIO class.
*/
~MeshIO();
/**
* @brief Rescale the mesh by a linear factor.
* @param scale_factor The factor by which to scale the mesh.
*/
void LinearRescale(double scale_factor);
/**
* @brief Get the mesh object.
* @return Reference to the mesh object.