Hi,
Sorry, I've been away in Oregon...
The result isn't quite the same. The arrays must be in the range [0,1], so
I just have it divide x3 and y. I also have it add 1 to size[1], as I
realized that was also necessary for that behavior:
x = np.arange(size[0])
x2 = np.column_stack([x,x+1]).resha
On Mon, Jul 13, 2009 at 18:11, Ian Mallett wrote:
> Hello,
>
> I have some code that makes vertex buffer object terrain. Because the setup
> for this (a series of triangle strips) is a bit clunky, I just implemented
> the tricky parts in Python.
>
> The code works, but it's slow. How should I go
Hello,
I have some code that makes vertex buffer object terrain. Because the setup
for this (a series of triangle strips) is a bit clunky, I just implemented
the tricky parts in Python.
The code works, but it's slow. How should I go about optimizing it?
Thanks,
Ian
size = [#int_something,#in