PolyFEM
Loading...
Searching...
No Matches
polyfem::io::MshWriter Class Reference

#include <MshWriter.hpp>

Public Member Functions

 MshWriter ()=delete
 

Static Public Member Functions

static void write (const std::string &path, const mesh::Mesh &mesh, const bool binary)
 saves the mesh
 
static void write (const std::string &path, const Eigen::MatrixXd &points, const Eigen::MatrixXi &cells, const std::vector< int > &body_ids, const bool is_volume, const bool binary=false)
 saves the mesh
 
static void write (const std::string &path, const Eigen::MatrixXd &points, const std::vector< std::vector< int > > &cells, const std::vector< int > &body_ids, const bool is_volume, const bool binary=false)
 saves the mesh
 

Detailed Description

Definition at line 11 of file MshWriter.hpp.

Constructor & Destructor Documentation

◆ MshWriter()

polyfem::io::MshWriter::MshWriter ( )
delete

Member Function Documentation

◆ write() [1/3]

void polyfem::io::MshWriter::write ( const std::string &  path,
const Eigen::MatrixXd &  points,
const Eigen::MatrixXi &  cells,
const std::vector< int > &  body_ids,
const bool  is_volume,
const bool  binary = false 
)
static

saves the mesh

Parameters
[in]pathoutput path
[in]binaryoutput binary or not

Definition at line 27 of file MshWriter.cpp.

References write().

Here is the call graph for this function:

◆ write() [2/3]

void polyfem::io::MshWriter::write ( const std::string &  path,
const Eigen::MatrixXd &  points,
const std::vector< std::vector< int > > &  cells,
const std::vector< int > &  body_ids,
const bool  is_volume,
const bool  binary = false 
)
static

saves the mesh

Parameters
[in]pathoutput path
[in]binaryoutput binary or not

Definition at line 43 of file MshWriter.cpp.

◆ write() [3/3]

void polyfem::io::MshWriter::write ( const std::string &  path,
const mesh::Mesh mesh,
const bool  binary 
)
static

saves the mesh

Parameters
[in]pathoutput path
[in]binaryoutput binary or not

Definition at line 7 of file MshWriter.cpp.

References polyfem::mesh::Mesh::cell_vertex(), polyfem::mesh::Mesh::dimension(), polyfem::mesh::Mesh::get_body_ids(), polyfem::mesh::Mesh::is_volume(), polyfem::mesh::Mesh::n_cell_vertices(), polyfem::mesh::Mesh::n_elements(), polyfem::mesh::Mesh::n_vertices(), polyfem::mesh::Mesh::point(), and write().

Referenced by polyfem::solver::AdjointNLProblem::save_to_file(), polyfem::State::solve_transient_tensor_nonlinear(), write(), and write().

Here is the call graph for this function:
Here is the caller graph for this function:

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