Grasshopper

algorithmic modeling for Rhino

hi,

i'm confused by the tree sets in gh.

what i want to do:

  1. i've got two polysurfaces (loft and an ordinary geometry) with identical equilibriums
  2. i want to find a grid of points on the loft (it's actualy a polysurface too), analyze their curvature
  3. then i want to find closest points on the second polysurface and move them accordingly to the curvature i measured
  4. i want to create a new curved surface from the points - simply distort the secind polysurface

what i'm doing:

  1. exploding the loft brep into surfaces
  2. measuring each pieces's UV dimensions, dividing them by 3600
  3. dividing the surfaces and simplyfying the point list (there are some NULL points)
  4. searching for the closest points on the second brep
  5. so far so good
  6. now i'm not able to measure the curvature because of mismatching tree strucutres of the loft surfaces and UV coordinates inherited from SDivide
  7. therefore i'm only measuring the distance between the two surfaces
  8. moving points on the second brep accordingly to the directions and distances of the points on the two breps (this point actually doesn't matter)
  9. then i'm trying to make closed curves (rings) from the points so that i could make a loft (or any other continuous geometry based on the points i moved)
  10. the polylines are however not closed - they are torn apart and i have no idea why.

why am i doing it:

i have a basic geomerty - a basic BRep. i want to simplify and smoothen it. then i want to distort the original BRep according to curvature (or other geometric characteristics) of the simplyfied smooth surface. i want to do this iteratively - several consecutive times with various simplification.

 

i would appreciate any suggestion

 

thanks!

Views: 536

Attachments:

Replies to This Discussion

Hey,

 

how about sorting the points by their z value! row by row! and then polyline

 

Best Rgards

 

DeDackel

right... but how do i sort them into the tree system?
ok, done! if anybody's interested, i'm posting the sorting part. note the toleration slider set to 1000 - it doesn't work without a toleration
Attachments:

Hey,

That is how i meant it. I got this way from a older discussion. see the attached file.

 

this Discussion is interesting for this topic: Danny and David helped me al lot and explained  nicly how it works:

http://www.grasshopper3d.com/forum/topics/sort-mesh?id=2985220%3ATo...

 

Best Regards

 

DeDackel

Attachments:

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