![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A vertex (corner) of a triangle or quadrangle facet in a tessellated solid. More...
#include <bayeux/geomtools/tessellation.h>
Public Member Functions | |
| bool | is_valid () const |
| Check validity. More... | |
| facet_vertex () | |
| Default constructor. More... | |
| facet_vertex (double x_, double y_, double z_) | |
| Constructor. More... | |
| void | print_xyz (std::ostream &out_, int color_=0) const |
| Print in 'x,y,z[,color]' format (ASCII) More... | |
| void | print (std::ostream &out_) const |
| Simple print. More... | |
| void | add_ref_facet (int facet_index_, int facet_node_) |
| Add the reference of a facet the vertex is associated to. More... | |
| const vector_3d & | get_position () const |
| Return the position of the vertex. More... | |
| void | set_position (const vector_3d &) |
| Set the position of the vertex. More... | |
| vector_3d & | grab_position () |
| Return the position of the vertex. More... | |
| void | reset () |
| Reset. More... | |
Public Attributes | |
| vector_3d | position |
| Position of the vertex. More... | |
| std::map< int32_t, int32_t > | ref_facets |
Friends | |
| std::ostream & | operator<< (std::ostream &, const facet_vertex &) |
| Print. More... | |
A vertex (corner) of a triangle or quadrangle facet in a tessellated solid.
| geomtools::facet_vertex::facet_vertex | ( | ) |
Default constructor.
| geomtools::facet_vertex::facet_vertex | ( | double | x_, |
| double | y_, | ||
| double | z_ | ||
| ) |
Constructor.
| void geomtools::facet_vertex::add_ref_facet | ( | int | facet_index_, |
| int | facet_node_ | ||
| ) |
Add the reference of a facet the vertex is associated to.
| const vector_3d& geomtools::facet_vertex::get_position | ( | ) | const |
Return the position of the vertex.
| vector_3d& geomtools::facet_vertex::grab_position | ( | ) |
Return the position of the vertex.
| bool geomtools::facet_vertex::is_valid | ( | ) | const |
Check validity.
| void geomtools::facet_vertex::print | ( | std::ostream & | out_ | ) | const |
Simple print.
| void geomtools::facet_vertex::print_xyz | ( | std::ostream & | out_, |
| int | color_ = 0 |
||
| ) | const |
Print in 'x,y,z[,color]' format (ASCII)
| void geomtools::facet_vertex::reset | ( | ) |
Reset.
| void geomtools::facet_vertex::set_position | ( | const vector_3d & | ) |
Set the position of the vertex.
|
friend |
Print.
| vector_3d geomtools::facet_vertex::position |
Position of the vertex.
| std::map<int32_t, int32_t> geomtools::facet_vertex::ref_facets |
Collection of facets the vertex belongs to; this is a map indexed by the unique integer key of the facet and storing the rank of the vertex in the facet (using counterclockwise order)
1.8.15