MeshCore::MeshPointArray Class Reference

Stores all data points of the mesh structure. More...

#include <Elements.h>

Public Member Functions

Construction
 MeshPointArray (void)
 
 MeshPointArray (unsigned long ulSize)
 
 MeshPointArray (const MeshPointArray &)
 copy-constructor More...
 
 ~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. More...
 
void ResetFlag (MeshPoint::TFlagType tF) const
 Resets the flag for all points. More...
 
void ResetInvalid (void) const
 Sets all points invalid. More...
 
void SetProperty (unsigned long ulVal) const
 Sets the property for all points. More...
 
MeshPointArrayoperator= (const MeshPointArray &rclPAry)
 
void Transform (const Base::Matrix4D &)
 
unsigned long Get (const MeshPoint &rclPoint)
 Searches for the first point index Two points are equal if the distance is less than EPSILON. More...
 
unsigned long GetOrAddIndex (const MeshPoint &rclPoint)
 Searches for the first point index Two points are equal if the distance is less than EPSILON. More...
 

Detailed Description

Stores all data points of the mesh structure.

Constructor & Destructor Documentation

◆ MeshPointArray() [1/3]

MeshCore::MeshPointArray::MeshPointArray ( void  )

◆ MeshPointArray() [2/3]

MeshCore::MeshPointArray::MeshPointArray ( unsigned long  ulSize)

◆ MeshPointArray() [3/3]

MeshPointArray::MeshPointArray ( const MeshPointArray ary)

copy-constructor

◆ ~MeshPointArray()

MeshCore::MeshPointArray::~MeshPointArray ( void  )

Member Function Documentation

◆ Get()

unsigned long 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.

References DraftVecUtils::find().

Referenced by GetOrAddIndex().

◆ GetOrAddIndex()

unsigned long 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.

References Get().

◆ operator=()

MeshPointArray & MeshPointArray::operator= ( const MeshPointArray rclPAry)

◆ ResetFlag()

void MeshPointArray::ResetFlag ( MeshPoint::TFlagType  tF) const

Resets the flag for all points.

Referenced by MeshCore::MeshRemoveNeedles::Fixup().

◆ ResetInvalid()

void MeshPointArray::ResetInvalid ( void  ) const

◆ SetFlag()

void MeshPointArray::SetFlag ( MeshPoint::TFlagType  tF) const

Sets the flag for all points.

Referenced by MeshCore::MeshRemoveNeedles::Fixup(), and MeshCore::MeshCleanup::RemoveInvalids().

◆ SetProperty()

void MeshPointArray::SetProperty ( unsigned long  ulVal) const

Sets the property for all points.

Referenced by MeshCore::MeshInput::LoadOBJ().

◆ Transform()

void MeshPointArray::Transform ( const Base::Matrix4D mat)

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Mod/Mesh/App/Core/Elements.h
  • Sources/FreeCAD/src/Mod/Mesh/App/Core/Elements.cpp