Class uipc::geometry::SimplicialComplexIO
ClassList > uipc > geometry > SimplicialComplexIO
A class for reading and writing simplicial complex.
#include <simplicial_complex_io.h>
Public Functions
Type | Name |
---|---|
SimplicialComplexIO () = default |
|
SimplicialComplexIO (const Matrix4x4 & pre_transform) noexcept |
|
SimplicialComplexIO (const Transform & pre_transform) noexcept |
|
SimplicialComplexIO (const SimplicialComplexIO &) = default |
|
SimplicialComplexIO (SimplicialComplexIO &&) = default |
|
SimplicialComplexIO & | operator= (const SimplicialComplexIO &) = default |
SimplicialComplexIO & | operator= (SimplicialComplexIO &&) = default |
SimplicialComplex | read (std::string_view file_name) A unified interface for reading a simplicial complex from a file, the file type is determined by the file extension. |
SimplicialComplex | read_msh (std::string_view file_name) Read a tetmesh from a .msh file. |
SimplicialComplex | read_obj (std::string_view file_name) Read a trimesh, linemesh or particles from a .obj file. |
void | write (std::string_view file_name, const SimplicialComplex & sc) |
void | write_msh (std::string_view file_name, const SimplicialComplex & sc) Write a simplicial complex to .msh file. |
void | write_obj (std::string_view file_name, const SimplicialComplex & sc) Write a simplicial complex to .obj file. |
Public Functions Documentation
function SimplicialComplexIO [1/5]
function SimplicialComplexIO [2/5]
explicit uipc::geometry::SimplicialComplexIO::SimplicialComplexIO (
const Matrix4x4 & pre_transform
) noexcept
function SimplicialComplexIO [3/5]
explicit uipc::geometry::SimplicialComplexIO::SimplicialComplexIO (
const Transform & pre_transform
) noexcept
function SimplicialComplexIO [4/5]
function SimplicialComplexIO [5/5]
function operator=
SimplicialComplexIO & uipc::geometry::SimplicialComplexIO::operator= (
const SimplicialComplexIO &
) = default
function operator=
SimplicialComplexIO & uipc::geometry::SimplicialComplexIO::operator= (
SimplicialComplexIO &&
) = default
function read
A unified interface for reading a simplicial complex from a file, the file type is determined by the file extension.
Parameters:
file_name
The file to read
Returns:
function read_msh
Read a tetmesh from a .msh file.
Parameters:
file_name
The file to read
Returns:
function read_obj
Read a trimesh, linemesh or particles from a .obj file.
Parameters:
file_name
The file to read
Returns:
function write
void uipc::geometry::SimplicialComplexIO::write (
std::string_view file_name,
const SimplicialComplex & sc
)
function write_msh
Write a simplicial complex to .msh file.
void uipc::geometry::SimplicialComplexIO::write_msh (
std::string_view file_name,
const SimplicialComplex & sc
)
Parameters:
file_name
The file to writesc
The simplicial complex to write
function write_obj
Write a simplicial complex to .obj file.
void uipc::geometry::SimplicialComplexIO::write_obj (
std::string_view file_name,
const SimplicialComplex & sc
)
Parameters:
file_name
The file to writesc
The simplicial complex to write
The documentation for this class was generated from the following file include/uipc/io/simplicial_complex_io.h