tests/compas_wood_2_read_xml.py
Description: Read a data-set of polylines with or without properties from an XML file.
Output: Preview of the data-set in compas_view2
from compas_wood.joinery import filenames_of_datasets
from compas_wood.joinery import read_xml_polylines
from compas_wood.viewer_helpers import display
# read the xml file and get a data-set
foldername = (
"../compas_wood/src/frontend/src/wood/dataset/"
)
filename_of_dataset = filenames_of_datasets[7]
output_polylines = read_xml_polylines(foldername, filename_of_dataset)
# display the putput
display(None, output_polylines, None, 0.001)
Viewer Output