Add default implementation of cg::vertices
This commit is contained in:
parent
4c48790497
commit
eff7f397b4
1 changed files with 6 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ namespace psemek::cg
|
||||||
template <typename Body>
|
template <typename Body>
|
||||||
struct body_traits;
|
struct body_traits;
|
||||||
|
|
||||||
|
template <typename Body>
|
||||||
|
auto vertices(Body const & b)
|
||||||
|
{
|
||||||
|
return b.vertices;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename Body>
|
template <typename Body>
|
||||||
auto faces(Body const & b)
|
auto faces(Body const & b)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue