Grasshopper

algorithmic modeling for Rhino

Hey, I'm stuck in data structures, please help!

There are N surfaces with curves inside offset from its edge (using clipper):

The point of this script is to give an offset pattern to a texture mapping (with human plugin).

That is why I want to now make new surface meshes out of the surfaces, according to the offset. Something (by no means exactly) like this:

How do I use do this?

closest points?

relative items?

Views: 2024

Attachments:

Replies to This Discussion

H(o)i Wietse, what you are looking for is called 'Straight skeleton' (or 'Angular Bisector Network'), maybe knowing that helps in finding a working solution. I don't think I have one at the moment (nor do I recall ever seeing one at the forum), so please keep me posted about any insights about the subject.
Also I'm wondering if ClosedFillet type shouldn't be Miter(2) instead of Square(1)...

Hi Pieter,

Thanks for the name and you are right about the ClosedFillet type, it's a much clearer structure.

This script works somewhat: 

https://codequotidien.wordpress.com/2013/04/03/straight-skeleton/

It however lacks the ability to distinguish between angles facing inwards and angles facing outwards. It instead takes the smallest angle and bisects that one. 

If only we could make it bisect angles > 180 twice...

Attachments:

Looking at it again, the issue isn't

"It however lacks the ability to distinguish between angles facing inwards and angles facing outwards. It instead takes the smallest angle and bisects that one."

it's a bit more complicated -.-'

Hi Wietse,

I am not sure, if it is the same problem/topic. But maybe this tutorial can help you? looking very similiar to your drawings.

https://generativelandscapes.wordpress.com/2015/07/14/landforms-cre...

the main problem by the clipper plugin is, that the offset componennt does not retain the list order before. very annoying. but still a great plugin :) you can try to sort it with the area of the curves...

greets

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