SOFA API  b67a9394
Open source framework for multi-physics simuation
sofa::component::topology::container::dynamic::TriangleToAdd Class Reference

#include <TriangleSubdividers.h>

Detailed Description

This class store all the info to create a new triangle in the mesh taking into account estimated unique id triangle structure with vertex indices This structure also store all the ancestors and coefficient to efficently add this triangle with the area ratio into the current mesh.

Public Attributes

TriangleID m_uniqueID
 unique new id of the future triangle More...
 
Triangle m_triangle
 Triangle topological structure. More...
 
type::vector< TriangleIDm_ancestors
 Triangle indices ancestors of this new Triangle. More...
 
type::vector< SReal > m_coefs
 Coefficient to apply with the ancestors info to compute new triangle area. More...
 
sofa::type::fixed_array< sofa::type::Vec3, 3 > m_triCoords
 
bool isUp = false
 

Public Member Functions

 TriangleToAdd (TriangleID uniqueID, sofa::core::topology::BaseMeshTopology::Triangle _triangle, const type::vector< TriangleID > &ancestors, const type::vector< SReal > &coefs)
 

Attribute details

◆ isUp

bool sofa::component::topology::container::dynamic::TriangleToAdd::isUp = false

◆ m_ancestors

type::vector<TriangleID> sofa::component::topology::container::dynamic::TriangleToAdd::m_ancestors

Triangle indices ancestors of this new Triangle.

◆ m_coefs

type::vector<SReal> sofa::component::topology::container::dynamic::TriangleToAdd::m_coefs

Coefficient to apply with the ancestors info to compute new triangle area.

◆ m_triangle

Triangle sofa::component::topology::container::dynamic::TriangleToAdd::m_triangle

Triangle topological structure.

◆ m_triCoords

sofa::type::fixed_array<sofa::type::Vec3, 3> sofa::component::topology::container::dynamic::TriangleToAdd::m_triCoords

◆ m_uniqueID

TriangleID sofa::component::topology::container::dynamic::TriangleToAdd::m_uniqueID

unique new id of the future triangle

Constructor details

◆ TriangleToAdd()

sofa::component::topology::container::dynamic::TriangleToAdd::TriangleToAdd ( TriangleID  uniqueID,
sofa::core::topology::BaseMeshTopology::Triangle  _triangle,
const type::vector< TriangleID > &  ancestors,
const type::vector< SReal > &  coefs 
)
inline