This module is responsible for input and output of G+Smo objects to files.
The Input/Output module is responsible for visualization as well as file reading and writing. For visualization, we employ Paraview or Axel (which are in turn based on VTK). An important feature is file format support. G+Smo can read and write popular CAD formats, which include the 3DM file format of Rhinoceros 3D modeler, the X_T format of Siemens' NX platform, provided that the related extensions are enabled.
|
template<class T > |
void | gsWriteCsv (std::string const &filename, const gsMatrix< T > &matrix, const std::vector< std::string > &headers=std::vector< std::string >()) |
| Export a gsMatrix to a .csv (comma separated values) file. More...
|
|
template<short_t d, typename T > |
void | gsWriteGoToolsBodySpline (const gsTensorBSpline< d, T > &bspl, std::ofstream &out) |
| Writes body part of GoTools (.g2) format to a file. More...
|
|
template<class T > |
void | gsWriteParaview (const gsGeometry< T > &Geo, std::string const &fn, unsigned npts=NS, bool mesh=false, bool ctrlNet=false) |
| Export a gsGeometry (without scalar information) to paraview file. More...
|
|
void gismo::gsWriteCsv |
( |
std::string const & |
filename, |
|
|
const gsMatrix< T > & |
matrix, |
|
|
const std::vector< std::string > & |
headers = std::vector<std::string>() |
|
) |
| |
Export a gsMatrix to a .csv (comma separated values) file.
- Template Parameters
-
- Parameters
-
filename | path of output file |
matrix | a gsMatrix to be written to the file |
headers | optionally, a vector of strings to be used as column headers |
void gismo::gsWriteGoToolsBodySpline |
( |
const gsTensorBSpline< d, T > & |
bspl, |
|
|
std::ofstream & |
out |
|
) |
| |
Writes body part of GoTools (.g2) format to a file.
- Parameters
-
bspl | tensor B-Spline |
out | file stream |
void gsWriteParaview |
( |
const gsGeometry< T > & |
Geo, |
|
|
std::string const & |
fn, |
|
|
unsigned |
npts = NS , |
|
|
bool |
mesh = false , |
|
|
bool |
ctrlNet = false |
|
) |
| |
Export a gsGeometry (without scalar information) to paraview file.
Export a Geometry without scalar information.
- Parameters
-
Geo | a geometry object |
fn | filename where paraview file is written |
npts | number of points used for sampling each patch |
mesh | if true, the parameter mesh is plotted as well |
ctrlNet | if true, the control net is plotted as well |