Conversation
|
Thank you for the pull request, @donmccurdy! ✅ We can confirm we have a CLA on file for you. |
| * @param {number} [startingIndex=0] The index into the array at which to start packing the elements. | ||
| * | ||
| * @returns {number[]} The array that was packed into | ||
| * @returns {number[]|TypedArray} The array that was packed into |
There was a problem hiding this comment.
This may need to change, discussion ongoing in #13282.
|
I think this may require some tweaks to work with Check out the code here. The pick object needs to be hideable in order to continue drill picking. The |
|
@lilleyse I hadn't noticed |
|
Unfortunately, after doing some performance measurements ...
I was a bit worried about it, but didn't expect a 2–4x slowdown! For now maybe we put this feature behind an
|
Description
Adds picking / interactivity support to BufferPointCollection, BufferPolylineCollection, and BufferPolygonCollection.
scene.pick(...)returns a{collection: BufferPrimitiveCollection, index: number}result. From this the user can create or reuse a primitive; hovering over N polygons sequentially should only require a single BufferPolygon instance.bufferprim-picking.webm
Issue number and link
n/a
Testing plan
Unit tests added.
Picking code in a sandbox would look something like this:
Author checklist
CONTRIBUTORS.mdI have updatedCHANGES.mdwith a short summary of my changePR Dependency Tree
This tree was auto-generated by Charcoal