cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Prevent (!) Line elimination

runxel
Ace
Hey folks, I have a TUBE{2} and need my lines to be NOT eliminated.
See this picture below, just two cubes (as dummy) to show the issue. If you stack them, they will join and I somehow need to prevent this from happening, since they need to be visually different.
The MASK parameter for the tube{2} is set to 1+2+16+32, which means, the line elimination flags are not set (especially looking at you, 1024!).
Yet, it still eliminates the line between the two objects.

Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
1 ACCEPTED SOLUTION
14 REPLIES 14

Miha Nahtigal
Enthusiast
I don't think you can do this. But you can change your layer's intersection priority to 0.

runxel
Ace
vuego wrote:
I don't think you can do this. But you can change your layer's intersection priority to 0.
D%mn. That would be quite silly. Why then even have the line elimination flags, if they are useless?
Hopefully Péter will drop by and sharing some knowledge.

In the end I could just go very ugly and make them tubes a fraction of a mm smaller.
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Anonymous
Not applicable
Perhaps I am missing something, but I think this line eliminating thing is related to the coplanar adjacent surfaces hard coded within AC.
Either you change the layer priority number or create a different surface to show the line.
I have mentioned this on a Line/Surface Merging Control wish.
GS did give some prompt feedback at the time (Thanks Gergely Hari!). It seems they are more for including this in the BM definition. Lets hope this for AC25.

Joachim Suehlo
Advisor
If you use BODY - 1 at the end of a PRISM_ command, you can merge the surfaces of 2 PRISM_, which surfaces are not merged by default. Maybe there is something that works in the opposite direction.
Joachim Suehlo . AC12-26 . MAC OSX 10.15 . WIN10

David Maudlin
Virtuoso
runxel wrote:
In the end I could just go very ugly and make them tubes a fraction of a mm smaller.
Or use the Poly2 command to draw the lines. I have done this in similar circumstances.

David
David Maudlin / Architect

www.davidmaudlin.com

Digital Architecture

AC26 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

runxel
Ace
David wrote:
runxel wrote:
In the end I could just go very ugly and make them tubes a fraction of a mm smaller.
Or use the Poly2 command to draw the lines. I have done this in similar circumstances.
Hey David, you mean with POLY_ set to `model wire`?
Mhm, that could be workaround.
Still a very dumb way, tho...
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Solution
runxel
Ace
Oh I have to apologize by the way:
The example above is not TUBE{2} but a simple PRISM_. (I changed it later, that's why.)
Sorry!

So with Prisms it always eliminates lines, even without a BODY -1 being in place!

With TUBE{2} it works as advertised. It will eliminate lines if the mask flag has both 512 and 1024 bits set.


Sorry again for the confusion. I think I will just go back to a tube, even tho it's a bit more verbose than a prism, but at least the optics are like I want them 🙂
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

David Maudlin
Virtuoso
runxel wrote:
Hey David, you mean with POLY_ set to `model wire`?
Yes, my mistake, I mixed up the 2D and 3D commands. Lin_ is also an option.

David
David Maudlin / Architect

www.davidmaudlin.com

Digital Architecture

AC26 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

A_ Smith
Advocate
runxel wrote:
The example above is not TUBE{2} but a simple PRISM_.
well, idk maybe i'm missing something
pen 20 !  red contour
material 99 ! grey material

prism_ 5, 1, 
0,0,15,
1,0,15,
1,1,15,
0,1,15,
0,0,15

addz 1

prism_ 5, 1, 
0,0,15,
1,0,15,
1,1,15,
0,1,15,
0,0,15

del top
AC 22, 24 | Win 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!