Hello, i try to export drawn lines on canvas to Rhino3d software using UDP.
to get the points i use (currentX,currentY) but the first point is missing and if i add (startX,startY) it duplicated for every movement.
my second question when i draw many separated lines, is there a way to know how to separate their points list? i try to solve that by adding color button ,but auto separation is better
How i can get that point and at the same time i use drag tool?
I draw two lines for example, in the screen i see 2 but the list created join all points together.
how i can create separated points lists based on their separated lines.
i actually use a solution by add color to every line and than separate than in the software based on the colors
Do you mean by line which created between 2 points?
because as you see in the video it’s not just a line between 2 points , it’s a curve or polyline which have many points.
When i draw with drag all points detected by previous and current X,Y ; how touch down/up can help here?
you can check the project attached in the first post
When touch down, you start a new object. When touch up, you close the current object. In between you record as you do now all the points. The only difference is that you create a separate list of points for each touch down event. That way you know which lines should be separated and which connected.