FreeCAD C++
Public Member Functions | List of all members
MeshCore::MeshPointArray Class Reference

#include <Mod/Mesh/App/Core/Elements.h>

Detailed Description

Stores all data points of the mesh structure.

Public Member Functions

unsigned long Get (const MeshPoint &rclPoint)
 
unsigned long GetOrAddIndex (const MeshPoint &rclPoint)
 
Construction
 MeshPointArray (void)
 
 MeshPointArray (unsigned long ulSize)
 
 ~MeshPointArray (void)
 
Flag state
Note
All flag methods are const as they do NOT change the actual properties of the object
void SetFlag (MeshPoint::TFlagType tF) const
 Sets the flag for all points.
 
void ResetFlag (MeshPoint::TFlagType tF) const
 Resets the flag for all points.
 
void ResetInvalid (void) const
 Sets all points invalid.
 
void SetProperty (unsigned long ulVal) const
 Sets the property for all points.
 

Member Function Documentation

◆ Get()

unsigned long MeshCore::MeshPointArray::Get ( const MeshPoint rclPoint)

Searches for the first point index Two points are equal if the distance is less than EPSILON. If no such points is found ULONG_MAX is returned.

◆ GetOrAddIndex()

unsigned long MeshCore::MeshPointArray::GetOrAddIndex ( const MeshPoint rclPoint)

Searches for the first point index Two points are equal if the distance is less than EPSILON. If no such points is found the point is added to the array at end and its index is returned.