50 if (path.size() > 0) {
62 out <<
"# vtk DataFile Version 4.0"
70 out <<
"DATASET UNSTRUCTURED_GRID"
81 for (
int c = 0;
c < (
int)cells.size();
c++)
109 if (path.size() > 0) {
122 out <<
"# vtk DataFile Version 4.0"
130 out <<
"DATASET UNSTRUCTURED_GRID"
141 for (
int c = 0;
c < (
int)cells.size();
c++)
153 for (
int s = 0;
s < (
int)datanames.size(); ++
s) {
154 out <<
"SCALARS " << datanames[
s] <<
" float 1 \n LOOKUP_TABLE default \n";
177 if (path.size() > 0) {
190 out <<
"# vtk DataFile Version 4.0"
198 out <<
"DATASET UNSTRUCTURED_GRID"
209 for (
int c = 0;
c < (
int)cells.size();
c++)
221 for (
int s = 0;
s < (
int)datanames.size(); ++
s) {
222 out <<
"SCALARS " << datanames[
s] <<
" float 1 \n LOOKUP_TABLE default \n";
247 if (path.size() > 0) {
260 out <<
"# vtk DataFile Version 4.0"
268 out <<
"DATASET UNSTRUCTURED_GRID"
279 for (
int c = 0;
c < (
int)cells.size();
c++)
324 if (path.size() > 0) {
336 out <<
"# vtk DataFile Version 4.0"
344 out <<
"DATASET UNSTRUCTURED_GRID"
384 if (path.size() > 0) {
396 out <<
"# vtk DataFile Version 4.0"
404 out <<
"DATASET UNSTRUCTURED_GRID"
446 if (path.size() > 0) {
459 out <<
"# vtk DataFile Version 4.0"
467 out <<
"DATASET UNSTRUCTURED_GRID"
478 for (
int c = 0;
c < (
int)cells.size();
c++)
489 for (
int s = 0;
s < (
int)datanames.size(); ++
s) {
490 out <<
"SCALARS " << datanames[
s] <<
" float 1 \n LOOKUP_TABLE default \n";
513 if (path.size() > 0) {
526 out <<
"# vtk DataFile Version 4.0"
534 out <<
"DATASET UNSTRUCTURED_GRID"
545 for (
int c = 0;
c < (
int)cells.size();
c++) {
560 for (
int s = 0;
s < (
int)datanames.size(); ++
s) {
561 out <<
"SCALARS " << datanames[
s] <<
" float 1 \n LOOKUP_TABLE default \n";
585 if (path.size() > 0) {
598 out <<
"# vtk DataFile Version 4.0"
606 out <<
"DATASET UNSTRUCTURED_GRID"
617 for (
int c = 0;
c < (
int)cells.size();
c++) {
631 for (
int s = 0;
s < (
int)datanames.size(); ++
s) {
632 out <<
"SCALARS " << datanames[
s] <<
" float 1 \n LOOKUP_TABLE default \n";
654 if (path.size() > 0) {
666 out <<
"# vtk DataFile Version 4.0"
674 out <<
"DATASET UNSTRUCTURED_GRID"
685 for (
int c = 0;
c < (
int)cells.size();
c++)
std::string getFileExtension() override
std::shared_ptr< T > SPtr
#define UBLOG(level, logtext)
std::string writeQuadsWithNodeData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt4 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &nodedata) override
std::string writeLines(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt2 > &lines) override
std::string writeTrianglesWithNodeData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt3 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &nodedata) override
std::string writeOcts(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt8 > &cells) override
std::string writeQuads(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt4 > &cells) override
std::string writeTriangles(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt3 > &cells) override
std::string writeOctsWithCellData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt8 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &celldata) override
std::string writeQuadsWithNodeAndCellData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt4 > &cells, std::vector< std::string > &nodedatanames, std::vector< std::vector< double > > &nodedata, std::vector< std::string > &celldatanames, std::vector< std::vector< double > > &celldata) override
std::string writeOctsWithNodeData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleUInt8 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &nodedata) override
std::string writeQuadsWithCellData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleInt4 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &celldata) override
bool makeDirectory(const std::string &dir)
std::string getPathFromString(const std::string &fileStringWithPath)