[SciPy-User] Projected Area

Daπid davidmenhur at gmail.com
Mon Oct 1 14:13:18 EDT 2012


On Mon, Oct 1, 2012 at 7:54 PM, Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> I think I will have to resort to some Monte Carlo integration.

Not  everything is lost. You could make a boolean 3D grid as big as
your memory allows to, with True in the spheres and False in empty
space. Rotate it is just matrix multiplication, and project over one
axis with .any.

The shape of the sphere doesn't have oscillations, so a regular grid
is a good approach to the integration.



More information about the SciPy-User mailing list