Closed MasatoMakino closed 1 year ago
記事内のfiddleで疑問は解決しているので投稿の必要はない。 https://jsfiddle.net/MichaelJendryke/uoanwxcm/39/
なお、記事内のfiddleはimport文のurlが変更になっている。
import * as _ from "https://unpkg.com/three@0.126.1/build/three.module.js";
import {BufferGeometryUtils} from "https://unpkg.com/three@0.126.1/examples/jsm/utils/BufferGeometryUtils.js";
このように書き直すと稼働する。
https://discourse.threejs.org/t/raycaster-get-id-of-individual-geometries-of-a-mergebuffergeometry/16154