[SciPy-user] linspace

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Mar 16 05:09:27 EST 2006


Arnd Baecker wrote:
> On Thu, 16 Mar 2006, Nils Wagner wrote:
>
>   
>> Hi all,
>>
>> linspace is useful for one-dimensional objects.
>> Is there something similar for surfaces ?
>> I would like to build a uniform mesh on a cube (-R,R)^3
>> I mean collocation points uniformly distributed on each side of the cube.
>>     
>
> What about numpy.mgrid?
>
> Arnd
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>   


That hits the spot, but how can I distribute N**2 points in the open
domain, that is points should not lie on the edges of the cube.
Please can you fill the gaps in

X,Y,Z = mgrid[ ..., ..., ...]

Thanks in advance
                                  Nils




More information about the SciPy-User mailing list