MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.RegionId Class Reference
+ Inheritance diagram for mrmeshpy.RegionId:

Public Member Functions

bool __bool__ (self)
 
bool __eq__ (self, RegionId b)
 
RegionId __iadd__ (self, int a)
 
None __init__ (self)
 
None __init__ (self, int i)
 
None __init__ (self, RegionId arg0)
 
int __int__ (self)
 
RegionId __isub__ (self, int a)
 
bool __ne__ (self, RegionId b)
 
str __repr__ (self)
 
int get (self)
 
bool operator (self, RegionId b)
 
RegionId operator (self)
 
RegionId operatorminusminus (self)
 
bool valid (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
None __init__ (*args, **kwargs)
 
RegionId operator (*args, **kwargs)
 
RegionId operator (*args, **kwargs)
 
RegionId operator (*args, **kwargs)
 
RegionId operatorminusminus (*args, **kwargs)
 

Detailed Description

Generated from:  MR::RegionId
Aliases:  Vector_RegionId_VertId_reference, Vector_RegionId_VertId_value_type, Vector_RegionId_UndirectedEdgeId_value_type, Vector_RegionId_RegionId.value_type, Vector_RegionId_FaceId_value_type, TypedBitSet_RegionId_IndexType, Vector_RegionId_UndirectedEdgeId_reference, Vector_RegionId_RegionId.reference, Vector_RegionId_FaceId_reference, Vector_RegionId_FaceId_const_reference, Vector_RegionId_RegionId.const_reference, Vector_RegionId_VertId_const_reference, Vector_RegionId_UndirectedEdgeId_const_reference

stores index of some element, it is made as template class to avoid mixing faces, edges and vertices

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.RegionId.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

None mrmeshpy.RegionId.__init__ ( * args,
** kwargs )
static

◆ __init__() [3/5]

None mrmeshpy.RegionId.__init__ ( self)

◆ __init__() [4/5]

None mrmeshpy.RegionId.__init__ ( self,
int i )
Allow constructing from `int` and other integral types.
This constructor is written like this instead of a plain `Id(int)`, because we also wish to disable construction
  from other unrelated `Id<U>` specializations, which themselves have implicit conversions to `int`.
We could also achieve that using `template <typename U> Id(Id<U>) = delete;`, but it turns out that that causes issues
  for the `EdgeId::operator UndirectedEdgeId` below. There, while `UndirectedEdgeId x = EdgeId{};` compiles with this approach,
  but `UndirectedEdgeId x(EdgeId{});` doesn't. So to allow both forms, this constructor must be written this way, as a template.
The `= int` is there only to make the bindings emit this constructor, I don't think it affects anything else.

Reimplemented in mrmeshpy.NoDefInit_RegionId, mrmeshpy.NoDefInit_RegionId, and mrmeshpy.NoDefInit_RegionId.

◆ __init__() [5/5]

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

Reimplemented in mrmeshpy.NoDefInit_RegionId, mrmeshpy.NoDefInit_RegionId, and mrmeshpy.NoDefInit_RegionId.

Member Function Documentation

◆ __bool__()

bool mrmeshpy.RegionId.__bool__ ( self)

◆ __eq__()

bool mrmeshpy.RegionId.__eq__ ( self,
RegionId b )

◆ __iadd__()

RegionId mrmeshpy.RegionId.__iadd__ ( self,
int a )

◆ __int__()

int mrmeshpy.RegionId.__int__ ( self)

◆ __isub__()

RegionId mrmeshpy.RegionId.__isub__ ( self,
int a )

◆ __ne__()

bool mrmeshpy.RegionId.__ne__ ( self,
RegionId b )

◆ __repr__()

str mrmeshpy.RegionId.__repr__ ( self)

Reimplemented in mrmeshpy.NoDefInit_RegionId.

◆ get()

int mrmeshpy.RegionId.get ( self)

◆ operator() [1/5]

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

◆ operator() [2/5]

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

◆ operator() [3/5]

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

◆ operator() [4/5]

RegionId mrmeshpy.RegionId.operator ( self)

◆ operator() [5/5]

bool mrmeshpy.RegionId.operator ( self,
RegionId b )

◆ operatorminusminus() [1/2]

RegionId mrmeshpy.RegionId.operatorminusminus ( * args,
** kwargs )
static

◆ operatorminusminus() [2/2]

RegionId mrmeshpy.RegionId.operatorminusminus ( self)

◆ valid()

bool mrmeshpy.RegionId.valid ( self)

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