38void gsWriteParaview(
const gsGeometry<T> & Geo, std::string
const & fn,
39 unsigned npts=NS,
bool mesh =
false,
bool ctrlNet =
false);
50void gsWriteParaview(gsMappedSpline<2,T>
const& mspline,
51 std::string
const & fn,
unsigned npts = NS);
66void gsWriteParaview(gsMultiPatch<T>
const& mp, gsMultiBasis<T>
const& mb,
67 std::string
const & fn,
unsigned npts = NS);
81void 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>());
97void gsWriteParaview(gsMesh<T>
const& sl, std::string
const & fn,
const gsMatrix<T>& params);
99GISMO_EXPORT
void gsWriteParaview(
const gsSurfMesh & sm,
100 std::string
const & fn,
101 std::initializer_list<std::string> props = {});
108void gsWriteParaview(
const std::vector<gsMesh<T> >& meshes, std::string
const& fn);
119void gsWriteParaview(
const gsField<T> & field, std::string
const & fn,
120 unsigned npts=NS,
bool mesh =
false,
const std::string pDelim =
"");
129void 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);
153void gsWriteParaviewBezier(
const gsMultiPatch<T> & mPatch, std::string
const & filename,
bool ctrlNet =
false);
163void gsWriteParaview( std::vector<gsGeometry<T> *>
const & Geo,
164 std::string
const & fn,
unsigned npts=NS,
165 bool mesh =
false,
bool ctrlNet =
false,
const std::string pDelim =
"_");
169void gsWriteParaview(
const gsMultiBasis<T> & mb,
const gsMultiPatch<T> & domain,
170 std::string
const & fn,
unsigned npts);
180 std::string
const & fn,
unsigned npts =NS);
189void gsWriteParaview(
const gsGeometrySlice<T> & Geo,
190 std::string
const & fn,
unsigned npts =NS);
198void gsWriteParaview(gsFunctionSet<T>
const& func,
199 std::string
const & fn,
211void gsWriteParaview(gsFunction<T>
const& func,
212 gsMatrix<T>
const& supp,
213 std::string
const & fn,
224void gsWriteParaview(gsBasis<T>
const& basis, std::string
const & fn,
225 unsigned npts =NS,
bool mesh =
false);
234void gsWriteParaview(gsBasis<T>
const& basis,
235 std::vector<index_t>
const & indices,
236 std::string
const & fn,
237 unsigned npts =NS,
bool mesh =
false);
245void gsWriteParaview(
const gsMatrix<T> & box, std::string
const & fn, T value = 0.0);
252void gsWriteParaview(
const gsMatrix<T> & box,
const gsVector<T> & values, std::string
const & fn);
259void gsWriteParaview(
const gsHBox<2,T> & box, std::string
const & fn);
268void gsWriteParaview(
const gsHBoxContainer<2,T> & box, std::string
const & fn);
278 gsMatrix<T>
const& Y,
279 std::string
const & fn);
289 gsMatrix<T>
const& Y,
290 gsMatrix<T>
const& Z,
291 std::string
const & fn);
302 gsMatrix<T>
const& Y,
303 gsMatrix<T>
const& Z,
304 gsMatrix<T>
const& V,
305 std::string
const & fn);
340void gsWriteParaview(gsSolid<T>
const& sl, std::string
const & fn,
341 unsigned numPoints_for_eachCurve=50,
int vol_Num=0,
342 T edgeThick=0.01, gsVector3d<T>
const & translate=gsVector3d<T>(0,0,0),
343 int color_convex=0,
int color_nonconvex=20,
int color_eloop=10,
344 std::vector<unsigned>
const & eloop=std::vector<unsigned>());
349 std::string
const & fn,
350 unsigned numSamples = NS);
358void gsWriteParaview(
gsCurveLoop<T> const & cloop, std::string
const & fn,
unsigned npts)
360 std::vector<gsGeometry<T> *> all_curves;
362 all_curves.push_back(
const_cast<gsCurve<T> *
>(cloop.curve(j)) );
364 gsWriteParaview( all_curves, fn, npts);
373void gsWriteParaview(gsPlanarDomain<T>
const & pdomain,
374 std::string
const & fn,
unsigned npts=NS);
378void gsWriteParaview(
const gsTrimSurface<T> & ts, std::string
const & fn,
379 unsigned npts=NS,
bool trimCurves =
false);
389void gsWriteParaview(
const gsVolumeBlock<T>& volBlock,
390 std::string
const & fn,
403 std::string
const & fn,
404 unsigned npts,
bool ctrlNet);
416 std::string
const & fn,
417 unsigned npts,
bool ctrlNet);
425void gsWriteParaview(gsMultiPatch<T>
const & patches,
426 typename gsBoundaryConditions<T>::bcContainer
const & bcs,
427 std::string
const & fn,
unsigned npts=NS,
bool ctrlNet=
false);
438 const unsigned idLoop,
439 const unsigned idCurve,
440 const std::string fn,
445void writeSinglePatchField(
const gsFunction<T> & geometry,
446 const gsFunction<T> & parField,
448 std::string
const & fn,
unsigned npts);
453 std::string
const & fn,
unsigned resolution = 8);
457void writeSingleBox(
const gsMatrix<T> & box, std::string
const & fn, T value);
466 std::string
const & fn);
470void plot_errors(
const gsMatrix<T> & orig,
471 const gsMatrix<T> & comp,
472 std::vector<T>
const & errors,
473 std::string
const & fn);
476#ifdef GISMO_WITH_PYBIND11
481 void pybind11_init_gsWriteParaview(pybind11::module &m);
493#ifndef GISMO_BUILD_LIB
494#include GISMO_HPP_HEADER(gsWriteParaview.hpp)
A closed loop given by a collection of curves.
Definition gsCurveLoop.h:37
int numCurves() const
get Number of curves
Definition gsCurveLoop.h:172
Abstract base class representing a curve.
Definition gsCurve.h:31
Container class for a set of geometry patches and their topology, that is, the interface connections ...
Definition gsMultiPatch.h:100
PatchContainer const & patches() const
Returns a vector of patches // to do : replace by copies.
Definition gsMultiPatch.h:277
#define index_t
Definition gsConfig.h:32
Handles shared library creation and other class attributes.
Provides forward declarations of types and structs.
The G+Smo namespace, containing all definitions for the library.
void gsWriteParaviewSolid(gsSolid< T > const &sl, std::string const &fn, unsigned numSamples=NS)
Export a gsSolid to Paraview file.
Definition gsWriteParaview.hpp:1781
void writeSingleHBox(const gsHBox< 2, T > &box, std::string const &fn)
Export a gsHBox.
Definition gsWriteParaview.hpp:1296
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:1011
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 writeSingleBox(const gsMatrix< T > &box, std::string const &fn, T value)
Export an element box.
Definition gsWriteParaview.hpp:1237
void writeSingleControlNet(const gsGeometry< T > &Geo, std::string const &fn)
Export a control net.
Definition gsWriteParaview.hpp:248
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:2070
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:2108
void gsWriteParaviewPoints(gsMatrix< T > const &X, gsMatrix< T > const &Y, std::string const &fn)
Export 2D Point set to Paraview file.
Definition gsWriteParaview.hpp:1383
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:2083
void gsWriteParaviewBezier(const gsMultiPatch< T > &mPatch, std::string const &filename, bool ctrlNet=false)
Export a multipatch Geometry (without scalar information) to paraview file using Bezier elements.
Definition gsWriteParaview.hpp:984