Revolving curve around an axis

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
Nmatthew
Posts: 1
Joined: Sun Dec 06, 2009 5:08 pm

Revolving curve around an axis

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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)).
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Post Reply