Skip to content

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]

uipc::geometry::SimplicialComplexIO::SimplicialComplexIO () = default

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]

uipc::geometry::SimplicialComplexIO::SimplicialComplexIO (
    const SimplicialComplexIO &
) = default

function SimplicialComplexIO [5/5]

uipc::geometry::SimplicialComplexIO::SimplicialComplexIO (
    SimplicialComplexIO &&
) = default

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.

SimplicialComplex uipc::geometry::SimplicialComplexIO::read (
    std::string_view file_name
) 

Parameters:

  • file_name The file to read

Returns:

SimplicialComplex


function read_msh

Read a tetmesh from a .msh file.

SimplicialComplex uipc::geometry::SimplicialComplexIO::read_msh (
    std::string_view file_name
) 

Parameters:

  • file_name The file to read

Returns:

SimplicialComplex


function read_obj

Read a trimesh, linemesh or particles from a .obj file.

SimplicialComplex uipc::geometry::SimplicialComplexIO::read_obj (
    std::string_view file_name
) 

Parameters:

  • file_name The file to read

Returns:

SimplicialComplex


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 write
  • sc 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 write
  • sc The simplicial complex to write


The documentation for this class was generated from the following file include/uipc/io/simplicial_complex_io.h