Skip to content

Clipping of ODF actors #60

Description

@saundersresearch

Right now, we are rendering glyphs like ODFs on top of other actors, but they can clip through other actors. We have a workaround by adding an offset, but this may warp the position of the glyphs if they are scaled far enough away.

We should instead be rendering two scenes and combine them by rendering on top of each other. Something like an glyph_scene for glyphs with ShowManager should work:

showm = window.ShowManager(scene=scene, ...)
showm.window.SetNumberOfLayers(2)

scene.SetLayer(0)
glyph_scene.SetLayer(1)

showm.window.AddRenderer(scene)
showm.window.AddRenderer(glyph_scene)

# showm.window.record(...) or showm.start()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions