#include <TriangleSubdividers.h>
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< TriangleID > | m_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) | |
bool sofa::component::topology::container::dynamic::TriangleToAdd::isUp = false |
type::vector<TriangleID> sofa::component::topology::container::dynamic::TriangleToAdd::m_ancestors |
Triangle indices ancestors of this new Triangle.
type::vector<SReal> sofa::component::topology::container::dynamic::TriangleToAdd::m_coefs |
Coefficient to apply with the ancestors info to compute new triangle area.
Triangle sofa::component::topology::container::dynamic::TriangleToAdd::m_triangle |
Triangle topological structure.
sofa::type::fixed_array<sofa::type::Vec3, 3> sofa::component::topology::container::dynamic::TriangleToAdd::m_triCoords |
TriangleID sofa::component::topology::container::dynamic::TriangleToAdd::m_uniqueID |
unique new id of the future triangle
|
inline |