简体   繁体   中英

how to hide/show stl model with the checkbox in three.js

I am trying to hide/show stl file with the toggle in checkbox. Thank you in advance. I have tried scene.remove(outerstl);

Use the property Object3D.visible in order to control visibility for an arbitrary 3D object. It's not necessary to remove the object from the scene.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM