Re: pls help me with this prog

2012-10-21 Thread 88888 Dihedral
On Friday, October 19, 2012 4:40:42 PM UTC+8, inshu chauhan wrote: > in this prog I have written a code to calculate teh centre of a given 3D > data.. > > > > but i want to calculate it for every 3 points not the whole data, but > > instead of giving me centre for every 3 data the prog is prin

Re: pls help me with this prog

2012-10-20 Thread Tim Roberts
inshu chauhan wrote: > >but i want to calculate it for every 3 points not the whole data, but >instead of giving me centre for every 3 data the prog is printing the >centre 3 times... > >def main (data): >j = 0 >for i in data[:3]: >while j != 3: > centre = CalcCentre(data)

Re: pls help me with this prog

2012-10-19 Thread rusi
Dont know what your code does/tries to do. Anyway some points: On Oct 19, 1:40 pm, inshu chauhan wrote: > in this prog I have written a code to calculate teh centre of a given 3D > data.. > > but i want to calculate it for every 3 points not the whole data, but > instead of giving me centre for

pls help me with this prog

2012-10-19 Thread inshu chauhan
in this prog I have written a code to calculate teh centre of a given 3D data.. but i want to calculate it for every 3 points not the whole data, but instead of giving me centre for every 3 data the prog is printing the centre 3 times... import cv from math import floor, sqrt, ceil from numpy imp