The MeshPoint class represents a point in the mesh data structure. More...
#include <Elements.h>
Public Types | |
enum | TFlagType { INVALID = 1, VISIT = 2, SEGMENT = 4, MARKED = 8, SELECTED = 16, REV = 32, TMP0 = 64, TMP1 = 128 } |
Public Member Functions | |
bool | operator< (const MeshPoint &rclPt) const |
MeshPoint & | operator= (const MeshPoint &rclPt) |
Assignment. | |
bool | operator== (const Base::Vector3f &rclV) const |
bool | operator== (const MeshPoint &rclPt) const |
Comparing for equality. | |
Flag state | |
bool | IsFlag (TFlagType tF) const |
bool | IsValid (void) const |
void | ResetFlag (TFlagType tF) const |
void | ResetInvalid (void) const |
void | SetFlag (TFlagType tF) const |
void | SetInvalid (void) const |
void | SetProperty (unsigned long uP) const |
Construction | |
MeshPoint (const MeshPoint &rclPt) | |
MeshPoint (const Base::Vector3f &rclPt) | |
MeshPoint (void) | |
~MeshPoint (void) | |
Public Attributes | |
unsigned char | _ucFlag |
Flag member. | |
unsigned long | _ulProp |
Free usable property. |
The MeshPoint class represents a point in the mesh data structure.
The class inherits from Vector3f and provides some additional information such as flag state and property value. The flags can be modified by the Set() and Reset() and queried by IsFlag(). A point can temporary be in an invalid state (e.g during deletion of several points), but must not be set in general, i.e. always usable within a mesh-internal algorithm.
Note: The status flag SEGMENT mark a point to be part of certain subset, a segment. This flag must not be set by any algorithm unless it adds or removes points to a segment.
Note: The status flag SELECTED mark a point to be selected which is e.g. used in the GUI. This flag must not be set by any algorithm unless it adds or removes points to the selection.
Definition at line 86 of file Elements.h.
Definition at line 89 of file Elements.h.
MeshCore::MeshPoint::MeshPoint | ( | void | ) | [inline] |
Definition at line 93 of file Elements.h.
MeshCore::MeshPoint::MeshPoint | ( | const Base::Vector3f & | rclPt | ) | [inline] |
Definition at line 583 of file Elements.h.
MeshCore::MeshPoint::MeshPoint | ( | const MeshPoint & | rclPt | ) | [inline] |
Definition at line 594 of file Elements.h.
MeshCore::MeshPoint::~MeshPoint | ( | void | ) | [inline] |
Definition at line 96 of file Elements.h.
bool MeshCore::MeshPoint::IsFlag | ( | TFlagType | tF | ) | const [inline] |
Definition at line 108 of file Elements.h.
bool MeshCore::MeshPoint::IsValid | ( | void | ) | const [inline] |
Definition at line 114 of file Elements.h.
Referenced by MeshCore::MeshKernel::DeletePoints(), and MeshCore::MeshKernel::RemoveInvalids().
bool MeshCore::MeshPoint::operator< | ( | const MeshPoint & | rclPt | ) | const [inline] |
Definition at line 627 of file Elements.h.
References MeshCore::MeshDefinitions::_fMinPointDistanceD1, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Assignment.
Reimplemented from Base::Vector3< _Precision >.
Definition at line 605 of file Elements.h.
bool MeshCore::MeshPoint::operator== | ( | const Base::Vector3f & | rclV | ) | const [inline] |
Definition at line 622 of file Elements.h.
References MeshCore::MeshDefinitions::_fMinPointDistanceP2, and Base::DistanceP2().
bool MeshCore::MeshPoint::operator== | ( | const MeshPoint & | rcVct | ) | const [inline] |
Comparing for equality.
Reimplemented from Base::Vector3< _Precision >.
Definition at line 617 of file Elements.h.
References MeshCore::MeshDefinitions::_fMinPointDistanceP2, and Base::DistanceP2().
void MeshCore::MeshPoint::ResetFlag | ( | TFlagType | tF | ) | const [inline] |
Definition at line 106 of file Elements.h.
void MeshCore::MeshPoint::ResetInvalid | ( | void | ) | const [inline] |
Definition at line 110 of file Elements.h.
void MeshCore::MeshPoint::SetFlag | ( | TFlagType | tF | ) | const [inline] |
Definition at line 104 of file Elements.h.
void MeshCore::MeshPoint::SetInvalid | ( | void | ) | const [inline] |
Definition at line 112 of file Elements.h.
void MeshCore::MeshPoint::SetProperty | ( | unsigned long | uP | ) | const [inline] |
Definition at line 116 of file Elements.h.
unsigned char MeshCore::MeshPoint::_ucFlag |
unsigned long MeshCore::MeshPoint::_ulProp |
Free usable property.
Definition at line 130 of file Elements.h.
Referenced by MeshCore::MeshBuilder::AddFacet(), MeshCore::MeshKernel::DeletePoints(), and operator=().