Doodle3D-Slicer/three.js-master/docs/api/extras/SceneUtils.html

53 lines
1.7 KiB
HTML
Raw Normal View History

2015-06-12 15:58:26 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="../../list.js"></script>
<script src="../../page.js"></script>
<link type="text/css" rel="stylesheet" href="../../page.css" />
</head>
<body>
<h1>[name]</h1>
<div class="desc">A class containing useful utility functions for scene manipulation.</div>
<h2>Methods</h2>
<h3>[method:Object3D createMultiMaterialObject]([page:Geometry geometry], [page:Array materials])</h3>
<div>
geometry -- The geometry for the Object. <br />
materials -- The materials for the object.
</div>
<div>
Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as Meshfacematerial which defines multiple material for 1 mesh.<br />
This is mostly useful for object that need a material and a wireframe implementation.
</div>
<h3>[method:null attach]([page:Object3D child], [page:Object3D scene], [page:Object3D parent])</h3>
<div>
child -- The object to add to the parent <br />
scene -- The scene to detach the object on. <br />
parent -- The parent to attach the object from.
</div>
<div>
Attaches the object to the parent without the moving the object in the worldspace.
</div>
<h3>[method:null detach]([page:Object3D child], [page:Object3D parent], [page:Object3D scene])</h3>
<div>
child -- The object to remove from the parent <br />
scene -- The scene to attach the object on. <br />
parent -- The parent to detach the object from.
</div>
<div>
Detaches the object from the parent and adds it back to the scene without moving in worldspace.
</div>
<h2>Source</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>