Grasshopper

algorithmic modeling for Rhino

Well friends

Is the rounded option exposed in SDK?

Reason for asking is that appears to me that this method:

Surface[] fillets = Surface.CreateRollingBallFillet(s1, s2, fillet, tol);

it doesn't work at all - so Plan B is to create Surfaces (via loft) using rounded rectangle profiles.

best, Peter

Views: 1753

Replies to This Discussion

PS: Initially I thought that the RollingBall could get these 4 and do the result shown. It can't and thus the rounded rectangle "option" (as Loft profiles) comes in mind.

Forget it: it was so obvious ...

Hi Peter,

There's no direct RhinoCommon method which will enable you filleting rectangle corners.
As for the Surface.CreateRollingBallFillet, it's somewhat buggy, and the only way I succeeded in making it work is by combining the flipping pattern of the surfaces that need to be filleted. Using either:

filletSrf = Rhino.Geometry.Surface.CreateRollingBallFillet(srf1, True, srf2, False, r, tol)

Or:

filletSrf = Rhino.Geometry.Surface.CreateRollingBallFillet(srf1, False, srf2, True, r, tol)

Check the attached files.

Attachments:

Well..my friend (see function attached previously as regards the rounding thing: resolved shortly after posting this thread) :

1. Thanks

2. For the rounding thingy you just sample 12 pts into a NubrsCurve (rectangle.PointAt(t) - where t is the normalized parameter per rectangle "side" [0 to 4]).

2. Indeed that RollingWhatever method broke my nerves and ... well it's 100 times simpler to Loft rounded rectangles (so to speak).

take care, best, Peter

Well ... as I said I've tried exactly this (without the bool options) > nerves Kaput.

Plan B > your options > zero/nada/void/null > nerves Kaput.

best,Peter

Attachments:

Yes, it does not work when the intersection surfaces do not form square/rectangle at the line of intersection.
Hopefully Rhino 6 will finally deal with this surface fillet issue.

In fact the fillet surf in Rhino does also wrong things (you need to extend/retrim blah blah). But at least it DOES something.

Join all four surfaces first, then use "FilletEdge" command instead of "FilletSrf".

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