parseUVs method

dynamic parseUVs(
  1. Map UVNode
)

Implementation

parseUVs( Map UVNode ) {

	var mappingType = UVNode["MappingInformationType"];
	var referenceType = UVNode["ReferenceInformationType"];
	var buffer = UVNode["UV"]["a"];
	var indexBuffer = [];
	if ( referenceType == 'IndexToDirect' ) {

		indexBuffer = UVNode["UVIndex"]["a"];

	}

	return {
		"dataSize": 2,
		"buffer": buffer,
		"indices": indexBuffer,
		"mappingType": mappingType,
		"referenceType": referenceType
	};

}