data_model_geometry.h 758 B

12345678910111213141516171819202122232425
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2021 by
  4. * The Salk Institute for Biological Studies
  5. *
  6. * Use of this source code is governed by an MIT-style
  7. * license that can be found in the LICENSE file or at
  8. * https://opensource.org/licenses/MIT.
  9. *
  10. ******************************************************************************/
  11. #ifndef UTILS_DATA_MODEL_GEOMETRY_H_
  12. #define UTILS_DATA_MODEL_GEOMETRY_H_
  13. #include "json/json.h"
  14. namespace MCell {
  15. // throws ConversionError if computation was not successful (may possibly throw other exceptions)
  16. void compute_volume_and_area(Json::Value& model_object, double& volume, double& area);
  17. } // namespace MCell
  18. #endif /* UTILS_DATA_MODEL_GEOMETRY_H_ */