本文へスキップ

xrhandscanning

説明

このイベントは、すべてのハンドARリソースがロードされ、スキャンが開始されると、xrhandによって発行される。

xrhandscanning.detail : {maxDetections, pointsPerDetection, rightIndices, leftIndices}.

プロパティ説明
最大検出数同時に処理できるハンドの最大数。
ポイント・パー・ディテクションハンドごとに抽出される頂点の数。
rightIndices:[{a, b, c}]。手のメッシュの三角形を形成する頂点配列へのインデックス。
leftIndices:[{a, b, c}]。手のメッシュの三角形を形成する頂点配列へのインデックス。

const initMesh = ({detail}) => {
const {pointsPerDetection} = detail
this.el.object3D.add(generateMeshGeometry({pointsPerDetection}))
}
this.el.sceneEl.addEventListener('xrhandscanning', initMesh)