Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
geomtools::facet34 Class Reference

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_vertexget_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_3dget_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 triangleget_tface () const
 Return the associated triangle face. More...
 
const quadrangleget_qface () const
 Return the associated quadrangle face. More...
 
const face_handle_typeget_tface_handle () const
 
face_handle_typegrab_tface_handle ()
 
const face_handle_typeget_qface_handle () const
 
face_handle_typegrab_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 ()
 

Detailed Description

A triangle or convex quadrangle facet of a tessellated solid.

Constructor & Destructor Documentation

◆ facet34() [1/3]

geomtools::facet34::facet34 ( )

Default constructor.

◆ facet34() [2/3]

geomtools::facet34::facet34 ( const facet_vertex v0_,
const facet_vertex v1_,
const facet_vertex v2_,
int  ,
int  ,
int   
)

Constructor for a triangle facet.

◆ facet34() [3/3]

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.

Member Function Documentation

◆ _compute_face()

void geomtools::facet34::_compute_face ( )
protected

◆ _compute_internal_angles()

void geomtools::facet34::_compute_internal_angles ( )
protected

◆ _compute_internals()

void geomtools::facet34::_compute_internals ( )
protected

◆ _compute_normal()

void geomtools::facet34::_compute_normal ( )
protected

◆ _compute_surface()

void geomtools::facet34::_compute_surface ( )
protected

◆ _set_defaults()

void geomtools::facet34::_set_defaults ( )
protected

Set default attributes values.

◆ check_quadrangle()

static bool geomtools::facet34::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

◆ check_triangle()

static bool geomtools::facet34::check_triangle ( const geomtools::vector_3d v0_,
const geomtools::vector_3d v1_,
const geomtools::vector_3d v2_,
double  tolerance_ = 0.0 
)
static

◆ get_internal_angle()

double geomtools::facet34::get_internal_angle ( int  i_) const

◆ get_normal()

const vector_3d& geomtools::facet34::get_normal ( ) const

◆ get_number_of_vertices()

uint32_t geomtools::facet34::get_number_of_vertices ( ) const

◆ get_qface()

const quadrangle& geomtools::facet34::get_qface ( ) const

Return the associated quadrangle face.

◆ get_qface_handle()

const face_handle_type& geomtools::facet34::get_qface_handle ( ) const

◆ get_surface()

double geomtools::facet34::get_surface ( ) const

◆ get_tface()

const triangle& geomtools::facet34::get_tface ( ) const

Return the associated triangle face.

◆ get_tface_handle()

const face_handle_type& geomtools::facet34::get_tface_handle ( ) const

◆ get_vertex()

const facet_vertex& geomtools::facet34::get_vertex ( int  i_) const

◆ get_vertex_key()

int32_t geomtools::facet34::get_vertex_key ( int  i_) const

◆ grab_qface_handle()

face_handle_type& geomtools::facet34::grab_qface_handle ( )

◆ grab_tface_handle()

face_handle_type& geomtools::facet34::grab_tface_handle ( )

◆ has_category()

bool geomtools::facet34::has_category ( ) const

◆ has_face()

bool geomtools::facet34::has_face ( ) const

Check the availability of face (triangle or quadrangle)

◆ has_normal()

bool geomtools::facet34::has_normal ( ) const

◆ has_qface()

bool geomtools::facet34::has_qface ( ) const

Check the availability of quadrangle face.

◆ has_surface()

bool geomtools::facet34::has_surface ( ) const

◆ has_tface()

bool geomtools::facet34::has_tface ( ) const

Check the availability of triangle face.

◆ is_quadrangle()

bool geomtools::facet34::is_quadrangle ( ) const

◆ is_triangle()

bool geomtools::facet34::is_triangle ( ) const

◆ is_valid()

bool geomtools::facet34::is_valid ( ) const

◆ print()

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

◆ set_category()

void geomtools::facet34::set_category ( unsigned int  c_)

◆ set_quadrangle()

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_ 
)

◆ set_triangle()

void geomtools::facet34::set_triangle ( const facet_vertex v0_,
const facet_vertex v1_,
const facet_vertex v2_,
int  iv0_,
int  iv1_,
int  iv2_ 
)

◆ unset_category()

void geomtools::facet34::unset_category ( )

Member Data Documentation

◆ INVALID_CATEGORY

const int32_t geomtools::facet34::INVALID_CATEGORY = -1
static

◆ MAX_CATEGORY

const unsigned int geomtools::facet34::MAX_CATEGORY = 30
static

The maximum index of the category the facet belongs to.


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