MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.FewSmallest_PointsProjectionResult Class Reference

Public Member Functions

None __init__ (self, int maxElms=0)
 
None __init__ (self, FewSmallest_PointsProjectionResult arg0)
 
None clear (self)
 
bool empty (self)
 
bool full (self)
 
std_vector_PointsProjectionResult get (self)
 
int maxElms (self)
 
None push (self, PointsProjectionResult t)
 
None reset (self, int maxElms)
 
int size (self)
 
PointsProjectionResult top (self)
 
PointsProjectionResult topOr (self, PointsProjectionResult emptyRes)
 

Detailed Description

Generated from:  MR::FewSmallest<MR::PointsProjectionResult>

the class stores some number of smallest elements from a larger number of candidates

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.__init__ ( self,
int maxElms = 0 )
configure the object to store at most given number of elements

◆ __init__() [2/2]

None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.__init__ ( self,
FewSmallest_PointsProjectionResult arg0 )
Implicit copy constructor.

Member Function Documentation

◆ clear()

None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.clear ( self)
removes all stored elements

◆ empty()

bool meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.empty ( self)
returns whether the container is currently empty

◆ full()

bool meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.full ( self)
returns whether we have already maximum number of elements stored

◆ get()

std_vector_PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.get ( self)
returns the smallest elements found so far

◆ maxElms()

int meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.maxElms ( self)
returns the maximum number of elements to be stored here

◆ push()

None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.push ( self,
PointsProjectionResult t )
considers one more element, storing it if it is within the smallest

◆ reset()

None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.reset ( self,
int maxElms )
clears the content and reconfigure the object to store at most given number of elements

◆ size()

int meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.size ( self)
returns current number of stored element

◆ top()

PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.top ( self)
returns the largest among stored smallest elements

◆ topOr()

PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.topOr ( self,
PointsProjectionResult emptyRes )
returns the largest among stored smallest elements or given element if this is empty

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