file_processing module

A very general collection of functions used for finding files, JSON file creation, JSON file reading, updating dictionaries, detecting small geometric objects etc.

file_processing.is_only_small(gsm_list)[source]

Returns True if this list of geometries contains only lines and points :param gsm_list: list of (ModelGeometries, STYLE, METADATA) objects :returns: True if we think this is a small model that can fit in one collada file

file_processing.read_json_file(file_name)[source]

Reads a JSON file and returns the contents

Parameters:file_name – file name of JSON file