Revolving curve around an axis
Moderator: DPlotAdmin
Revolving curve around an axis
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.
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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)).
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
support@dplot.com
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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
support@dplot.com