Grasshopper

algorithmic modeling for Rhino

Hello the math addicts,

I try to build a GH to design conical anamorphisis in 3D, the aim is to transform a shape to obtain the undeformed image in a miror cone.

here is an exepmle : http://www.millersville.edu/physics/experiments/079/index.php

Anyone have a clue to fulfill this crazy transformation ?

Have a nice day

Paul

Views: 1614

Replies to This Discussion

Place the original image below the cone,

take a line from the viewing point to each point of this image,

intersect these lines with the surface,

rotate each line 180° about the surface normal at the intersection point,

intersect the rotated line with the XY plane to get the transformed point.

No need to write any equations, and the nice thing about doing it this way is it is then trivial to use a different viewing point, or a different shaped mirror or image surface.

Thank you Daniel,

have you any idea to do it with Brep and/or Surfaces in order to see the undeformaed image in the miror ?

Paul

As a check/to see the undeformed reflection, just render it with a reflective material:

This definition works with surfaces - to use a Brep you'll have to explode it first

Attachments:

I'd like to do it with a volume.

for exemple to deforme a 3D shoe in order to get the underformed image of the shoe in the mirror when you look above the cone.

It sound tricky but it seems to be possible with morph tools.

Here's the same thing for a 3d mesh:

Just rotate the ray 180° around the normal, that's all there is to it.

Attachments:

Thanks a lot Daniel,

I work the deformation in a full 360° circle.

I'll have to find a solution to delete the central faces which appear on the middle of the cone and link the end of the mesh.

Pimp!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service