Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.4K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Putting a curve on a surface

Posted 3 years ago

In picture 2 we made a petal and then made a flower. Now we want to put the flower onto a surface so that it is 3dimensional. Eventually, we want to 3d print the flower on the surface. Please help! Thanks

Flower

Petal

Image

POSTED BY: Lanee Young
4 Replies

Just for completeness - if you really want to create a 3D-print, then you could continue like so:

gr = Plot3D[(x^2 - y^2)/25, {x, y} \[Element] reg, BoxRatios -> Automatic, PlotTheme -> "ThickSurface", 
   ImageSize -> Large, PlotPoints -> 30];
flower = RegionUnion[DiscretizeGraphics[gr], Region@Sphere[{0, 0, 0}, 1.5]]

enter image description here

POSTED BY: Henrik Schachner
Posted 3 years ago

THANK YOU SO MUCH! THIS IS A GREAT IDEA!

POSTED BY: Lanee Young

Lanee Young,

here is one simple way:

(* complete flower as polar plot: *)
ppl = PolarPlot[.5 (7.89 + 8.12 Cos[4 t] + 8.526 Sin[4 t]^2), {t, 0, 2 Pi}];
(* as a little hack - destillation of points: *)
pts = Cases[ppl, Line[{pts__}] :> pts, All];
(* converting as a region: *)
reg = DiscretizeGraphics@Graphics[Polygon[pts]];
(* plot - suitable for 3D-printing: *)
Plot3D[(x^2 - y^2)/25, {x, y} \[Element] reg, BoxRatios -> Automatic, 
 PlotTheme -> "ThickSurface", ImageSize -> Large]

enter image description here

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