MCPcopy Create free account
hub / github.com/brenocq/implot3d / GetterMeshTriangles

Class GetterMeshTriangles

implot3d_items.cpp:1003–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001};
1002
1003template <typename TGX, typename TGY, typename TGZ> struct GetterMeshTriangles {
1004 GetterMeshTriangles(TGX gx, TGY gy, TGZ gz, const unsigned int* idx, int idx_count)
1005 : Gx(gx), Gy(gy), Gz(gz), Idx(idx), TriCount(idx_count / 3), Count(idx_count) {}
1006
1007 template <typename I> IMPLOT3D_INLINE ImPlot3DPoint operator()(I i) const {
1008 unsigned int vi = Idx[i];
1009 return ImPlot3DPoint(Gx(vi), Gy(vi), Gz(vi));
1010 }
1011
1012 TGX Gx;
1013 TGY Gy;
1014 TGZ Gz;
1015 const unsigned int* Idx;
1016 int TriCount;
1017 int Count;
1018};
1019
1020//-----------------------------------------------------------------------------
1021// [SECTION] Color and Size Getters

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected