Grasshopper

algorithmic modeling for Rhino

Curves cutting an spherical surface and join their centers on surface

I'm trying to do this.

A nonplanar surface trimmed by closed curves on it and then join their area centers by the shortest curve (on surface)

Picking up a sphere, for example.

The problems:

i dont know how to those circles, be part of the surface instead of just planar. I tried projecting but it generate the circle on the other side of the surface.

An about joining the centers, i Only found curve on surface that generates a nurbs curve not straight lines on the surface.

I'm just starting with grasshopper.

Views: 1998

Attachments:

Replies to This Discussion

Hello Sergio,

you can try the following

you evaluate the surface at the given UVs from srf closest point, getting access to normals at these points. These normals are used for the circles projection on the sphere. Now you get two projection for each circle. You can use larger than to cull the distant ones and have the closer projected circle according to his initial planar one. using surface split component you get the partial surfaces of the sphere. using again larger than testing against areas, you can get rid of the rest of the sphere. closest points component (N=2), will output the closest two points for each center, one the center and the seconds a neighbor. lastly you can use geodesic component between centers and the closest neighbor to have curves on surface with the smallest possible length.

cheers

alex

Attachments:

Thank you!

And thks for the explanation! So usefull

Hello Sergio

i thought it might be useful to add a case of interconnection of all the evaluated point on the sphere.

this solution need ball pivot(David Reeves) found in Milkbox group and sandbox

cheers

alex

Nice, i was working on this.

Again thank you.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service