子扬 张

feishikath

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

How do I create points on the line June 24, 2024, 7:16 a.m.

In general, I need to merge multiple lines of road into one line. The road vector line data comes from OpenStreetMap. It may be drawn manually on the map, so it seems that there is no fixed rule.

For example, for a two-lane road, I need to first determine whether it is a two-lane road, and then I am asked to merge the corresponding points of the two-lane road.
This means that if one line has a point but the other corresponding position does not have a point, I need to add a point at that position and then merge it.
I can programmatically calculate the coordinates of where to add the point, but I can't programmatically add it to the line.

I was asked to do this, but I actually think this might not be a good idea.

As shown in the figure, the red dots are where the points need to be added, and there is also an actual road map with the lines that need to be merged marked.

How do I create points on the line June 20, 2024, 10:21 p.m.

juejuezi
delete the original line, add points and reconnect in order
Thank you for your reply!

I have to deal with a lot of complicated road vector lines. Each line goes in a different direction, how do I sequence it so that it successfully connects to the original direction.

Another method I tried was to calculate the length of a line and then use the refine node to add points,but there are too many segments on a broken line,I think the calculation is a little bit tedious and multiple points may be added to a line. I don't know if there are other efficient ways to do it.

One of the lines is shown here.

Thank you!

How do I create points on the line June 20, 2024, 3:13 a.m.

Hi,I want to programmatically add points on line at a specified location. But the point I created with the add node does not belong to the specified line. Can anyone tell me which node I should use? Or how do i create points on the line with VEX