UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 579 B
function n(n,e){return Array.isArray(n)?n.find(n=>n.mesh===e)??null:n.mesh===e?n:null}function e(e,t,s,o){const a=[];let i=!1;for(const c of e){const e=n(t,c);!1===c.pickable||e&&void 0===e.thinInstanceIndex&&void 0===e.thinInstanceRange||s&&!s(c)||(a.push({mesh:c,ignore:e}),i||=!(!c.morphTargets&&!c.skeleton||!c._cpuPositions),o||=!!(c.vat||c.thinInstances||c._gpu._vbLayout?._p||void 0!==e?.thinInstanceIndex||e?.thinInstanceRange))}return{candidates:a,deformed:i,advanced:o}}export{e as prepareIgnoredCandidates}; //# sourceMappingURL=picking-ignore-CoLcW2Ue.esm.min.js.map