import json
from sectionproperties.pre import Geometry

# the following path is a .json file that is a BREP describing a 1 x 1 square
rhino_path = "../_static/cad_files/rhino_brep.json"

with open(rhino_path) as rhino_file:
    brep_encoded = json.load(rhino_file)

# load BREP file into a Geometry object
geom = Geometry.from_rhino_encoding(r3dm_brep=brep_encoded)
geom.plot_geometry()