MasatoMakino / threejs-lab

Studies for three.js.
MIT License
3 stars 0 forks source link

マージジオメトリの要約をフォーラムに投げる #22

Closed MasatoMakino closed 1 year ago

MasatoMakino commented 1 year ago

https://discourse.threejs.org/t/raycaster-get-id-of-individual-geometries-of-a-mergebuffergeometry/16154

MasatoMakino commented 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";

このように書き直すと稼働する。