Public Member Functions | Private Member Functions | Private Attributes
triSurfaceCopyParts Class Reference
Collaboration diagram for triSurfaceCopyParts:
Collaboration graph
[legend]

Public Member Functions

 triSurfaceCopyParts (const triSurf &surface)
 Construct from octree. More...
 
 ~triSurfaceCopyParts ()
 
void copySurface (const wordList &, triSurf &) const
 copies selected patches/subsets to an already created mesh More...
 
triSurfcopySurface (const wordList &) const
 creates a new surface mesh and copies selected patches/subsets More...
 

Private Member Functions

void markFacetsForCopying (const wordList &, boolList &) const
 mark facets which shall be copied More...
 
void copySurfaceMesh (const boolList &, triSurf &) const
 copies data to a new surface mesh More...
 
 triSurfaceCopyParts (const triSurfaceCopyParts &)
 Disallow default bitwise copy construct. More...
 
void operator= (const triSurfaceCopyParts &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const triSurfsurf_
 reference to triSurf More...
 

Detailed Description

Definition at line 49 of file triSurfaceCopyParts.H.

Constructor & Destructor Documentation

◆ triSurfaceCopyParts() [1/2]

Disallow default bitwise copy construct.

◆ triSurfaceCopyParts() [2/2]

triSurfaceCopyParts ( const triSurf surface)

Construct from octree.

Definition at line 275 of file triSurfaceCopyParts.C.

◆ ~triSurfaceCopyParts()

Definition at line 280 of file triSurfaceCopyParts.C.

Member Function Documentation

◆ markFacetsForCopying()

void markFacetsForCopying ( const wordList parts,
boolList copyFacets 
) const
private

mark facets which shall be copied

mark patches which will be copied

select facets affected by the deletion of a patch

mark facets contained in selected subsets

Definition at line 39 of file triSurfaceCopyParts.C.

References forAll, Foam::name(), patches, and List::setSize().

Referenced by triSurfaceCopyParts::copySurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copySurfaceMesh()

void copySurfaceMesh ( const boolList copyFacets,
triSurf s 
) const
private

copies data to a new surface mesh

create the modifier and delete data if there is any

copy selected patches

copy vertices

copy point subsets

copy facet subsets

copy feature edges

copy subsets of feature edges

Definition at line 98 of file triSurfaceCopyParts.C.

References LongList< T, Offset >::append(), LongList< T, Offset >::clear(), Foam::e, Foam::endl(), triSurfModifier::facetsAccess(), triSurfModifier::featureEdgesAccess(), forAll, forAllRow, Foam::Info, nPoints, triSurfModifier::patchesAccess(), triSurfModifier::pointsAccess(), labelledTri::region(), s(), List::setSize(), and LongList< T, Offset >::size().

Referenced by triSurfaceCopyParts::copySurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const triSurfaceCopyParts )
private

Disallow default bitwise assignment.

◆ copySurface() [1/2]

void copySurface ( const wordList patches,
triSurf s 
) const

copies selected patches/subsets to an already created mesh

Definition at line 285 of file triSurfaceCopyParts.C.

References triSurfaceCopyParts::copySurfaceMesh(), triSurfaceCopyParts::markFacetsForCopying(), patches, s(), triSurfFacets::size(), and triSurfaceCopyParts::surf_.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copySurface() [2/2]

triSurf * copySurface ( const wordList patches) const

creates a new surface mesh and copies selected patches/subsets

Definition at line 294 of file triSurfaceCopyParts.C.

References triSurfaceCopyParts::copySurfaceMesh(), triSurfaceCopyParts::markFacetsForCopying(), patches, triSurfFacets::size(), and triSurfaceCopyParts::surf_.

Here is the call graph for this function:

Field Documentation

◆ surf_

const triSurf& surf_
private

reference to triSurf

Definition at line 53 of file triSurfaceCopyParts.H.

Referenced by triSurfaceCopyParts::copySurface().


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