3.4.0
tigl::CTiglPatchShell Class Reference

The CTiglPatchShell class can be used to create watertight geometries and solids from a TopoDS_Shell consisting of several faces. Side Caps for holes can be added by supplying the boundary of the hole as a TopoDS_Wire. By Default the algorithm tries to make a solid. Use SetMakeSolid(false) to make a closed shell. More...

#include <CTiglPatchShell.h>

Public Member Functions

void AddSideCap (TopoDS_Wire const &boundaryWire)
 AddSideCap lets the user add faces to the shape to close holes. This is done by providing the boundary of the hole as a wire. More...
 
 CTiglPatchShell (TopoDS_Shape const &shell, double tolerance=1e-6)
 CTiglPatchShell constructor of the shell patcher. Input is a TopoDS_Shell, possibly with holes that are to be patched using this class. More...
 
TopoDS_Shape PatchedShape ()
 PatchedShape returns the patched shape calculated by the algorithm. More...
 
void SetMakeSolid (bool enabled=true)
 Determine, whether the resulting shape shall be a solid or a closed shell. More...
 

Private Member Functions

void Perform ()
 Perform contains the main algorithm. More...
 

Private Attributes

bool _hasPerformed = false
 
TopoDS_Shape const & _inputShell
 _inputShell The input faces More...
 
bool _makeSolid = true
 
TopoDS_Shape _result
 _result the resulting shape of the calculation More...
 
std::vector< TopoDS_Face > _sidecaps
 _sidecaps a list of faces created to fill holes using the function AddSideCap More...
 
double _tolerance = 1e-6
 

Detailed Description

The CTiglPatchShell class can be used to create watertight geometries and solids from a TopoDS_Shell consisting of several faces. Side Caps for holes can be added by supplying the boundary of the hole as a TopoDS_Wire. By Default the algorithm tries to make a solid. Use SetMakeSolid(false) to make a closed shell.

Constructor & Destructor Documentation

◆ CTiglPatchShell()

tigl::CTiglPatchShell::CTiglPatchShell ( TopoDS_Shape const &  shell,
double  tolerance = 1e-6 
)
explicit

CTiglPatchShell constructor of the shell patcher. Input is a TopoDS_Shell, possibly with holes that are to be patched using this class.

Parameters
shellThe input shape of the algorithm
tolerancethe tolerance used in the OpenCascade functions

Member Function Documentation

◆ AddSideCap()

void tigl::CTiglPatchShell::AddSideCap ( TopoDS_Wire const &  boundaryWire)

AddSideCap lets the user add faces to the shape to close holes. This is done by providing the boundary of the hole as a wire.

Parameters
boundaryWirethe boundary of the hole that needs patching

◆ PatchedShape()

TopoDS_Shape tigl::CTiglPatchShell::PatchedShape ( )

PatchedShape returns the patched shape calculated by the algorithm.

Returns
the patched shape

◆ Perform()

void tigl::CTiglPatchShell::Perform ( )
private

Perform contains the main algorithm.

◆ SetMakeSolid()

void tigl::CTiglPatchShell::SetMakeSolid ( bool  enabled = true)
inline

Determine, whether the resulting shape shall be a solid or a closed shell.

Parameters
enabledboolean whether to create a solid or not

Field Documentation

◆ _hasPerformed

bool tigl::CTiglPatchShell::_hasPerformed = false
private

◆ _inputShell

TopoDS_Shape const& tigl::CTiglPatchShell::_inputShell
private

_inputShell The input faces

◆ _makeSolid

bool tigl::CTiglPatchShell::_makeSolid = true
private

◆ _result

TopoDS_Shape tigl::CTiglPatchShell::_result
private

_result the resulting shape of the calculation

◆ _sidecaps

std::vector<TopoDS_Face> tigl::CTiglPatchShell::_sidecaps
private

_sidecaps a list of faces created to fill holes using the function AddSideCap

◆ _tolerance

double tigl::CTiglPatchShell::_tolerance = 1e-6
private

The documentation for this class was generated from the following file: