Group Abstract Group Abstract

Message Boards Message Boards

Return of Christmas ball: reflection on spherical mirror

Posted 4 years ago
POSTED BY: Erik Mahieu
5 Replies

Congratulations! Your post was highlighted on the Wolfram's official social media channels. Thank you for your contribution.  We are looking forward to your future posts.

POSTED BY: EDITORIAL BOARD
Posted 4 years ago

Was a negligent “copy/paste”! Thanks for your correction Oliver!

POSTED BY: Erik Mahieu
Posted 4 years ago

In your 4th code-box the first row is missing, i.e.:

horizontalLetter2D[lt_, sc_, dx_, dy_] :=

and in the last code-box you used different variable names then in the code-box before (interStar instead of xmasStarPoints, anaStar instead of anaXmasStarPoints). It should read:

Graphics3D[{mirror, {{FaceForm[Green], EdgeForm[AbsoluteThickness[1]],
     Polygon@
      Flatten[xmasTreePoints, 1] /. {x_?NumericQ, y_} -> {0, -x, -y}, 
    EdgeForm[AbsoluteThickness[3]], 
    Polygon@Flatten[anaXmasTreePoints, 1] /. {x_?NumericQ, y_} -> {-x,
        y, 2}}}, {{FaceForm[Orange], EdgeForm[AbsoluteThickness[1]], 
    Polygon@Flatten[xmasStarPoints, 1] /. {x_?NumericQ, 
       y_} -> {0, -x, -y}, EdgeForm[AbsoluteThickness[3]], 
    Polygon@Flatten[anaXmasStarPoints, 1] /. {x_?NumericQ, y_} -> {-x,
        y, -2}}}, {AbsoluteThickness[3], 
   Line[{{-6, -5, -2}, {-6, 6, -2}, {6, 
      6, -2}, {7, -5, -2}, {-6, -5, -2}}], 
   Line[{{-6, -5, 2}, {-6, 6, 2}, {6, 6, 2}, {7, -5, 2}, {-6, -5, 
      2}}], AbsoluteThickness[2], Blue, 
   Line[{{0, 1, 0}, {0, 6, 0}}]}}, Boxed -> False, ImageSize -> 250]

Then everything is working fine:)

POSTED BY: Oliver Seipel

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

Fantastic work Erik. Thank you for sharing.

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