algorithmic modeling for Rhino
Hi, guys, being a newbie to grasshopper, I need u help desperately because recently I met a problem about duplicated points which are preventing a perfect solution of Fillet function.
The real problem is that the generation of my curves are through the function of "Region Difference" or "Solid Difference", after feeding them with rectangles and curves, they always generate duplicated points at certain corner of the resulting curves, thus these corners won't be correctly calculated for Fillet. As shown in the attached pic.
So wanna ask does anybody know how to get rid of those duplicated point and can still maintain the correct curves?
Tags:
hi, thx for the hint, Raul, nice to find ur reply so quickly, the "dupPts" could be the best way to eliminate duplicated pts. However I am just wondering after the component returns me a bunch of pts., how should I use them to reconstruct the original polyline in my case?
Gh has a better cull duplicates component. I dont have rhino 5 so I cant open your 3dm.
Hi, thx, Michael, really? Can u show me? I am uploading a Rhino4 file now.
Yeah I found that component, it totally works! Yeah, so with unnecessary points gone, what's next?
yeah, sure, but in my case, I have curves as well as straight lines. The biggest challenge is to get back those curves. I really have no clue about that, honestlyy.
the problem isnt duplicate points. you are creating dup points by exploding the curve. This is not necessary. I think the problem is either with circle seams or curve direction but I have no time to investigate now.
It's not duplicate points at all, what you have are curves with some very short segments. This causes two kinks to appear very close together which in turn messes with the fillet logic. These nearby kinks arise when you cut your circle union with the rectangle. The circles don't exactly line up because you Round the radii, if you remove the Round component the file seems to work as expected.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Well, thank u, David! U r absolutely right! That explains everything, I juiced up every radius just a little bit, and they are all instantly filleted. So that means the Boolean components are correct, they didn't generate any duplicated pts., I did. However, is there any component that could directly delete duplicated pts. on curve? Just wondering.
If the curve is a polyline, then yes you can remove short segments. It doesn't work for nurbs curves or polycurves though. Also note that when you remove a short (but non-zero-length) segment from a polycurve like this the two segments that now meet will be deformed slightly, so they'll no longer be circles. True duplicate vertices on a curve should get fixed with the [Simplify Curve] component.
An alternative approach would be to explode the curve, remove all short/line segments and string the rest back together again. This will shorten the curve as a whole but it will keep arcs intact.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by