MeshLib
 
Loading...
Searching...
No Matches
MRRectIndexer.h File Reference
#include "MRMeshFwd.h"
#include "MRVector2.h"
#include "MRId.h"
#include <array>

Go to the source code of this file.

Classes

class  MR::RectIndexer
 a class for converting 2D integer coordinates into 1D linear coordinates and backward More...
 

Namespaces

namespace  MR
 

Enumerations

enum class  MR::OutEdge2 : signed char {
  MR::OutEdge2::Invalid = -1 , MR::OutEdge2::PlusY , MR::OutEdge2::MinusY , MR::OutEdge2::PlusX ,
  MR::OutEdge2::MinusX , MR::OutEdge2::Count
}
 

Functions

OutEdge2 MR::opposite (OutEdge2 e)
 
MRMESH_API void MR::expandPixelMask (PixelBitSet &mask, const RectIndexer &indexer, int expansion=1)
 expands PixelBitSet with given number of steps
 
MRMESH_API void MR::shrinkPixelMask (PixelBitSet &mask, const RectIndexer &indexer, int shrinkage=1)
 shrinks PixelBitSet with given number of steps