# Collapse lines

**URL:** <https://forum.gidsimulation.com/t/collapse-lines/2281>\
**Category:** Geometry\
**Created:** [September 25, 2017, 11:31am UTC](https://forum.gidsimulation.com/t/collapse-lines/2281 "2017-09-25T11:31:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felguf](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/felguf/32/17_2.png) [@Felguf](https://forum.gidsimulation.com/u/Felguf)\
**Post date:** [September 25, 2017, 11:31am UTC](https://forum.gidsimulation.com/t/collapse-lines/2281/1 "2017-09-25T11:31:55Z")

</div>

Hello,

I have a problem when collapsing lines.

By example, I have 3 points and 3 lines.  
line 1 from point 1 to 2  
line 2 from point 2 to 3  
line 3 from point 2 to 3

 ![Image3.jpg](https://forum.gidsimulation.com/uploads/default/original/1X/0ffe8c9c25b568836b89ad1cbe70bdcb7590fda0.jpeg)  
When a select lines 2 and 3 and I collapse them, it remains only 1 line from point 1 to 3. Or I want a line from 1 to 2 and a second line from 2 to 3 because there are different conditions on them. I can simply delete the line 3 but this line can belong to a surface.

What I have after collapse:

 ![Image2.jpg](https://forum.gidsimulation.com/uploads/default/original/1X/96abf21193dbd2d6f01d8760daecb0955a24df02.jpeg)  
What I want to have:  
 ![Image1.jpg](https://forum.gidsimulation.com/uploads/default/original/1X/cedf6c5c2bd52ff3cf13dd5309ed4bb861a2b8e6.jpeg)  
What could I do ?

Thanks,

Yves

---

<div class="post-metadata">

**Author:** ![escolano](https://forum.gidsimulation.com/user_avatar/forum.gidsimulation.com/escolano/32/6_2.png) [@escolano](https://forum.gidsimulation.com/u/escolano)\
**Post date:** [September 26, 2017, 2:57pm UTC](https://forum.gidsimulation.com/t/collapse-lines/2281/2 "2017-09-26T14:57:46Z")

</div>

As you notice the ‘collapse geometry’ tool is doing more things that only ‘join close entities’.  
for example it is also ‘joining near-tangent’ curves in a single curve (if the connection point only belong to these two curves)

Unfortunately nowadays is not possible to set on/off some of the ‘collapse filters’

Some cases prevent this ‘joining of near-tangent curves’,  
for example, if do you apply a ‘condition’ over the point 2, then the join will preserve it, just as you want.  
e.g. to test it load Data-\>Problem type-\>Examples-\>cmas2d  
and apply (Data-Conditions…) its condition named ‘Point-Weight’ to the point 2, and then invoke the collapse.
