Page 1 of 1
Revolving curve around an axis
Posted: Sun Dec 06, 2009 5:42 pm
by Nmatthew
Is there a way in Dplot to revolve a line around an axis such as would be used to go from xy coordinates to an xyz surface? I have a profile of a crater and need to be able to revolve that around the middle so that I can calculate the volume, but so far I haven't found any way to do that.
Posted: Sun Dec 06, 2009 8:42 pm
by DPlotAdmin
Your Y becomes your Z and where you started with Y=f(X), substitute sqrt(X^2+Y^2) for X.
For example (admittedly simple case, but this should work in general): if Y=X^2/4 to a max of Y=8, then use Z=min(8,(X^2+Y^2)/4)).
Posted: Sun Dec 06, 2009 8:52 pm
by DPlotAdmin
And after typing that I realized you probably don't have a function Y=f(X) but a series of X,Y points. No - sorry, there is no way to do that.