Skip to content

Class uipc::geometry::SpreadSheetIO

ClassList > uipc > geometry > SpreadSheetIO

A class for writing geometry spreadsheet. More...

  • #include <spread_sheet_io.h>

Public Functions

Type Name
SpreadSheetIO (std::string_view output_folder="./")
void write_csv (std::string_view geo_name, const SimplicialComplex & simplicial_complex) const
void write_csv (const SimplicialComplex & simplicial_complex) const
void write_json (std::string_view geo_name, const SimplicialComplex & simplicial_complex) const
void write_json (const SimplicialComplex & simplicial_complex) const

Detailed Description

SimplicialComplexIO io;
auto mesh = io.read("cube.msh");
SpreadSheetIO sio;
// dump to csv
sio.write_csv("spreadsheet", mesh);
// dump to json
sio.write_json("spreadsheet", mesh);

Public Functions Documentation

function SpreadSheetIO

uipc::geometry::SpreadSheetIO::SpreadSheetIO (
    std::string_view output_folder="./"
) 

function write_csv [1/2]

void uipc::geometry::SpreadSheetIO::write_csv (
    std::string_view geo_name,
    const SimplicialComplex & simplicial_complex
) const

function write_csv [2/2]

void uipc::geometry::SpreadSheetIO::write_csv (
    const SimplicialComplex & simplicial_complex
) const

function write_json [1/2]

void uipc::geometry::SpreadSheetIO::write_json (
    std::string_view geo_name,
    const SimplicialComplex & simplicial_complex
) const

function write_json [2/2]

void uipc::geometry::SpreadSheetIO::write_json (
    const SimplicialComplex & simplicial_complex
) const


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