Packageaway3d.tools.utils
Classpublic class GeomUtil
InheritanceGeomUtil Inheritance Object



Public Methods
 MethodDefined By
  
constructSubGeometry(verts:Vector.<Number>, indices:Vector.<uint>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>, weights:Vector.<Number>, jointIndices:Vector.<Number>, triangleOffset:int):CompactSubGeometry
[static] Build a sub-geometry from data vectors.
GeomUtil
  
fromVectors(verts:Vector.<Number>, indices:Vector.<uint>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>, weights:Vector.<Number>, jointIndices:Vector.<Number>, triangleOffset:int = 0):Vector.<ISubGeometry>
[static] Build a list of sub-geometries from raw data vectors, splitting them up in such a way that they won't exceed buffer length limits.
GeomUtil
Method Detail
constructSubGeometry()method
public static function constructSubGeometry(verts:Vector.<Number>, indices:Vector.<uint>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>, weights:Vector.<Number>, jointIndices:Vector.<Number>, triangleOffset:int):CompactSubGeometry

Build a sub-geometry from data vectors.

Parameters

verts:Vector.<Number>
 
indices:Vector.<uint>
 
uvs:Vector.<Number>
 
normals:Vector.<Number>
 
tangents:Vector.<Number>
 
weights:Vector.<Number>
 
jointIndices:Vector.<Number>
 
triangleOffset:int

Returns
CompactSubGeometry
fromVectors()method 
public static function fromVectors(verts:Vector.<Number>, indices:Vector.<uint>, uvs:Vector.<Number>, normals:Vector.<Number>, tangents:Vector.<Number>, weights:Vector.<Number>, jointIndices:Vector.<Number>, triangleOffset:int = 0):Vector.<ISubGeometry>

Build a list of sub-geometries from raw data vectors, splitting them up in such a way that they won't exceed buffer length limits.

Parameters

verts:Vector.<Number>
 
indices:Vector.<uint>
 
uvs:Vector.<Number>
 
normals:Vector.<Number>
 
tangents:Vector.<Number>
 
weights:Vector.<Number>
 
jointIndices:Vector.<Number>
 
triangleOffset:int (default = 0)

Returns
Vector.<ISubGeometry>