Wildmeshing Toolkit
SimplexDart.cpp File Reference
Include dependency graph for SimplexDart.cpp:

Go to the source code of this file.

Namespaces

 wmtk
 
 wmtk::autogen
 

Macros

#define GET_OP(NAME, RETTYPE)
 
#define FORWARD_OP(NAME, OP, RETTYPE, DEFAULT)
 

Typedefs

using wmtk::autogen::DynamicIntMap = VectorX< int8_t >::ConstMapType
 

Macro Definition Documentation

◆ FORWARD_OP

#define FORWARD_OP (   NAME,
  OP,
  RETTYPE,
  DEFAULT 
)
Value:
auto SimplexDart::NAME() const -> RETTYPE \
{ \
switch (m_simplex_type) { \
case PrimitiveType::Edge: return edge_mesh::SimplexDart::OP(); \
case PrimitiveType::Triangle: return tri_mesh::SimplexDart::OP(); \
case PrimitiveType::Tetrahedron: return tet_mesh::SimplexDart::OP(); \
case PrimitiveType::Vertex: return point_mesh::SimplexDart::OP(); \
default: assert(false); \
} \
return DEFAULT; \
}

Definition at line 55 of file SimplexDart.cpp.

◆ GET_OP

#define GET_OP (   NAME,
  RETTYPE 
)
Value:
auto get_##NAME(PrimitiveType pt)->SimplexDart::RETTYPE \
{ \
switch (pt) { \
case PrimitiveType::Edge: return &edge_mesh::SimplexDart::NAME; \
case PrimitiveType::Triangle: return &tri_mesh::SimplexDart::NAME; \
case PrimitiveType::Tetrahedron: return &tet_mesh::SimplexDart::NAME; \
case PrimitiveType::Vertex: return &point_mesh::SimplexDart::NAME; \
default: assert(false); \
} \
return nullptr; \
}

Definition at line 36 of file SimplexDart.cpp.