PolyFEM
Loading...
Searching...
No Matches
JSONUtils.hpp File Reference
#include <polyfem/Common.hpp>
#include <polysolve/JSONUtils.hpp>
#include <Eigen/Core>
#include <igl/PI.h>
#include <filesystem>
Include dependency graph for JSONUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  polyfem
 
namespace  polyfem::utils
 

Functions

void polyfem::utils::apply_common_params (json &args)
 
template<typename T >
polyfem::utils::deg2rad (T deg)
 
Eigen::Matrix3d polyfem::utils::to_rotation_matrix (const json &jr, std::string mode)
 
bool polyfem::utils::is_param_valid (const json &params, const std::string &key)
 Determine if a key exists and is non-null in a json object.
 
template<typename T = json>
std::vector< T > polyfem::utils::json_as_array (const json &j)
 Return the value of a json object as an array.
 
template<typename T >
polyfem::utils::json_value (const json &params, const std::string &key, const T &default_value)
 Get a parameter from a json object or return a default value if the parameter invalid.