Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from xml.etree.ElementTree import XMLParser, TreeBuilder | |
import struct | |
import base64 | |
import re | |
class VTKTreeBuilder(TreeBuilder): | |
""" | |
Sublass of TreeBuilder that decodes ASCII or base64-encoded VTK DataArrays. | |
When the end-tag of a base64-encoded DataArray is encountered, the XML string | |
is decoded and unpacked according to its data type and the VTK specification. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.