2023-02-02 07:32 PM
So I have a GDL object that builds up from primitives, like this:
VERT 0, 0, 0
VERT 1, 0, 0
VERT 1, 1, 0
PEN 5
MATERIAL 55
EDGE 1, 2, 1, -1, 0
EDGE 2, 3, 1, -1, 0
EDGE 3, 1, 1, -1, 0
PGON 3, 0, 0, 1, 2, 3
I'd like to make the 2D script as a projection of 3D with different pen color, like this:
PEN 3
PROJECT2 3, 270, 2 + 32
It works like a charm, but when I make the edges invisible in 3D (set status to 1) they are disappearing from the 2D view, too, so my object won't have a 2D view at all.
Is there any way to use PROJECT2 in a way that it shows edges even if they are not visible in 3D?
Solved! Go to Solution.
2023-02-02 10:11 PM
Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0
2023-02-02 10:11 PM
Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0
2023-02-02 10:28 PM
@Jochen Suehlo wrote:Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0
Because I'm awfully bad at GDL. 🙂
Thanks a lot, it solved the problem.