hizamoussama / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

how to replace mesh #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
how to replace a new created mesh with the old one?

Original issue reported on code.google.com by prasen.b...@gmail.com on 31 Jul 2014 at 1:07

GoogleCodeExporter commented 8 years ago
Just remove the old mesh from the scene object using scene.removeChild() and 
add in the new one via scene.addChild(). Then update the viewer to show the 
changes.  See the API document for the mentioned methods: 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/docs/symbols/JSC3D.Scene.html.

Original comment by Humu2...@gmail.com on 1 Aug 2014 at 2:11