Group Abstract Group Abstract

Message Boards Message Boards

"Sqriancle" as a "view dependent model" (and a better shape for candy)

Posted 4 years ago
POSTED BY: Erik Mahieu
7 Replies

This is a beautiful article with beautiful presentation. I am hoping to learn the tricks for my next posts.

One question: given a 2d view of a sqriancle and some camera model, e.g., orthographic projection, can one derive the 3d view vector?

Dan

POSTED BY: Dan Reznik
Posted 4 years ago

In the article I mentioned "Generation of view dependent models using free form deformation the authors use 2D information to make 3D objects. But in my case, I needed all 3 dimensional info (the code for and a circle, and a triangle and a square) They use 2 views to generate a complete 3D object...and their method is way more universal (and complicated) Glad you enjoyed my contribution.

POSTED BY: Erik Mahieu

Hi, Erik! This really inspired me today. I used your ImplicitRegion equations in a RegionPlot3D to create something that I could export and 3D print. The print came out great! See my initial photos below. I also plan to try to print it twice as big (linearly... which, of course, makes it have 8 times the volume).

With your permission, I would like to post the 3D model on www.cults3d.com where other people will be able to download it. I would post it as a free download and credit you and your article in the item description. As an example of similar items I posted recently, see this link: https://cults3d.com/en/3d-model/various/circle-base-solids.

Thanks for the fun project today!

-Abby

Three views of 3D printed Sqriancle.

POSTED BY: Abby Brown
Posted 4 years ago

Glad you enjoyed my contribution and it gave you new inspiration! So did your beautiful website: CIRCLE BASE SOLIDS. Please go ahead and use whatever you need! Inspired by your colourfully shaded 3D prints, I adapted my "sqriancle" function and changed the square to a parabola and made it a "pariancle" (parabola/triangle/ circle)

ParametricPlot3D[{{r Cos[\[Phi]], r Sin[\[Phi]], 0.}, {r Cos[\[Phi]], 
   r Sin[\[Phi]], -2 (-1 + r^2 Cos[\[Phi]]^2 + 
      Abs[r Sin[\[Phi]]] Sqrt[1 - r^2 Cos[\[Phi]]^2])}}, {\[Phi], 0, 
  2 \[Pi]}, {r, 0, 1}, PlotPoints -> 25, 
 PlotStyle -> Lighter[Yellow, .05], MeshFunctions -> {#1 &, #2 &}, 
 Mesh -> {16, 16}, MeshStyle -> AbsoluteThickness[1], 
 PlotRange -> {{-1, 1}, {-1, 1}, {0, 2}}, Boxed -> False, 
 Axes -> False]

enter image description here

To add some color, I changed it to slices:

slice[{y1_, y2_}, col_] := 
 First@ParametricPlot3D[{{r Cos[\[Phi]], r Sin[\[Phi]], 
     0.}, {r Cos[\[Phi]], 
     r Sin[\[Phi]], -2 (-1 + r^2 Cos[\[Phi]]^2 + 
        Abs[r Sin[\[Phi]]] Sqrt[1 - r^2 Cos[\[Phi]]^2])}}, {\[Phi], 0,
     2 \[Pi]}, {r, 0, 1}, Mesh -> None, PlotPoints -> 50, 
   PlotStyle -> col, 
   RegionFunction -> Function[{x, y, z}, y1 <= y <= y2], 
   BoundaryStyle -> AbsoluteThickness[1], 
   PlotRange -> {{-1, 1}, {-1, 1}, {0, 2}}, Boxed -> False, 
   Axes -> False]

bounds = Partition[Range[-1, 1, .125], 2, 1];

pariancle = 
 Show[MapThread[Graphics3D[slice[#1, #2]] &, {bounds, colors}], 
  Boxed -> False, Lighting -> "ThreePoint"]

Grid[{Style[#, Bold] & /@ {"default", "Side", "Top", "Front"}, 
  Show[pariancle, PlotRange -> {{-1, 1}, {-1, 1}, {0, 2}}, 
     Boxed -> False, Axes -> False, ViewPoint -> #, 
     ViewAngle -> 1.5 \[Degree], 
     Lighting -> "ThreePoint"] & /@ {16 {1.3, -2.4, 2}, {50, 1, 
     0}, {0, 0, 50}, {0, -50, 1}}}, Spacings -> 0]

enter image description here

Wish I had a 3D printer now. Have fun!

POSTED BY: Erik Mahieu

Thanks! I will add the link here when it is available. Likely it will be a separate post.

POSTED BY: Abby Brown

Hi, Erik! The "Sqriancle" is now available as a free STL file download. It is posted at Cults3D: https://cults3d.com/en/3d-model/various/sqriancle. More photos are on that web page too. Thanks again for the inspiration for this project! Sqriancle Turntable Video

POSTED BY: Abby Brown

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

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