![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A triangle or convex quadrangle facet of a tessellated solid. More...
#include <bayeux/geomtools/tessellation.h>
Public Member Functions | |
| bool | has_category () const |
| void | set_category (unsigned int c_) |
| void | unset_category () |
| uint32_t | get_number_of_vertices () const |
| const facet_vertex & | get_vertex (int i_) const |
| int32_t | get_vertex_key (int i_) const |
| bool | has_normal () const |
| bool | has_surface () const |
| bool | is_valid () const |
| const vector_3d & | get_normal () const |
| double | get_surface () const |
| double | get_internal_angle (int i_) const |
| void | print (std::ostream &out_) const |
| bool | is_triangle () const |
| bool | is_quadrangle () const |
| void | set_triangle (const facet_vertex &v0_, const facet_vertex &v1_, const facet_vertex &v2_, int iv0_, int iv1_, int iv2_) |
| void | set_quadrangle (const facet_vertex &v0_, const facet_vertex &v1_, const facet_vertex &v2_, const facet_vertex &v3_, int iv0_, int iv1_, int iv2_, int iv3_) |
| facet34 () | |
| Default constructor. More... | |
| facet34 (const facet_vertex &v0_, const facet_vertex &v1_, const facet_vertex &v2_, int, int, int) | |
| Constructor for a triangle facet. More... | |
| facet34 (const facet_vertex &v0_, const facet_vertex &v1_, const facet_vertex &v2_, const facet_vertex &v3_, int, int, int, int) | |
| Constructor for a quadrangle facet. More... | |
| bool | has_face () const |
| Check the availability of face (triangle or quadrangle) More... | |
| bool | has_tface () const |
| Check the availability of triangle face. More... | |
| bool | has_qface () const |
| Check the availability of quadrangle face. More... | |
| const triangle & | get_tface () const |
| Return the associated triangle face. More... | |
| const quadrangle & | get_qface () const |
| Return the associated quadrangle face. More... | |
| const face_handle_type & | get_tface_handle () const |
| face_handle_type & | grab_tface_handle () |
| const face_handle_type & | get_qface_handle () const |
| face_handle_type & | grab_qface_handle () |
Static Public Member Functions | |
| static bool | check_triangle (const geomtools::vector_3d &v0_, const geomtools::vector_3d &v1_, const geomtools::vector_3d &v2_, double tolerance_=0.0) |
| static bool | check_quadrangle (const geomtools::vector_3d &v0_, const geomtools::vector_3d &v1_, const geomtools::vector_3d &v2_, const geomtools::vector_3d &v3_, double tolerance_=0.0) |
Static Public Attributes | |
| static const unsigned int | MAX_CATEGORY = 30 |
| The maximum index of the category the facet belongs to. More... | |
| static const int32_t | INVALID_CATEGORY = -1 |
Protected Member Functions | |
| void | _set_defaults () |
| Set default attributes values. More... | |
| void | _compute_normal () |
| void | _compute_surface () |
| void | _compute_internal_angles () |
| void | _compute_face () |
| void | _compute_internals () |
A triangle or convex quadrangle facet of a tessellated solid.
| geomtools::facet34::facet34 | ( | ) |
Default constructor.
| geomtools::facet34::facet34 | ( | const facet_vertex & | v0_, |
| const facet_vertex & | v1_, | ||
| const facet_vertex & | v2_, | ||
| int | , | ||
| int | , | ||
| int | |||
| ) |
Constructor for a triangle facet.
| geomtools::facet34::facet34 | ( | const facet_vertex & | v0_, |
| const facet_vertex & | v1_, | ||
| const facet_vertex & | v2_, | ||
| const facet_vertex & | v3_, | ||
| int | , | ||
| int | , | ||
| int | , | ||
| int | |||
| ) |
Constructor for a quadrangle facet.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Set default attributes values.
|
static |
|
static |
| double geomtools::facet34::get_internal_angle | ( | int | i_ | ) | const |
| const vector_3d& geomtools::facet34::get_normal | ( | ) | const |
| uint32_t geomtools::facet34::get_number_of_vertices | ( | ) | const |
| const quadrangle& geomtools::facet34::get_qface | ( | ) | const |
Return the associated quadrangle face.
| const face_handle_type& geomtools::facet34::get_qface_handle | ( | ) | const |
| double geomtools::facet34::get_surface | ( | ) | const |
| const triangle& geomtools::facet34::get_tface | ( | ) | const |
Return the associated triangle face.
| const face_handle_type& geomtools::facet34::get_tface_handle | ( | ) | const |
| const facet_vertex& geomtools::facet34::get_vertex | ( | int | i_ | ) | const |
| int32_t geomtools::facet34::get_vertex_key | ( | int | i_ | ) | const |
| face_handle_type& geomtools::facet34::grab_qface_handle | ( | ) |
| face_handle_type& geomtools::facet34::grab_tface_handle | ( | ) |
| bool geomtools::facet34::has_category | ( | ) | const |
| bool geomtools::facet34::has_face | ( | ) | const |
Check the availability of face (triangle or quadrangle)
| bool geomtools::facet34::has_normal | ( | ) | const |
| bool geomtools::facet34::has_qface | ( | ) | const |
Check the availability of quadrangle face.
| bool geomtools::facet34::has_surface | ( | ) | const |
| bool geomtools::facet34::has_tface | ( | ) | const |
Check the availability of triangle face.
| bool geomtools::facet34::is_quadrangle | ( | ) | const |
| bool geomtools::facet34::is_triangle | ( | ) | const |
| bool geomtools::facet34::is_valid | ( | ) | const |
| void geomtools::facet34::print | ( | std::ostream & | out_ | ) | const |
| void geomtools::facet34::set_category | ( | unsigned int | c_ | ) |
| void geomtools::facet34::set_quadrangle | ( | const facet_vertex & | v0_, |
| const facet_vertex & | v1_, | ||
| const facet_vertex & | v2_, | ||
| const facet_vertex & | v3_, | ||
| int | iv0_, | ||
| int | iv1_, | ||
| int | iv2_, | ||
| int | iv3_ | ||
| ) |
| void geomtools::facet34::set_triangle | ( | const facet_vertex & | v0_, |
| const facet_vertex & | v1_, | ||
| const facet_vertex & | v2_, | ||
| int | iv0_, | ||
| int | iv1_, | ||
| int | iv2_ | ||
| ) |
| void geomtools::facet34::unset_category | ( | ) |
|
static |
|
static |
The maximum index of the category the facet belongs to.
1.8.15