Grasshopper

algorithmic modeling for Rhino

Hi all,

This might be an easy question, but I could not figure it out with ..closest.. modules.

Is there a way to construct points on an off setted curve/line.

I need two new points per existing points that are perpendicular i.e. shortest distance.

This principle is shown in red in the image below.

Views: 390

Replies to This Discussion

I would do a cross product of the direction of the line with the Vector3d.ZAxis (if the line is flat on XY basis) to find the orthogonal lines (red line in your image). Then CCX (curve-curve intersection) module to find the points. 

The model consist of a 3D double curved shell structure where each panel is flattened. So the curves/lines are flat, but not all lines are in the world XY plane. Is your solution still valid??

Actually it depends on how you offset the hexagons. Line would be a bit difficult, perhaps if you can create a surface that the normal of the surface = Curve.Direction At(parameter), then have intersections between the surface and the offset hexagons you can get the points. Make sure the size is big enough that the curve will intersect. 

I just saw the file on the other discussion. I can help you but maybe when i got free time after work. 

First of all thanks for your quick response. I would really appreciate the help, its the last module of my grasshopper model for my graduation so it would be awesome if the problem could be solved.

Yours sincerely

And the GH file.

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