Measure the area and first moments of a sweep's sections before its scale
profile, at the midpoints of 400 equal steps along the spine.
At u = (i + 0.5) / 400 the area is (1/2) integral r^2 da and the first
moments M_x = (1/3) integral r^3 cos a da and M_y = (1/3) integral r^3 sin a da
of the radius r = profile(u, v), each by the midpoint rule over 256
directions. A scale s multiplies the area by s^2 and the moments by
s^3, so a sweep whose scale or frames change keeps these numbers;
integrateAutoMovieSweepVolume combines them with its frames and scale.
Measure the area and first moments of a sweep's sections before its scale profile, at the midpoints of 400 equal steps along the spine.
At
u = (i + 0.5) / 400the area is(1/2) integral r^2 daand the first momentsM_x = (1/3) integral r^3 cos a daandM_y = (1/3) integral r^3 sin a daof the radiusr = profile(u, v), each by the midpoint rule over 256 directions. A scalesmultiplies the area bys^2and the moments bys^3, so a sweep whose scale or frames change keeps these numbers;integrateAutoMovieSweepVolumecombines them with its frames and scale.