Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
wmtk::io::ComponentIO Class Reference

Public Member Functions

 ComponentIO (const MeshMap *meshes=nullptr)
 
bool memory () const
 
template<int N>
void save_history (const history::History< N > &h, const std::string &path)
 
void save_volume_history (std::vector< uint8_t > bytes, const std::string &path)
 
std::string history_metadata (const nlohmann::json &params) const
 
ComponentResult take_result ()
 
const MeshData & mesh (const std::string &name) const
 
std::string path (const std::filesystem::path &root, const nlohmann::json &selector) const
 
std::vector< std::string > paths (const std::filesystem::path &root, const nlohmann::json &selectors) const
 
void raw_triangles (const std::string &name, MatrixXd &V, MatrixXi &F, const std::set< std::string > &vertex_attributes=reader_vertex_attributes, const std::set< std::string > &triangle_attributes={}) const
 
void triangles (const std::string &name, MatrixXd &V, MatrixXi &F, double rel=-1, double abs=-1) const
 
void triangles (const std::vector< std::string > &names, MatrixXd &V, MatrixXi &F, double rel, double abs, std::vector< int > *provenance=nullptr, ReadProvenance *read=nullptr, const std::set< std::string > &vertex_attributes=reader_vertex_attributes, const std::set< std::string > &triangle_attributes={}) const
 
void edges (const std::string &name, MatrixXd &V, MatrixXi &E, double rel=-1, double abs=-1, ReadProvenance *read=nullptr) const
 
void prepare (nlohmann::json &j, const std::string &component) const
 

Static Public Member Functions

static void attributes (const MeshAttributes &a, const std::set< std::string > &allowed, const std::set< std::string > &required={})
 
static MatrixXi indices (const DataMatrix< int64_t > &c)
 

Public Attributes

const MeshMap * inputs = nullptr
 
ComponentResult result {{}, nlohmann::json::object()}
 

Static Public Attributes

static const std::set< std::string > reader_vertex_attributes = {"vid"}
 
static const std::set< std::string > reader_corner_attributes = {"uv", "normal"}
 

Private Attributes

detail::ComponentLoggerScope logging
 
std::optional< std::vector< uint8_t > > recorded_history
 
std::optional< std::vector< uint8_t > > recorded_volume_history
 

The documentation for this class was generated from the following file: