38 void gsWriteParaview(
const gsGeometry<T> & Geo, std::string
const & fn,
39 unsigned npts=NS,
bool mesh =
false,
bool ctrlNet =
false);
50 void gsWriteParaview(gsMappedSpline<2,T>
const& mspline,
51 std::string
const & fn,
unsigned npts = NS);
66 void gsWriteParaview(gsMultiPatch<T>
const& mp, gsMultiBasis<T>
const& mb,
67 std::string
const & fn,
unsigned npts = NS);
81 void gsWriteParaview(gsFunctionSet<T>
const& geom,
82 gsMappedBasis<2,T>
const& mbasis,
83 std::string
const & fn,
unsigned npts = NS,
84 const bool fullsupport =
false,
85 const std::vector<index_t> indices = std::vector<index_t>());
97 void gsWriteParaview(gsMesh<T>
const& sl, std::string
const & fn,
const gsMatrix<T>& params);
99 GISMO_EXPORT
void gsWriteParaview(
const gsSurfMesh & sm,
100 std::string
const & fn,
101 std::initializer_list<std::string> props = {});
107 template <
typename T>
108 void gsWriteParaview(
const std::vector<gsMesh<T> >& meshes, std::string
const& fn);
119 void gsWriteParaview(
const gsField<T> & field, std::string
const & fn,
120 unsigned npts=NS,
bool mesh =
false,
const std::string pDelim =
"");
129 void gsWriteParaview(gsFunctionSet<T>
const& geo, gsFunctionSet<T>
const& func,
130 std::string
const & fn,
unsigned npts = NS,
const std::string pDelim =
"");
141 unsigned npts=NS,
bool mesh =
false,
bool ctrlNet =
false,
const std::string pDelim =
"_")
143 gsWriteParaview( Geo.
patches(), fn, npts, mesh, ctrlNet, pDelim);
154 void gsWriteParaview( std::vector<gsGeometry<T> *>
const & Geo,
155 std::string
const & fn,
unsigned npts=NS,
156 bool mesh =
false,
bool ctrlNet =
false,
const std::string pDelim =
"_");
160 void gsWriteParaview(
const gsMultiBasis<T> & mb,
const gsMultiPatch<T> & domain,
161 std::string
const & fn,
unsigned npts);
171 std::string
const & fn,
unsigned npts =NS);
180 void gsWriteParaview(
const gsGeometrySlice<T> & Geo,
181 std::string
const & fn,
unsigned npts =NS);
189 void gsWriteParaview(gsFunctionSet<T>
const& func,
190 std::string
const & fn,
202 void gsWriteParaview(gsFunction<T>
const& func,
203 gsMatrix<T>
const& supp,
204 std::string
const & fn,
215 void gsWriteParaview(gsBasis<T>
const& basis, std::string
const & fn,
216 unsigned npts =NS,
bool mesh =
false);
225 void gsWriteParaview(gsHBox<2,T> & box, std::string
const & fn);
234 void gsWriteParaview(gsHBoxContainer<2,T> & box, std::string
const & fn);
244 gsMatrix<T>
const& Y,
245 std::string
const & fn);
255 gsMatrix<T>
const& Y,
256 gsMatrix<T>
const& Z,
257 std::string
const & fn);
292 void gsWriteParaview(gsSolid<T>
const& sl, std::string
const & fn,
293 unsigned numPoints_for_eachCurve=50,
int vol_Num=0,
294 T edgeThick=0.01, gsVector3d<T>
const & translate=gsVector3d<T>(0,0,0),
295 int color_convex=0,
int color_nonconvex=20,
int color_eloop=10,
296 std::vector<unsigned>
const & eloop=std::vector<unsigned>());
301 std::string
const & fn,
302 unsigned numSamples = NS);
310 void gsWriteParaview(
gsCurveLoop<T> const & cloop, std::string
const & fn,
unsigned npts)
312 std::vector<gsGeometry<T> *> all_curves;
314 all_curves.push_back( const_cast<
gsCurve<T> *>(cloop.curve(j)) );
316 gsWriteParaview( all_curves, fn, npts);
325 void gsWriteParaview(gsPlanarDomain<T>
const & pdomain,
326 std::string
const & fn,
unsigned npts=NS);
330 void gsWriteParaview(
const gsTrimSurface<T> & ts, std::string
const & fn,
331 unsigned npts=NS,
bool trimCurves =
false);
341 void gsWriteParaview(
const gsVolumeBlock<T>& volBlock,
342 std::string
const & fn,
355 std::string
const & fn,
356 unsigned npts,
bool ctrlNet);
368 std::string
const & fn,
369 unsigned npts,
bool ctrlNet);
377 void gsWriteParaview(gsMultiPatch<T>
const & patches,
378 typename gsBoundaryConditions<T>::bcContainer
const & bcs,
379 std::string
const & fn,
unsigned npts=NS,
bool ctrlNet=
false);
390 const unsigned idLoop,
391 const unsigned idCurve,
392 const std::string fn,
397 void writeSinglePatchField(
const gsFunction<T> & geometry,
398 const gsFunction<T> & parField,
400 std::string
const & fn,
unsigned npts);
405 std::string
const & fn,
unsigned resolution = 8);
414 std::string
const & fn);
418 void plot_errors(
const gsMatrix<T> & orig,
419 const gsMatrix<T> & comp,
420 std::vector<T>
const & errors,
421 std::string
const & fn);
424 #ifdef GISMO_WITH_PYBIND11
429 void pybind11_init_gsWriteParaview(pybind11::module &m);
431 #endif // GISMO_WITH_PYBIND11
441 #ifndef GISMO_BUILD_LIB
442 #include GISMO_HPP_HEADER(gsWriteParaview.hpp)
void gsWriteParaview_basisFnct(int i, gsBasis< T > const &basis, std::string const &fn, unsigned npts=NS)
Export i-th Basis function to paraview file.
Definition: gsWriteParaview.hpp:984
Abstract base class representing a curve.
Definition: gsCurve.h:30
int numCurves() const
get Number of curves
Definition: gsCurveLoop.h:172
void gsWriteParaviewIfc(gsMultiPatch< T > const &patches, std::string const &fn, unsigned npts, bool ctrlNet)
Writes the interfaces of a multipatch to paraview.
Definition: gsWriteParaview.hpp:1967
#define index_t
Definition: gsConfig.h:32
void gsWriteParaviewPoints(gsMatrix< T > const &X, gsMatrix< T > const &Y, std::string const &fn)
Export 2D Point set to Paraview file.
Definition: gsWriteParaview.hpp:1267
Handles shared library creation and other class attributes.
void gsWriteParaviewTrimmedCurve(const gsTrimSurface< T > &surf, const unsigned idLoop, const unsigned idCurve, const std::string fn, unsigned npts=NS)
Export a boundary/hole curve in trimmed surface.
Definition: gsWriteParaview.hpp:1992
void gsWriteParaviewSolid(gsSolid< T > const &sl, std::string const &fn, unsigned numSamples=NS)
Export a gsSolid to Paraview file.
Definition: gsWriteParaview.hpp:1665
Provides forward declarations of types and structs.
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition: gsMultiPatch.h:33
void writeSingleCompMesh(const gsBasis< T > &basis, const gsGeometry< T > &Geo, std::string const &fn, unsigned resolution=8)
Export a computational mesh.
Definition: gsWriteParaview.hpp:232
void gsWriteParaviewBdr(gsMultiPatch< T > const &patches, std::string const &fn, unsigned npts, bool ctrlNet)
Writes the boundaries of a multipatch to paraview.
Definition: gsWriteParaview.hpp:1954
void writeSingleHBox(gsHBox< 2, T > &box, std::string const &fn)
Export a gsHBox.
Definition: gsWriteParaview.hpp:1180
A closed loop given by a collection of curves.
Definition: gsCurveLoop.h:36
PatchContainer const & patches() const
Returns a vector of patches // to do : replace by copies.
Definition: gsMultiPatch.h:211
void writeSingleControlNet(const gsGeometry< T > &Geo, std::string const &fn)
Export a control net.
Definition: gsWriteParaview.hpp:248