MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetModelTriangle

Method GetModelTriangle

GTE/Graphics/CollisionMesh.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool CollisionMesh::GetModelTriangle(size_t t, Triangle3<float>& modelTriangle) const
88{
89 std::array<int32_t, 3> indices{};
90 if (GetTriangle(t, indices))
91 {
92 for (size_t j = 0; j < 3; ++j)
93 {
94 modelTriangle.v[j] = GetPosition(indices[j]);
95 }
96 return true;
97 }
98 return false;
99}
100
101bool CollisionMesh::GetWorldTriangle(size_t t, Triangle3<float>& worldTriangle) const
102{

Callers 1

BoundTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected