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) |
Generated from: MR::FewSmallest<MR::PointsProjectionResult> the class stores some number of smallest elements from a larger number of candidates
None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.__init__ | ( | self, | |
int | maxElms = 0 ) |
configure the object to store at most given number of elements
None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.__init__ | ( | self, | |
FewSmallest_PointsProjectionResult | arg0 ) |
Implicit copy constructor.
None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.clear | ( | self | ) |
removes all stored elements
bool meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.empty | ( | self | ) |
returns whether the container is currently empty
bool meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.full | ( | self | ) |
returns whether we have already maximum number of elements stored
std_vector_PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.get | ( | self | ) |
returns the smallest elements found so far
int meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.maxElms | ( | self | ) |
returns the maximum number of elements to be stored here
None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.push | ( | self, | |
PointsProjectionResult | t ) |
considers one more element, storing it if it is within the smallest
None meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.reset | ( | self, | |
int | maxElms ) |
clears the content and reconfigure the object to store at most given number of elements
int meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.size | ( | self | ) |
returns current number of stored element
PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.top | ( | self | ) |
returns the largest among stored smallest elements
PointsProjectionResult meshlib.mrmeshpy.FewSmallest_PointsProjectionResult.topOr | ( | self, | |
PointsProjectionResult | emptyRes ) |
returns the largest among stored smallest elements or given element if this is empty