C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844

Results for checking sell self-intersection. More...

#include <check_geometry.h>

Public Member Functions

 MbShellSelfIntResults ()
 Default constructor.
 
 ~MbShellSelfIntResults ()
 Destructor.
 
void AddResult (size_t faceIndex1, size_t faceIndex2, c3d::SpaceCurvesSPtrVector *intersectionCurves=nullptr)
 Add the result of self-intersection processing for a pair of faces.
 
bool GetResult (size_t index, size_t &faceIndex1, size_t &faceIndex2, c3d::SpaceCurvesSPtrVector *intersectionCurves) const
 Get the result of self-intersection processing for a pair of faces. More...
 
size_t Count () const
 Get the number of pairs of intersecting and self-intersecting faces.
 
void Reset ()
 Set defaults.
 
void ReserveResult (size_t count)
 Reserve the size the array of pairs of intersecting and self-intersecting faces.
 

Detailed Description

Results for checking sell self-intersection.

Results for checking sell self-intersection.

Warning
Under development.

Member Function Documentation

◆ GetResult()

bool MbShellSelfIntResults::GetResult ( size_t  index,
size_t &  faceIndex1,
size_t &  faceIndex2,
c3d::SpaceCurvesSPtrVector *  intersectionCurves 
) const

Get the result of self-intersection processing for a pair of faces.

Get indices of intersecting/self-intersecting faces and intersection curves (for a pair of different faces) by index. If the 'intersectionCurves' parameter is nullptr, intersection curves are not returned. If faceIndex1 == faceIndex2 means face with the index faceIndex1 self-intersects. Intersection curves are not calculated and 'intersectionCurves' will be empty.

Parameters
[in]index- Result index for a pair of faces.
[out]faceIndex1- First face index.
[out]faceIndex2- Second face index.
[out]intersectionCurves- Pointer to a vector of curves where two faces intersect. If intersectionCurves = nullptr - intersection curves do not return.
Returns
Returns: false, if there is no result with the given index; true, if a result with the given index is found;

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