rendered paste bodyIndex: src/librt/primitives/arb8/arb8.c
===================================================================
--- src/librt/primitives/arb8/arb8.c (revision 49810)
+++ src/librt/primitives/arb8/arb8.c (working copy)
@@ -329,7 +329,7 @@
* with the given number of verticies. Return the point in center_pt.
*/
void
-rt_arb_centroid(point_t center_pt, const struct rt_arb_internal *arb, int npoints)
+rt_arb_centroid(point_t *center_pt, const struct rt_arb_internal *arb, int npoints)
{
register int j;
fastf_t divisor;
@@ -343,7 +343,7 @@
VADD2(sum, sum, arb->pt[j]);
}
divisor = 1.0 / npoints;
- VSCALE(center_pt, sum, divisor);
+ VSCALE((*center_pt), sum, divisor);
}