Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
wmtk::TriOptimizerMesh::VertexAttributes Struct Reference

Public Member Functions

 VertexAttributes (const Vector2d &p)
 
 VertexAttributes (const Vector2r &p)
 

Public Attributes

Vector2d m_posf
 
bool m_is_rounded = false
 
bool m_is_on_surface = false
 
std::vector< int > on_bbox_faces
 
double m_sizing_scalar = 1
 
size_t partition_id = 0
 

Exact position

Stored only while it differs from m_posf; see ExactPosition. Read it with pos() (or pos_coord_equals() for one coordinate); set it with set_pos() when it is a genuinely exact value, or set_pos_to_posf() when it is m_posf – a rounded vertex, or one placed at a double position.

ExactPosition< Vector2r, Vector2d > m_exact
 
Vector2r pos () const
 
bool pos_coord_equals (int k, const Rational &r) const
 
void set_pos (const Vector2r &p)
 
void set_pos_to_posf ()
 

Member Data Documentation

◆ m_is_rounded

bool wmtk::TriOptimizerMesh::VertexAttributes::m_is_rounded = false

If a vertex cannot be rounded without inverting an incident face, the exact position must be used. Once the vertex can be rounded to double precision, the rational representation is obsolete.


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