Go to the source code of this file.
◆ 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:
{ \
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.