three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Raycast with non indexed BufferGeometry and drawcalls

Open mortalV opened this issue 11 years ago • 2 comments

I'm using r72dev and non indexed BufferGeometry. Sometimes I need hide some faces and I use drawcalls for exclude part of geometry. All works fine except raycast. As I see in sources only indexed BufferGeometry uses drawcalls but non indexed no.

Is it by design, not yet implemented or just bug?

Thanks.

mortalV avatar Aug 02 '15 16:08 mortalV

Not yet implemented -- likely because coders followed previous coding patterns, and it was not implemented at the start.

Non-indexed BufferGeometry supports drawcallls, but the Mesh,Line, and PointCoud raycast() methods omit that case.

WestLangley avatar Aug 02 '15 17:08 WestLangley

To clarify, drawcalls is now groups and those are supported in context of BufferGeometry and Mesh.raycast() via #14227.

Let's use #8479 to track a possible enhancement for Line.raycast() and Points.raycast().

Mugen87 avatar Mar 21 '19 13:03 Mugen87