How to extracting the centerline of a 2D Plane
874 5 1- J-Pam
- Member
- 13 posts
- Joined: 7月 2021
- Offline
Hello everyone,
I am a beginner with Houdini, and I have encountered a problem. I want to batch extract the centerlines of several 2D planes. After looking at other answers, I used the Labs Straight Skeleton 2D node to perform the extraction, but the result is not smooth enough, and the lines are not straight enough. What methods can I use to make the lines straighter?
I am a beginner with Houdini, and I have encountered a problem. I want to batch extract the centerlines of several 2D planes. After looking at other answers, I used the Labs Straight Skeleton 2D node to perform the extraction, but the result is not smooth enough, and the lines are not straight enough. What methods can I use to make the lines straighter?
- antc
- Member
- 337 posts
- Joined: 11月 2013
- Offline
- RGaal
- Member
- 143 posts
- Joined: 6月 2024
- Offline
- J-Pam
- Member
- 13 posts
- Joined: 7月 2021
- Offline
- J-Pam
- Member
- 13 posts
- Joined: 7月 2021
- Offline
加尔Thank you very much for your response. I will give it a try. I really appreciate it.
You can also take two boundary curves (with the same number of points), sort the order of the vertices and the point numbers so that they go in the same direction, and make a blendshape between them with a coefficient of 0.5. This is if you don't want to deal with VEX
- antc
- Member
- 337 posts
- Joined: 11月 2013
- Offline
Ok I guess this kind of got stuck in my head lol. Here's a more general solution that can handle multiple regions, overlapping sections and doesn't need any input edges to get started. It also identifies regions with more than one solution and ignores them rather than erroring. Make sure that all the input points are at integer grid locations or it won't work.
Edited by antc - 2024年9月2日 18:17:50
-
- Quick Links