G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsWriteParasolid.h File Reference

Provides declaration of gsWriteParasolid functions. More...

+ Include dependency graph for gsWriteParasolid.h:

Go to the source code of this file.

Namespaces

namespace  gismo
 The G+Smo namespace, containing all definitions for the library.
 

Functions

template<class T >
bool createPK_BCURVE (const gsBSpline< T > &curve, PK_BCURVE_t &bcurve)
 
template<class T >
bool createPK_BSURF (const gsTensorBSpline< 2, T > &bsp, PK_BSURF_t &bsurf, bool closed_u=false, bool closed_v=false)
 
template<class T >
bool createPK_GEOM (const gsGeometry< T > &ggeo, PK_GEOM_t &pgeo)
 
template<class T >
bool exportMesh (const gsMesh< T > &mesh, PK_BODY_t &body)
 
template<class T >
bool exportTHBsurface (const gsTHBSpline< 2, T > &surface, const std::vector< T > &par_boxes, PK_ASSEMBLY_t &body)
 
template<class T >
bool exportTHBsurface (const gsTHBSpline< 2, T > &surface, PK_ASSEMBLY_t &body)
 
template<class T >
bool getParBoxAsIndexBoxInLevel (const gsTHBSplineBasis< 2, T > &basis, unsigned lvl, const std::vector< real_t > &par_box, std::vector< unsigned > &index_box)
 
template<class T >
bool gsWriteParasolid (const gsGeometry< T > &ggeo, std::string const &filename)
 
template<class T >
bool gsWritePK_SHEET (const gsTensorBSpline< 2, T > &tp, const std::string &filename)
 Converts tp into a PK_SHEET and writes it to filename.xmt_txt.
 
template<class T >
bool parBoxesIntersect (const std::vector< T > &par_boxes)
 

Detailed Description

Provides declaration of gsWriteParasolid functions.

This file is part of the G+Smo library.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Author(s): A. Mantzaflaris

Function Documentation

◆ createPK_BCURVE()

template<class T >
bool createPK_BCURVE ( const gsBSpline< T > &  curve,
PK_BCURVE_t &  bcurve 
)

Translates a gsBSpline to a PK_BCURVE_t

Parameters
[in]curveB-Spline surve
[out]bcurveParasolid spline curve

◆ createPK_BSURF()

template<class T >
bool createPK_BSURF ( const gsTensorBSpline< 2, T > &  bsp,
PK_BSURF_t &  bsurf,
bool  closed_u = false,
bool  closed_v = false 
)

Translates a gsTensorBSpline to a PK_BSURF_t

Parameters
[in]bspB-spline surface
[out]bsurfParasolid spline surface

◆ createPK_GEOM()

template<class T >
bool createPK_GEOM ( const gsGeometry< T > &  ggeo,
PK_GEOM_t &  pgeo 
)

Translates a gsGeometry to a PK_GEOM_t

Parameters
[in]ggeoinpute G+SMO geometry
[out]pgeoParasolid geometric entity

◆ exportMesh()

template<class T >
bool exportMesh ( const gsMesh< T > &  mesh,
PK_BODY_t &  body 
)

Translates a gsMesh to PK_BODY_t

Parameters
[in]meshinput G+Smo mesh
[out]bodyParasolid wire body

◆ exportTHBsurface() [1/2]

template<class T >
bool exportTHBsurface ( const gsTHBSpline< 2, T > &  surface,
const std::vector< T > &  par_boxes,
PK_ASSEMBLY_t &  body 
)

Translates a THB-Spline surface to PK_BODY_t

Parameters
[in]surfaceTHB-Spline surface
[in]boxeswhich give the splitting of the domain
[out]bodyParasolid body

◆ exportTHBsurface() [2/2]

template<class T >
bool exportTHBsurface ( const gsTHBSpline< 2, T > &  surface,
PK_ASSEMBLY_t &  body 
)

Translates a THB-Spline surface to PK_BODY_t

Parameters
[in]surfaceTHB-Spline surface
[out]bodyParasolid body

◆ getParBoxAsIndexBoxInLevel()

template<class T >
bool getParBoxAsIndexBoxInLevel ( const gsTHBSplineBasis< 2, T > &  basis,
unsigned  lvl,
const std::vector< real_t > &  par_box,
std::vector< unsigned > &  index_box 
)

Translates a box in the parameter space to a box in index space of the given lvl, which contains the parameter box

Parameters
[in]thbspline basis
[in]lvl
[in]theparameter box of size 4 [lowU,lowV,upU,upV]
[out]theindex box of size 5 [lvl,lowIndexU,lowIndexV,upIndexU,upIndexV]

◆ gsWriteParasolid()

template<class T >
bool gsWriteParasolid ( const gsGeometry< T > &  ggeo,
std::string const &  filename 
)

Writes a gsSurface to a parasolid file

Parameters
gssurfa surface
fnamefilename (without extension)

◆ parBoxesIntersect()

template<class T >
bool parBoxesIntersect ( const std::vector< T > &  par_boxes)

Checks if there are intersections in a given vector of par_boxes

Parameters
[in]vectorof real_t, always 4 elements describe a box: [lowU,lowV,upU,upV]