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>):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>):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>):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>

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>):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>

Returns
Vector.<ISubGeometry>