|
| TriangleBitFlags () |
| Initializes the bits to false .
|
|
bool | deleted () const |
| Returns whether the current Triangle is deleted or not.
|
|
BitProxy< FT > | selected () |
| Accesses the 'selected' bit of this Triangle, returning a reference to it.
|
|
bool | selected () const |
| Returns whether the current Triangle is selected or not.
|
|
BitProxy< FT > | visited () |
| Accesses the 'visited' bit of this Triangle, returning a reference to it.
|
|
bool | visited () const |
| Returns whether the current Triangle has been visited or not.
|
|
bool | onBorder () const |
| Returns whether the current Triangle is on border or not, by checking whether at least one of its three edges are on border or not.
|
|
BitProxy< FT > | edgeOnBorder (uint i) |
| Accesses the 'onBorder' bit of the i-th edge of the triangle, returning a reference to it.
|
|
bool | edgeOnBorder (uint i) const |
| Returns whether the i-th edge of the current triangle is on border or not.
|
|
BitProxy< FT > | edgeSelected (uint i) |
| Accesses the 'selected' bit of the i-th edge of the triangle, returning a reference to it.
|
|
bool | edgeSelected (uint i) const |
| Returns whether the i-th edge of the current triangle is selected or not.
|
|
BitProxy< FT > | edgeVisited (uint i) |
| Accesses the 'visited' bit of the i-th edge of the triangle, returning a reference to it.
|
|
bool | edgeVisited (uint i) const |
| Returns whether the i-th edge of the current triangle is visited or not.
|
|
BitProxy< FT > | edgeFaux (uint i) |
| Accesses the 'faux' bit of the i-th edge of the triangle, returning a reference to it.
|
|
bool | edgeFaux (uint i) const |
| Returns whether the i-th edge of the current triangle is faux or not.
|
|
bool | userBit (uint bit) const |
| Returns a reference to the value of the user bit of this Triangle given in input. The bit is checked to be less than the total number of assigned user bits, which in this class is 4.
|
|
BitProxy< FT > | userBit (uint bit) |
| Returns the boolean value of the user bit of this Triangle given in input. The bit is checked to be less than the total number of assigned user bits, which in this class is 4.
|
|
void | resetBitFlags () |
| Unsets all the flags of this Triangle and sets them to false , except the deleted flag, which needs to be manually reset.
|
|
void | importFlagsFromVCGFormat (int f) |
| Sets all the flags of this element to the values contained in the integer input parameter, that represents the bit flags of the VCG library.
|
|
int | exportFlagsToVCGFormat () const |
| Returns the bit flags of this element in the format of the VCG library.
|
|
void | __triangleBitFlags () const |
|
The TriangleBitFlags class represents a collection of 16 bits that will be part of a Triangle of a Mesh.
This is a specialization class of the BitFlags component, meaning that it can be used in sostitution to that component. The difference is that this class is meant to be used on Triangle Faces, and adds bits with particular meanings for triangles.
The bits have the following meaning:
- 0: deleted: if the current Triangle has been deleted - read only
- 1: selected: if the current Triangle has been selected
- 2: visited: if the current Triangle has been visited (useful for some visit algorithms)
- from 3 to 5: edge border: if the current Triangle has the i-th edge (i in [0, 2]) on border
- from 6 to 8: edge selection: if the current Triangle has the i-th edge (i in [0, 2]) selected
- from 9 to 11: edge visited: if the current Triangle has the i-th edge (i in [0, 2]) visited
- from 12 to 14: edge faux: if the current Triangle has the i-th edge (i in [0, 2]) marked as faux
- 15: user bit that can have custom meanings to the user
This class provides 1 user bit, that can be accessed using the member function userBit(uint i) with position 0.
The member functions of this class will be available in the instance of any Element that will contain this component.
For example, if you have a Face Element f
that has the TriangleBitFlags component, you'll be able to access to this component member functions from f
:
v.edgeSelected(1) = true;
- Template Parameters
-
ParentElemType | This template argument must be void if the component needs to be stored horizontally, or the type of the parent element that will contain this component if the component needs to be stored vertically. |
OPT | If true, the component will be optional. This argument is considered only if the component is stored vertically. |