draw seprate Widget DrawLine ( Pleas help.)

I try to draw 2 Separate lines but in the widget when I draw them at the same time they connect together .
Please if anyone has any solution for this share it with me , I really stuck.

Result

I don’t want the middle line to create and connect two lines.

what I looking for:

Create a struct that represents your line:

Use Draw Line (not Lines) to draw lines one by one by stepping through that array.

Hi, Thanks for your reply. only using struct I can draw 2 separated lines same time ? i will try it today.

if possible can you send a screenshot of the result too?

Many Thanks.

a screenshot of the result too

You don’t trust me, eh?

It’s not about structs. It’s about Draw Line vs Draw Lines nodes.

  • Draw Line draws from A----B

You can call this many times and draw lines with their own unique AB coords.


  • Draw Lines draws a line from A----B----C----D and so on…

Point C is shared between the 2nd(BC) and the 3rd(CD) line. This node continues drawing using the previous point as a starting point for the next line.

:))) I trust you for sure , but I couldn’t figure out why using Struct makes a difference. I don’t understand the logic behind it.

many many thanks .

Draw Lines makes sense if you want to draw a (closed) shape. You could probably do something along the lines of:

But it seems counterproductive at a glance. Although, I’m pretty sure there a niche where this could be utilised - depending on the format of the piped in data.