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

Function GetCenterOfElement

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

Finds the world coordinate center of a surface

Source from the content-addressed store, hash-verified

302
303// Finds the world coordinate center of a surface
304void GetCenterOfElement(rad_element *ep, vector *dest) { vm_GetCentroid(dest, ep->verts, ep->num_verts); }
305
306void CalculateRadiosity() {
307 int key;

Callers 4

BuildTransformFunction · 0.85
GetFormFactorForElementFunction · 0.85

Calls 1

vm_GetCentroidFunction · 0.50

Tested by

no test coverage detected