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

Prevent (!) Line elimination

runxel
Mentor
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.

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
1 ACCEPTED SOLUTION

Solution
runxel
Mentor
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 🙂
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

14 REPLIES 14

vuego
Participant
I don't think you can do this. But you can change your layer's intersection priority to 0.

runxel
Mentor
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.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Braza
Newcomer
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.
Paulo Henrique Santos, Architect
AC24_INT#3008 / I7 / 16Gb / 512Mb SSD / Windows 10

Joachim Suehlo
Advocate
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-25 . MAC OSX 10.15 . WIN10

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
AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.14.6

runxel
Mentor
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...
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Solution
runxel
Mentor
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 🙂
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

View solution in original post

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
AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.14.6

A_ Smith
Contributor
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

runxel
Mentor
A. wrote:
well, idk maybe i'm missing something
In my example above it is the same object, just placed twice, so it is stacked upon each other, which will lead to the line elimination.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Joachim Suehlo
Advocate
In my example above it is the same object, just placed twice, so it is stacked upon each other, which will lead to the line elimination.
What is different in your script to the one from A. Smith, that you do not get the lines?
Joachim Suehlo . AC12-25 . MAC OSX 10.15 . WIN10

Lingwisyer
Virtuoso
Joachim wrote:
In my example above it is the same object, just placed twice, so it is stacked upon each other, which will lead to the line elimination.
What is different in your script to the one from A. Smith, that you do not get the lines?

Two boxes in TWO objects vs two boxes in ONE object.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Joachim Suehlo
Advocate
Two boxes in TWO objects vs two boxes in ONE object.
This is interesting, because 2 double boxes on top of each other have a separation line,
while 2 singles boxes don't have.
Joachim Suehlo . AC12-25 . MAC OSX 10.15 . WIN10

Peter Baksa
Graphisoft
Graphisoft
Hi all,

cprism_{3} can control line elimination:
cprism_{3} 0, 0, 0, 0,
	4, 1,
	0, 0, 0, 15, 0,
	0, 1, 0, 15, 0,
	1, 1, 0, 15, 0,
	1, 0, 0, 15, 0
Péter Baksa
Software Engineer, Library as a Platform
GRAPHISOFT SE, Budapest

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!