I am trying to map data onto a 3D parametric surface that looks like an ellipsoid. I need the ellipsoid to be "divided" in 36 slices. I was able to draw the ellipsoid and map the data but the grid slices the object in 72 slices vertically (see attached file). In the program I'm specifying the total steps in theta coordinate to be 36 so I don't know where the problem is. Any idea?
I tried changing the constant �35� in the outer loop, and realized that every odd value would result in twize the amount of slices, so to get 36 slices you should use the constant �36�. It�s interesting to see the difference of entering �4� and �3�.
I will look into this further to see what causes the �doubling�.
Best regards, Philip C. Applications Engineer National Instruments
I solved the problem: the range of the angle I used to describe the ellipsoid (inner FOR loop) should be from -90deg to 90deg instead of 0 to 360 deg, otherwise when I produce the rotation of the ellipse along the azimuthal angle theta between 0 and 360 deg (outer FOR loop) it will overcreate the surface by 180 deg. See attached correct file.