Hi All,
As my title says, I am trying to make the curve (right side) of the attached red object smooth.
I created this object with Blender and using points as shown attached. The right side of the object has the following data:
x = [ -0.98438 -0.97396 -0.96094 -0.94271 -0.92188 -0.90104 -0.88542 -0.875];
y = [0.7 0.6 0.5 0.4 0.3 0.2 0.1 0];
The above data have been chosen to match the design. I managed to draw it in my Android app successfully using OpenGl. The actual process is very complicated but that's not the question here.
I am interested in the range y = [0.7 0] because for y >= 0.7, x = -0.98438 and this is why for y >= 0.7 the curve is constant and smooth. I thought adding more points might help achieve this. Now the question is how many 'x' points need to be added for each interval, ie [0.7 0.6], [0.6 0.5], ... to have a smooth curve? I was thinking to start with 10 points.
My plan is to use Matlab and plot "plot (x, y, 'o');" then using the tool 'Basic Fitting' to get y = f(x). I think 7th or 6th degree polynomial will do given 8 coefficients.
Any comment/guidance will be appreciated!
[Edited] Attachment removed!!!
Eric
As my title says, I am trying to make the curve (right side) of the attached red object smooth.
I created this object with Blender and using points as shown attached. The right side of the object has the following data:
x = [ -0.98438 -0.97396 -0.96094 -0.94271 -0.92188 -0.90104 -0.88542 -0.875];
y = [0.7 0.6 0.5 0.4 0.3 0.2 0.1 0];
The above data have been chosen to match the design. I managed to draw it in my Android app successfully using OpenGl. The actual process is very complicated but that's not the question here.
I am interested in the range y = [0.7 0] because for y >= 0.7, x = -0.98438 and this is why for y >= 0.7 the curve is constant and smooth. I thought adding more points might help achieve this. Now the question is how many 'x' points need to be added for each interval, ie [0.7 0.6], [0.6 0.5], ... to have a smooth curve? I was thinking to start with 10 points.
My plan is to use Matlab and plot "plot (x, y, 'o');" then using the tool 'Basic Fitting' to get y = f(x). I think 7th or 6th degree polynomial will do given 8 coefficients.
Any comment/guidance will be appreciated!
[Edited] Attachment removed!!!
Eric
Last edited:



