gen_geometry_utils.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 API_GEN_GEOMETRY_UTILS_H
  12. #define API_GEN_GEOMETRY_UTILS_H
  13. #include "api/api_common.h"
  14. namespace MCell {
  15. namespace API {
  16. class GeometryObject;
  17. class Model;
  18. class PythonExportContext;
  19. namespace geometry_utils {
  20. std::shared_ptr<GeometryObject> create_box(const std::string& name, const double edge_dimension = FLT_UNSET, const std::vector<double> xyz_dimensions = std::vector<double>());
  21. std::shared_ptr<GeometryObject> create_icosphere(const std::string& name, const double radius, const int subdivisions);
  22. void validate_volumetric_mesh(std::shared_ptr<Model> model, std::shared_ptr<GeometryObject> geometry_object);
  23. } // namespace geometry_utils
  24. void define_pybinding_geometry_utils(py::module& m);
  25. } // namespace API
  26. } // namespace MCell
  27. #endif // API_GEN_GEOMETRY_UTILS_H