createPrimitiveKey top-level property
Function
createPrimitiveKey
getter/setter pair
Implementation
Function createPrimitiveKey = (Map<String, dynamic> primitiveDef) {
var dracoExtension = primitiveDef["extensions"] != null
? primitiveDef["extensions"][EXTENSIONS["KHR_DRACO_MESH_COMPRESSION"]!]
: null;
var geometryKey;
if (dracoExtension != null) {
geometryKey =
'draco:${dracoExtension["bufferView"]}:${dracoExtension["indices"]}:${createAttributesKey(dracoExtension["attributes"])}';
} else {
geometryKey =
'${primitiveDef["indices"]}:${createAttributesKey(primitiveDef["attributes"])}:${primitiveDef["mode"]}';
}
return geometryKey;
};