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

Public Member Functions

 triSurfaceCleanupDuplicates (const meshOctree &octree, const scalar tol=1e-6)
 Construct from meshOctree and tolerance. More...
 
 ~triSurfaceCleanupDuplicates ()
 
void mergeIdentities ()
 merge duplicate vertices and triangles More...
 

Private Member Functions

bool checkDuplicateTriangles ()
 Check duplicate triangles. More...
 
bool mergeDuplicatePoints ()
 Check duplicate points. More...
 
void updateTriangleLabels (const labelLongList &)
 update triangle mapping More...
 
 triSurfaceCleanupDuplicates (const triSurfaceCleanupDuplicates &)
 Disallow default bitwise copy construct. More...
 
void operator= (const triSurfaceCleanupDuplicates &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const scalar tolerance_
 tolerance for points More...
 
triSurfsurf_
 reference to triSurf More...
 
const meshOctreeoctree_
 reference to octree More...
 
labelLongList newTriangleLabel_
 new triangle labels in case some of them is removed More...
 
bool done_
 check if the operation has already been performed More...
 

Detailed Description

Definition at line 53 of file triSurfaceCleanupDuplicates.H.

Constructor & Destructor Documentation

◆ triSurfaceCleanupDuplicates() [1/2]

Disallow default bitwise copy construct.

◆ triSurfaceCleanupDuplicates() [2/2]

triSurfaceCleanupDuplicates ( const meshOctree octree,
const scalar  tol = 1e-6 
)

Construct from meshOctree and tolerance.

Definition at line 40 of file triSurfaceCleanupDuplicates.C.

◆ ~triSurfaceCleanupDuplicates()

Definition at line 52 of file triSurfaceCleanupDuplicates.C.

Member Function Documentation

◆ checkDuplicateTriangles()

bool checkDuplicateTriangles ( )
private

Check duplicate triangles.

check if there exist duplicate triangles

return if there exist no duplicate triangles

create new list of triangles and store it in the surface mesh

Definition at line 45 of file triSurfaceCleanupDuplicatesFunctions.C.

References Foam::endl(), triSurfModifier::facetsAccess(), forAll, Foam::Info, triSurfAddressing::pointFacets(), triSurfFacets::size(), LongList< T, Offset >::size(), triSurfaceCleanupDuplicates::surf_, triSurfFacets::updateFacetsSubsets(), and triSurfaceCleanupDuplicates::updateTriangleLabels().

Referenced by triSurfaceCleanupDuplicates::mergeIdentities().

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

◆ mergeDuplicatePoints()

bool mergeDuplicatePoints ( )
private

◆ updateTriangleLabels()

void updateTriangleLabels ( const labelLongList newTriangleLabel)
private

update triangle mapping

update addressing between the original triangles and the cleaned mesh

Definition at line 246 of file triSurfaceCleanupDuplicatesFunctions.C.

References forAll.

Referenced by triSurfaceCleanupDuplicates::checkDuplicateTriangles(), and triSurfaceCleanupDuplicates::mergeDuplicatePoints().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const triSurfaceCleanupDuplicates )
private

Disallow default bitwise assignment.

◆ mergeIdentities()

void mergeIdentities ( )

Field Documentation

◆ tolerance_

const scalar tolerance_
private

tolerance for points

Definition at line 57 of file triSurfaceCleanupDuplicates.H.

Referenced by triSurfaceCleanupDuplicates::mergeDuplicatePoints().

◆ surf_

triSurf& surf_
private

◆ octree_

const meshOctree& octree_
private

reference to octree

Definition at line 63 of file triSurfaceCleanupDuplicates.H.

Referenced by triSurfaceCleanupDuplicates::mergeDuplicatePoints().

◆ newTriangleLabel_

labelLongList newTriangleLabel_
private

new triangle labels in case some of them is removed

Definition at line 66 of file triSurfaceCleanupDuplicates.H.

Referenced by triSurfaceCleanupDuplicates::mergeDuplicatePoints(), and triSurfaceCleanupDuplicates::mergeIdentities().

◆ done_

bool done_
private

check if the operation has already been performed

Definition at line 69 of file triSurfaceCleanupDuplicates.H.

Referenced by triSurfaceCleanupDuplicates::mergeIdentities().


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