alignScopeToAxes

Synopsis

alignScopeToAxes()

alignScopeToAxes(alignAxesSelector)

Parameters

The alignScopeToAxes operation manipulates the scope, the pivot and the geometry attributes such that the scope's axes are parallel to the main axes. After this operation, the pivot.o, scope.r and the scope.t vectors are zero and the geometry is projected to the new scope (i.e. stays at the same place in world coordinates).
Variants of the operation align only one axis:

Related

Examples


initial scene
A--> 
   t(5,0,4) s(8,24,8) r(10,20,30)
   i("boxnewsredlowress.obj")
 
The initial scene: The pivot (fat) is in the origin; the scope (yellow) contains a translation and a rotation.

after alignScopeToSxes()
A--> 
   t(5,0,4) s(8,24,8) r(10,20,30)
   i("boxnewsredlowress.obj")
   alignScopeToAxes()
  
Applying alignScopeToAxes() removes the scope translation and rotation, rotates the pivot such that all pivot axes are parallel to the world coordinate axes and projects the geometry to the new scope such that it stays at the same place in world coordinates. Note that the pivot lies at a corner of the bounding box (which is the new scope).

after alignScopeToAxes(y)
A--> 
   t(5,0,4) s(8,24,8) r(10,20,30)
   i("boxnewsredlowress.obj")
   alignScopeToAxes(y)
   
	
Using the y-axis variant only aligns the pivot to the y-axis.

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.