How to Fillet/Bevel Curve and Line with perfect radius.

   902   12   1
User Avatar
Member
2 posts
Joined: 8月 2024
Offline
Hello, Pretty new to Houdini. and trying to work out how to fillet line connected to curve.

Issue whatever number points i use is no way to get it near perfect.

Is only way to draw cycle for fillet and trim the overlap (im still workings out how to do this.


Image Not Found

Image Not Found

Image Not Found

Image Not Found

Attachments:
how-to-fillet-curve-and-line-v0-irenrob0o8ld1.webp (7.3 KB)
how-to-fillet-curve-and-line-v0-219cf8x0n8ld1.webp (9.3 KB)
how-to-fillet-curve-and-line-v0-0au8onrcgbld1.webp (15.2 KB)
how-to-fillet-curve-and-line-v0-90z4urmvhbld1.webp (2.6 KB)

User Avatar
Member
127 posts
Joined: 6月 2024
Online
Unfortunately, it is impossible to make a round bevel on polylines in Houdini for reasons unknown to me, but this is a conscious choice of the developers, as they talked about. Bevel in Houdini has significant bugs, plus this strange solution for bevel of lines.
You can get a round bevel on splines if your line is correctly converted to Bezier (and here you will have to add 2 additional points for each point) and then in the curve node you can manually make a round corner. But there are many nuances. A round corner will be made between straight lines. And if you connect a straight line and an arc, then for an accurate transition you need to ensure that the tangents coincide at the transition point. This can be done in a very non-trivial way - you need to make the last segment of the arc adjacent to the corner straight (we remember that it is Bezier), manually align it as a continuation of the penultimate segment of the arc so that their tangents are the same, for this you will have to shift the corner itself. We make the angle round, the tangent of the bevel adjoining will be equal to the tangent of the straight line of the last segment and coincides with the tangent of the penultimate segment. Accordingly, if we increase the angle so that it "eats" the entire last segment, then it will reach the point of the penultimate segment of the arc and their tangents will coincide. And we will need to connect the points. Voila, the perfect transition. But it is so difficult that it is easier to outline a cylinder, right?
Or convert it to polylines, squeeze polygons out of lines, make a bevel on the corner (on polygons it will make a round bevel), select the edge and convert it to a line, think something bad about the one who came up with it.
User Avatar
Member
675 posts
Joined: 9月 2013
Offline
Hi Matteh,

not perfect but a quite flexible way to round corners might be offsetting SDFs.

Attachments:
SDF_bevel.hipnc (150.3 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
127 posts
Joined: 6月 2024
Online
Ahahaha, that's the whole Houdini - not to make a simple normal bevel, but to make incredibly twisted paths for the solution, which any roller coaster would envy.
User Avatar
Member
2 posts
Joined: 8月 2024
Offline
Thank you for replies testing all this out see how it goes. I'm pretty surprised no simple way.
User Avatar
Member
127 posts
Joined: 6月 2024
Online
Matteh
I'm pretty surprised no simple way.
That's the goal of Houdini, bro! The user should always suffer a little.
User Avatar
Member
141 posts
Joined: 8月 2012
Online
The underutilized Fillet SOP is capable of producing circle arcs.
User Avatar
Member
141 posts
Joined: 8月 2012
Online
And here is an example of replacing vertices on a polyline with actual circular arcs.

Attachments:
polyfillet.hiplc (257.3 KB)

User Avatar
Member
127 posts
Joined: 6月 2024
Online
Just to make a round bevel in Houdini...

Attachments:
Screenshot 2024-09-07 223819.jpg (412.3 KB)

User Avatar
Member
2110 posts
Joined: 9月 2015
Offline
RGaal
Just to make a round bevel in Houdini.

If you do that with nurbs/bezier curves to start with, it's much simpler and much less code.

I do that with my modeling - the 'secret' being keeping all your prelimaray work done in nurbs/bezier space first,
only converting to polygons when you are at the end of your building.
User Avatar
Member
141 posts
Joined: 8月 2012
Online
RGaal
Just to make a round bevel in Houdini...

I'll accept that it might not be the best way to do it, but it works. If I wrapped it up in a blackboxed HDA you wouldn't be any the wiser into knowing how it's set up. Feel free to improve/redesign the technique~
User Avatar
Member
675 posts
Joined: 9月 2013
Offline
For a convex 2D shape you could also copy a circle to each corner point and use the convex hull node.

Attachments:
circle_bevel_convex.hipnc (123.2 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
127 posts
Joined: 6月 2024
Online
This is very inventive, I swear! If there was a competition to invent crutches for Houdini, Konstantin would take first place!
  • Quick Links