MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CalculateArea

Function CalculateArea

editor/rad_init.cpp:175–189  ·  view source on GitHub ↗

Calculates the area of the surfaces and elements in our environment

Source from the content-addressed store, hash-verified

173
174// Calculates the area of the surfaces and elements in our environment
175void CalculateArea() {
176 rad_surface *surf;
177 int i, t;
178
179 for (i = 0; i < rad_NumSurfaces; i++) {
180 surf = &rad_Surfaces[i];
181
182 CalculateAreaForSurface(surf);
183
184 for (t = 0; t < surf->xresolution * surf->yresolution; t++) {
185 rad_element *ep = &surf->elements[t];
186 CalculateAreaForElement(ep);
187 }
188 }
189}
190
191// Counts the total number of elements we have to work with
192void CountElements() {

Callers 1

InitRadiosityRunFunction · 0.85

Calls 2

CalculateAreaForSurfaceFunction · 0.85
CalculateAreaForElementFunction · 0.85

Tested by

no test coverage detected