Grasshopper

algorithmic modeling for Rhino

Hello everybody, Im just starting with grasshopper and I wanted to know if somebody can tell me how to do the following:
I have a curve and a set of points. I would like to make lines from these points perpendicular to the curve.
The closest command that I have seen is the Curve CP but is not what I need. I want the perpendicular lines not the lines to the closest points.
Thanls a lot.
@lx

Views: 43955

Replies to This Discussion

The line from a point to the closest point on the curve will be perpendicular to the curve. Are you getting lines which are not perpendicular? If so then something is going wrong. Perhaps you can post an image or definition.
As Daniel said, you can use the crv closest point to create a perpendicular line:


or maybe your set of points are on the curve?, then you can use a horizontal or a vertical frame like this:

Thanks for your answers. What you say works in 2d but not in 3d. In 2d the closest point to a curve is perpendicular to it and is the same curve that is produced in the Y axis of the curve frames. You can see highlighted one on top of the other.

But in 3d the closest point to a curve is not perpendicular to it.

Any ideas if you have a set of points how to find the perpendicular lines from the points to the curve?
Thanks.
The line from a point to the closest point on the curve will be perpendicular to that curve whether it is a planar or a space curve.

Remember there are an infinite number of perpendicular lines to a curve at a particular point (all lying on the plane normal to the tangent of the curve at that point).
Also.. there is a vertical frame component if you need vertical lines.

Or you can move your points to a vertical plane.

Hello there,

I have a similar issue and i need your help if it is possible.

I need to have perpendicular lines and also vertical from curve's points.

The length of each line it needs to be the distance between curve point and a horizontal plane.

Could you please help me?

Thanx in advance D.A.

Attachments:
I had the same problem. I did that as folow

Other way. This produce the same effect.

dear all,

with newest G.H. seems something wrong with Hframe.

when i take the parameter values at division point as input for component HFrame, it generative 685 frames inetead of the number of division.

 

 

 

so has anyone any idea what could be the problem?

 

 

 

Attachments:

reparametrize your curve at the C input of HFrames.  (right click on C input)

I think... I don't have rhino/GH on this comp.

franck,

The N parameter expects an integer.
The parameter t he accepts any number.

A parameter t can be connected to a number ....

Warning HFrame gives plans strictly horizontal ...

There are two components:

HFrame, which expects t parameters and creates frames at t places you provide

HFrames, which expects an integer N and places N frames ar constant intervals along the curve.

...you just picked the wrong component.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service