Grasshopper

algorithmic modeling for Rhino

Finding normal vectors on precise points of a mesh

Hello,

I'm trying to orientate these cylinders following the normal vector of the mesh in correspondance of the intersections points between the curved lines (sort of ribs).

Two problems:

- The intersection curve-curve-curve between all the curves doesn't give all the real points of intersection, but only some of them... I don't understand why..

- Moreover, I think that's something wrong with "evaluate mesh", because it doesn't give the right point (some points are moved far from the mesh)

I hope that someone could give me an advice about it...!

Thanks!

Views: 1624

Attachments:

Replies to This Discussion

Ok, I've just used this script from David Rutten:

http://www.grasshopper3d.com/forum/topics/line-line-intersestion-pr...

It works, but seems that some curves doesnìt intersect, even if they are part of the same mesh..what can I do?

Hi Claudia,

The curves are actually polylines because they are the intersections between the planes and the mesh faces (press Ctrl+M in grasshopper to see the mesh edges).

Your mesh has quad faces (4 points) and they are not planar so if 2 polylines cross a face from opposite edges then they actually do not intersect. One way to get around this is to triangulate all mesh faces ([Mesh Triangulate] component under Mesh/Analysis Tab). This way all faces will be planar and you will get all the intersection points.

I also noticed that this solution (triangulate mesh faces) actually sorts out your second issue as well (though I can't understand why...).

I would just suggest adding a [cull duplicate points] component because some intersections provide 2 points:

I was convinced that the quadrangular face were planar, so it didn't make sense to me.

Now it works fine, thank you.

I have only another doubts: how can I exclude the base points from the list of the intersection point? I don't need the cilinders at the base angles.

You could cull the points with Z coordinate close to 0:

Attachments:

Great, you gave a precious help :)

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