[osg-users] Show part of geometry which intersects a specific area

Hartwig Wiesmann hartwig.wiesmann at skywind.eu
Mon Mar 26 14:40:27 PDT 2018


you may use a PolytopeIntersector to get all items intersecting the rectangle. Afterwards, you may modify the node mask of the found items: set a specific bit of the node mask to one if it is found by the PolytopeIntersector and to zero if not (by implementing a visitor inspecting the scene). The camera will then cull all items that have a zero in the node mask.

You may also write your own visitor that is doing this checking and sets the node mask of the visited drawables at the same time.


Read this topic online here:

More information about the osg-users mailing list