MCPcopy Create free account
hub / github.com/carbonengine/trinity / FindAreaIndex

Function FindAreaIndex

trinity/Resources/TriGrannyRes.cpp:1980–1991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978}
1979
1980int32_t FindAreaIndex( int32_t index, const granny_tri_topology& topology )
1981{
1982 index /= 3;
1983 for( int32_t i = 0; i < topology.GroupCount; ++i )
1984 {
1985 if( index >= topology.Groups[i].TriFirst && index < topology.Groups[i].TriFirst + topology.Groups[i].TriCount )
1986 {
1987 return i;
1988 }
1989 }
1990 return -1;
1991}
1992
1993void GetTriangleVertices( const uint8_t** triangle, const granny_mesh& mesh, int32_t index, int32_t vertexSize )
1994{

Callers 1

GrannyRayIntersectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected