bertinireal.parse

platform

Unix, Windows, MacOS

synopsis

Contains methods that parse directory name, decomposition, faces, eges, curve samples, surface samples,

parse.parse_curve_samples(directory)

Parse and store curve samples data

Parameters

directory – Directory of the curve folder

parse.parse_decomposition(directory)

Read data from decomp file

Parameters

directory – name of directory

Return type

List containing data to be stored in BRinfo class instance [pi, patch_vectors, radius, center]

parse.parse_directory_name(directory_name='Dir_Name')

Parse file that contains the directory name, the MPtype, and the dimension

Parameters

directory_name – name of directory

Return type

a list [directory, MPtype, dimension]

parse.parse_edges(directory)

Parse and store edges data

Parameters

directory – Directory of the edge folder

parse.parse_faces(directory)

Reads Faces data from F.faces Inputs: current directory Returns: list with each element being a dictionary containing the face data

Keys for each dictionary: “midpoint”, “middle slice index”, “top”, “bottom” “system top”, “system bottom”, “num left”. “left” “num right”, “right”

parse.parse_surf(directory)

Reads data from S.Surf file

Parameters

directory – name of directory

Return type

parse.parse_surface_samples(directory)

Parse and store surface samples data

Parameters

directory – Directory of the surface folder