Grasshopper

algorithmic modeling for Rhino

# Mapping a shape between two triangles

Hi,

I've been trying to solve this by several approaches but couldn't fnd a way. I have a number of triangles with different proportions, and I'd like to map onto each one a reference shape I've drawn around a reference triangle.

The problem seems to be that the target triangles are generated by the three vertices as trimmed surfaces, and so if I use a bbox, the resulting box is not what I'd expect. Please see images attached.

All the examples I've found use four-sided cells. Is there any way to do this with triangles?

Views: 3953

Attachments:

### Replies to This Discussion

Will a cow do ?

(mesh from here http://liris.cnrs.fr/meshbenchmark/)

Attachments:

Yeah, a toy-cow will do just fine.
Thinking about the possible uses of the mapping concept my mind got stuck on deforming/morphing. Thanks for un-stucking it with your collision detection idea!

heehe...  The cow jiggles like jello!

nice work!

is there any description about the transformation matrix component so I can understand what its doing?

Thanks a lot for all the replies. Now I have lots of homework to do... I'll post with more questions or (hopefully) success stories.

ST

Very interesting discussion guys!
Nice work Jacek and Daniel, the cow animation is awesome:)
I am so going to play with this info asap:) Thanks.

Hi Guys,

Interesting Tread, I have been trying to hack the code posted by Daniel so i can map a mesh form from one extruded rombus box to another but as soon as i rotate or move the target box in anyway the closest point logic seems to fail and the mesh form in side the box is destroyed.

Any thoughts

thanks matt

• Add Photos
• View All

## Videos

• ### Grasshopper tutorial : Commands - Populate Geo.

Added by Parametric House

• ### Grasshopper tutorial : Commands - Closest Points

Added by Parametric House

• ### Rhino Grasshopper - Number slider with range (Method 2)

Added by Sim Pern Chong

• ### Rhino Grasshopper - setting the number of objects to produce

Added by Sim Pern Chong

• ### Grasshopper tutorial : Commands - 4Point Srf

Added by Parametric House

• ### Grasshopper tutorial : Lunchbox - Klein Surface

Added by Parametric House

• Add Videos
• View All

© 2018   Created by Scott Davidson.   Powered by