C++ Selecting edges with Mesh::SubObjectHitTest()

C++ Selecting edges with Mesh::SubObjectHitTest()

istan
Advisor Advisor
408 Views
3 Replies
Message 1 of 4

C++ Selecting edges with Mesh::SubObjectHitTest()

istan
Advisor
Advisor

Unfortunately this function returns also all edges of a mesh, which are actually invisible in the viewport (no matter if the Nitrous setting is GPU or CPU). Does there exist a function, which tells me if an edge is in the foreground of the viewport and therefore visible (or the opposite)?

0 Likes
Accepted solutions (1)
409 Views
3 Replies
Replies (3)
Message 2 of 4

istan
Advisor
Advisor
Accepted solution

Solved on my own.

0 Likes
Message 3 of 4

denisT.MaxDoctor
Advisor
Advisor

in a nutshell...how?

0 Likes
Message 4 of 4

istan
Advisor
Advisor

Simple solution: I added an extra test, if a front face is hiding the edge.

0 Likes