Skip to content

Lines/Points: Raycast ignores BufferGeometry drawRange and groups #8479

@rock7-dan

Description

@rock7-dan

It would appear that the raycast function for Points/Line evaluates all vertices in the geometry, even when only a subset is visible (i.e. backed by BufferGeometry with a drawRange set) - resulting in erroneous hits against non-visible geometry.

Solution would be to clamp the raycast position iterators to the drawRange if there's one specified.

Would you like me to do a PR?

Three.js version
  • Dev
  • r75
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, ...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions