Solved

double the length of a line


Badge
Dear All , 

 

 

How to double the length of the line from the end point . 

 

 

Thanks, 
icon

Best answer by takashi 30 June 2014, 15:13

View original

4 replies

Userlevel 2
Badge +17
Hi,

 

 

If the line is a single line segment, use the LengthCalculator to get the length and the Extender (End port) to create extended part.

 

And then, connect the extended part to the original line using the LineJoiner, if necessary.

 

Hope this helps.

 

 

Takashi

 

 

Badge +3
Or copy the line and move one frorm startpoint of either to endpoint of either.
Badge
Thanks all , I got it working with Takashi suggestion , I use clone as suggested by Gio but I didn't find an option to move it to the end point of line . 

 

 

Thanks , 
Userlevel 2
Badge +17
Hi,

 

 

I think Gio's method is: for the copied line, extract end point coordinate (x, y) with the CoordinateExtractor (Index: 1), and move the line by (x, y) with the Offsetter.

 

 

Anothor approach.

 

1) Extract start point coordinate (x, y) with the CoordinateExtractor (Index: 0).

 

2) Move the original line with the Offsettor (X Offset: -x, Y Offset: -y), so that the start point matches with origin (0, 0).

 

3) Extend the line with the Scaler (X: 2, Y: 2, Scale Origion: 0,0).

 

4) Move the extended line to the original location with the 2nd Offsetter (X Offset: x, Y Offset: y).

 

 

Takashi

Reply