PolyFEM
Loading...
Searching...
No Matches
GeometryReader.cpp File Reference
#include "GeometryReader.hpp"
#include <polyfem/mesh/Mesh.hpp>
#include <polyfem/mesh/MeshUtils.hpp>
#include <polyfem/io/MshReader.hpp>
#include <polyfem/utils/StringUtils.hpp>
#include <polyfem/utils/JSONUtils.hpp>
#include <polyfem/utils/Selection.hpp>
#include <polyfem/utils/Logger.hpp>
#include <Eigen/Core>
#include <igl/edges.h>
#include <igl/boundary_facets.h>
#include <strnatcmp.h>
#include <glob/glob.h>
#include <filesystem>
Include dependency graph for GeometryReader.cpp:

Go to the source code of this file.

Namespaces

namespace  polyfem
 
namespace  polyfem::mesh
 

Functions

std::unique_ptr< Meshpolyfem::mesh::read_fem_mesh (const Units &units, const json &j_mesh, const std::string &root_path, const bool non_conforming=false)
 read a FEM mesh from a geometry JSON
 
std::unique_ptr< Meshpolyfem::mesh::read_fem_geometry (const Units &units, const json &geometry, const std::string &root_path, const std::vector< std::string > &names=std::vector< std::string >(), const std::vector< Eigen::MatrixXd > &vertices=std::vector< Eigen::MatrixXd >(), const std::vector< Eigen::MatrixXi > &cells=std::vector< Eigen::MatrixXi >(), const bool non_conforming=false)
 read FEM meshes from a geometry JSON array (or single)
 
void polyfem::mesh::read_obstacle_mesh (const Units &units, const json &j_mesh, const std::string &root_path, const int dim, Eigen::MatrixXd &vertices, Eigen::VectorXi &codim_vertices, Eigen::MatrixXi &codim_edges, Eigen::MatrixXi &faces)
 read a obstacle mesh from a geometry JSON
 
Obstacle polyfem::mesh::read_obstacle_geometry (const Units &units, const json &geometry, const std::vector< json > &displacements, const std::vector< json > &dirichlets, const std::string &root_path, const int dim, const std::vector< std::string > &names=std::vector< std::string >(), const std::vector< Eigen::MatrixXd > &vertices=std::vector< Eigen::MatrixXd >(), const std::vector< Eigen::MatrixXi > &cells=std::vector< Eigen::MatrixXi >(), const bool non_conforming=false)
 read a FEM mesh from a geometry JSON
 
void polyfem::mesh::construct_affine_transformation (const double unit_scale, const json &transform, const VectorNd &mesh_dimensions, MatrixNd &A, VectorNd &b)
 Construct an affine transformation \(Ax+b\).