Grasshopper

algorithmic modeling for Rhino

Hi!

i have a curve generated by a metaball component and a rectangle. i used the region union component to get a single curve, and then applied a fillet component. the problem is the fillet doesn't take affect where the 2 initial shapes meet.
anyway to make it work?

thanks!

Views: 629

Attachments:

Replies to This Discussion

Hi Andrei,

the metaball component creates a very dense polyline. And the fillet component will attempt to fillet all those minute little kinks between those minute little segments. I think you'll have to rebuild or refit the metaball curve before you can use Fillet in any meaningful way.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks for the reply! i rebuild the contour by using a divide curve component on the metaball, and using the resulted points as input for a curve component, and it worked.

for curiosities sake, can you tell me what "refit" would imply?
Hi Andrei,

Here's an interesting one for you to illustrate the profiler widget. I've used both your method for rebuilding the curve and the Rebuild Component for a metaball polyline and both produced very similar results but neither matched the curve until the point count got large enough 100+. (And I think this is what David means by refit, increasing the point count until they are a close match)
But the two methods have different run times below 100 points the divide component method is quicker, at 100 they are the same but more than 100 the Rebuild is significantly quicker.

very interesting, thanks for the info!
By "Refit" I meant a FitCrv operation instead of a Rebuild operation. I see I haven't actually ported FitCrv in Grasshopper yet. The difference between Fitting a curve and Rebuilding a curve is that rebuild is stupid. It basically divides into a number of segments, then InterpCrv the result. There are some additional tangency constraints, but that's the basic idea.

FitCrv is much smarter (and slower). You don't specify how many points you want, but rather what deviation the fitted curve is allowed to have. Then, when needed, more control points are inserted to adjust the curve.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

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