Message Boards Message Boards

0
|
3001 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Rotating the curve from a ListLinePlot to generate a 3D surface?

Posted 2 years ago

I have a list of x,y coordinate pairs that are the offsets from the centerline for a hull form. I can plot the hull contour with ListLinePlot as shown in the attached Notebook, but I can't see how to use this with RevolutionPlot3D to rotate that curve around the x axis to generate the 3D surface of the hull?

Attachments:
POSTED BY: Kevin Ulmer
2 Replies
Posted 2 years ago

Perfect! Thank you so very much.

POSTED BY: Kevin Ulmer

Kevin,

here is one way: First you generate an InterpolatingFunction from your data, and then you need the option RevolutionAxis:

curve = Interpolation[xyCoords];
RevolutionPlot3D[curve[t], {t, 0, 108}, RevolutionAxis -> {1, 0, 0}]

enter image description here

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract