Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Public Attributes | Friends | List of all members
geomtools::facet_vertex Struct Reference

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_3dget_position () const
 Return the position of the vertex. More...
 
void set_position (const vector_3d &)
 Set the position of the vertex. More...
 
vector_3dgrab_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...
 

Detailed Description

A vertex (corner) of a triangle or quadrangle facet in a tessellated solid.

Constructor & Destructor Documentation

◆ facet_vertex() [1/2]

geomtools::facet_vertex::facet_vertex ( )

Default constructor.

◆ facet_vertex() [2/2]

geomtools::facet_vertex::facet_vertex ( double  x_,
double  y_,
double  z_ 
)

Constructor.

Member Function Documentation

◆ add_ref_facet()

void geomtools::facet_vertex::add_ref_facet ( int  facet_index_,
int  facet_node_ 
)

Add the reference of a facet the vertex is associated to.

◆ get_position()

const vector_3d& geomtools::facet_vertex::get_position ( ) const

Return the position of the vertex.

◆ grab_position()

vector_3d& geomtools::facet_vertex::grab_position ( )

Return the position of the vertex.

◆ is_valid()

bool geomtools::facet_vertex::is_valid ( ) const

Check validity.

◆ print()

void geomtools::facet_vertex::print ( std::ostream &  out_) const

Simple print.

◆ print_xyz()

void geomtools::facet_vertex::print_xyz ( std::ostream &  out_,
int  color_ = 0 
) const

Print in 'x,y,z[,color]' format (ASCII)

◆ reset()

void geomtools::facet_vertex::reset ( )

Reset.

◆ set_position()

void geomtools::facet_vertex::set_position ( const vector_3d )

Set the position of the vertex.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const facet_vertex  
)
friend

Print.

Member Data Documentation

◆ position

vector_3d geomtools::facet_vertex::position

Position of the vertex.

◆ ref_facets

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)


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