Grasshopper

algorithmic modeling for Rhino

Hi all

Can I use GH to for example auto recognize all radius in a solid plate full of holes?
The idea is to have a 3d of a rectangle for example full of passing thru holes in it, and GH recognize the raius of every hole.

Thanks
Sergio

Views: 628

Replies to This Discussion

Do you mean that you would use a 3dm-model and want all radius? I guess the problem would be to find and reference the holes in GH. Because if you can reference a circle in a plane, you can also find one point on the circle and the centerpoint and measure that. But I have no clue how to find those circles.
Piece-o-Cake.

Use a curve parameter to reference all the edges of all the holes (window select the surface, but don't include the 4 straight edges). Feed these curves into a Center component and display the radii using a TextTag:

Thanks David and Lars

The plate will be aligned with X,Y,Z and the holes will be facing up (Z).


David I wil try your cake a bit :)
regards
Sergio
David Look below..

What is wrong?
Attachments:
If i create a new curve in Rhino it works fine, and if I select the edge of the surface it also works, but if I select the curve that I extracted manually in Rhino is doesn't work, why?

regards
sergio
Perhaps the hole isn't a perfect circle? If the curve you extract is a fitted nurbs curve instead of a parameteric circle, then the conversion failed.

Is the error "Failed to convert from Curve to Circle"?

--
David
No the error is "0 values inherited from....."

attached is the circle I extracted.
Attachments:
That's not the error, that's the tooltip info.

In order to find the error, go into the context menu, find the error icon (red sphere) and look at the list of errors.

The circle in the file you posted is actually a polycurve consisting of two 180degree arcs. You can use the What command to inspect geometry.

If you run the _SimplifyCrv command it will be converted into a single circle.

Grasshopper doesn't have a SimplifyCrv component yet, I'll add it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service