Grasshopper

algorithmic modeling for Rhino

I want to know the lowest point in a curve (z=min)

Thanks!

Views: 2189

Replies to This Discussion

I would find the bounding box of the curve and use it to find what you are looking for. The minimum z of the boundingBox will be the minimum z of the curve.

There's a curve extremes component. In code you can take two approaches (one hack, one slow):

  • Create a point really, really far away below the curve, then find the closest point on the curve.
  • Project the curve onto the plane, and then use Curve.GetDistancesBetweenCurves on these two.

--

David Rutten

david@mcneel.com

I thought you wanted to know which point on the curve is the lowest?

If you only want to find out the lowest z value of a curve, then getting the boundingbox is the ideal solution.

--

David Rutten

david@mcneel.com

Isn't easier if you just intersect the plane with the curve?

That was perfect!

Sorry guys because I didn't make clear if I wanted the lowest Z value or the lowest point. I wanted the lowest point.

Thank you all

yes

Hi Marcus,

I used Export Quick Image from Grasshopper.

File > Export Quick Image (Ctrl + Shift + Q)

Then click on Viewport Frame (the middle icon on the up-right corner).

maybe this?

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service