def getCarvableObject(elementNode, globalObject, object):
 object.xmlObject = globalObject()
 object.xmlObject.elementNode = object
 object.attributes['id'] = elementNode.getFirstChildByLocalName('name').getTextContent()
 coords = elementNode.getFirstChildByLocalName('coords')
 transformElementNode = getTransformElementNode(coords, 'transformFrom')
 if (len(transformElementNode.attributes) < 16):
  transformElementNode = getTransformElementNode(coords, 'transformTo')
 matrix.setElementNodeDictionaryMatrix(object, object.xmlObject.matrix4X4.getFromElementNode(transformElementNode, ''))
 return object.xmlObject

def getCarvableObject ( elementNode , globalObject , object ) : object . xmlObject = globalObject ( ) object . xmlObject . elementNode = object object . attributes [ 'id' ] = elementNode . getFirstChildByLocalName ( 'name' ) . getTextContent ( ) coords = elementNode . getFirstChildByLocalName ( 'coords' ) transformElementNode = getTransformElementNode ( coords , 'transformFrom' ) if ( len ( transformElementNode . attributes ) < 16 ) : transformElementNode = getTransformElementNode ( coords , 'transformTo' ) matrix . setElementNodeDictionaryMatrix ( object , object . xmlObject . matrix4X4 . getFromElementNode ( transformElementNode , '' ) ) return object . xmlObject
get new carvable object info .