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

Public Member Functions

None __init__ (self, int maxElms=0)
 
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)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
FewSmallest_PointsProjectionResult operator (*args, **kwargs)
 
FewSmallest_PointsProjectionResult operator (*args, **kwargs)
 

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 mrmeshpy.FewSmallest_PointsProjectionResult.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/2]

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

Member Function Documentation

◆ clear()

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

◆ empty()

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

◆ full()

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

◆ get()

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

◆ maxElms()

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

◆ operator() [1/2]

FewSmallest_PointsProjectionResult mrmeshpy.FewSmallest_PointsProjectionResult.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

FewSmallest_PointsProjectionResult mrmeshpy.FewSmallest_PointsProjectionResult.operator ( * args,
** kwargs )
static

◆ push()

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

◆ reset()

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

◆ size()

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

◆ top()

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

◆ topOr()

PointsProjectionResult 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: