3D Model


Test Merge

Merge At: 0,0,0 -/- Merge A : 0.3,-0.3,0 -/- Merge A : 0.3,-0.3,0

This demo uses .load method with merge parameter:

 view3d.load(name+".iv3d",{merge:true,iid:{pos:[0,0,0]}});
  

Coodrinate may be passed as extra parameter to load method. This parameter, later, is available in notification and we can move node to required position. Below is sample notification handler:

function(event)
  {
   switch(event.code)
   {
    case 'merged':
	{
	  if(event.group && event.iid)
		{
		  var pos=event.iid.pos;
		  var tm=event.group.enableTM();
		  mat4.setRow(tm,3,pos);
		}
	}break;

   }
  }