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>
|
| 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.
|
| | 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.
|
| TopoDS_Shape | PatchedShape () |
| | PatchedShape returns the patched shape calculated by the algorithm.
|
| void | SetMakeSolid (bool enabled=true) |
| | Determine, whether the resulting shape shall be a solid or a closed shell.
|
|
| void | Perform () |
| | Perform contains the main algorithm.
|
|
| bool | _hasPerformed = false |
| TopoDS_Shape const & | _inputShell |
| | _inputShell The input faces
|
| bool | _makeSolid = true |
| TopoDS_Shape | _result |
| | _result the resulting shape of the calculation
|
| std::vector< TopoDS_Face > | _sidecaps |
| | _sidecaps a list of faces created to fill holes using the function AddSideCap
|
| double | _tolerance = 1e-6 |
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.
◆ 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
-
| shell | The input shape of the algorithm |
| tolerance | the tolerance used in the OpenCascade functions |
◆ 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
-
| boundaryWire | the 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
-
| enabled | boolean whether to create a solid or not |
◆ _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: