Grasshopper

algorithmic modeling for Rhino

Hi all,

I've been trying to map one mesh to another using the MeshCP and MEval components, hoping to use for mapping one "pattern," or "gradient" from one to another, and from 2d to 3d and vice versa.

I noticed that while the process works for 2d to 3d, it somehow doesn't work for 3d to 2d as in the attached gh file with geometries internalized. It seems like the MEval component isn't returning the right outpout points in this case.

Side note..it seems like MEval does not exist in rhinocommon and so can't be used in the C# environment? What would the work around be if this workflow is to be written in code?

Any help would be greatly appreciated!

Best,

Tim

Views: 1593

Attachments:

Replies to This Discussion

Hi all,

a little update:

The same strategy failed using the MeshMap component from Kangaroo.

Please find attached an updated gh file.

Thanks again,

Tim

Attachments:

Maybe it is because your source mesh is periodic, but the target mesh isn't.

In Rhinocommon the functions I think you are looking for are:

http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...

and

http://developer.rhino3d.com/api/RhinoCommonWin/html/M_Rhino_Geomet...

Here's an example of how the meshmap component works. Internally it uses exactly the methods I just linked to above.

Attachments:

Hi Daniel,

Thanks a lot for the response and the file - that was how I thought it should work as well.

Please find attached an updated file. It work when the uv subdivision is set at 20 with a non periodic mesh; however, it seems like when the subdivision is set to 10, or 30, it doesn't work anymore.

Any idea why?

Thanks!

Attachments:

another approach/question would be, is there a way to split the periodic mesh along a seam?

so that the start and end edges coincide but are not the same. Thanks again!

Hi all,

If anyone is interested, I've come up with a work around by moving one of the edge loops out of the original mesh and thus avoid the mesh being welded into a periodic one. This opened up mesh is then map to the flat rectangular one as originally intended.

It requires using the MLoop component provided here:

http://www.grasshopper3d.com/group/milkbox/forum/topics/mesh-pipe-a...

Attachments:

Very nice! Now I see why you needed to add that little flange.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service