%pip install specklepy
%pip install pandas
from specklepy.objects import Base
from specklepy.api.client import SpeckleClient
from specklepy.api.wrapper import StreamWrapper
from specklepy.api.credentials import get_default_account
from specklepy.transports.server import ServerTransport
from specklepy.api import operations
import pandas as pd
wrapper = StreamWrapper("https://speckle.xyz/streams/f8fdca34e8/commits/415b381d6c")
client = wrapper.get_client("743d2df1ec7e610a0a3adb9b2167414542c18ca328")
transport = wrapper.get_transport()
def get_data_frame(base:Base):
id = []
name = []
volume = []
area = []
for e in base.elements:
id.append(e.id)
name.append(e.speckleType.split(".")[-1])
volume.append(e.volume)
area.append(e.area)
data = {
"id" : id,
"Name" : name,
"Volume" : volume,
"Area" : area
}
return pd.DataFrame(data=data)
A cool Demo Project
Povl Filip Sonne-Frederiksen (03/02/2024 21:55:50)
LINK Arkitektur
Welcome to this fancy model.
Report
Content
The rendering shows a section through Zaha Hadid's Vitra Fire Station. The building is characterized by its dynamic and fluid forms, which are inspired by the surrounding landscape. The use of concrete and glass creates a striking contrast between the building and its natural surroundings. The building is also notable for its sustainable features, such as its use of natural ventilation and rainwater harvesting.
Zaha Hadid was a British-Iraqi architect who was known for her innovative and visionary designs. She was one of the most influential architects of her generation, and her work has been widely celebrated. The Vitra Fire Station is one of her most iconic works, and it is a testament to her unique talent and vision.
The Vitra Fire Station is located in Weil am Rhein, Germany. It was designed by Zaha Hadid and completed in 1993. The building is part of the Vitra Campus, which is a collection of buildings designed by some of the world's most famous architects. The Vitra Fire Station is a striking and iconic building that has become a popular tourist destination.
The building is made of concrete and glass. It has a dynamic and fluid form that is inspired by the surrounding landscape. The use of concrete and glass creates a striking contrast between the building and its natural surroundings. The building is also notable for its sustainable features, such as its use of natural ventilation and rainwater harvesting.
The Vitra Fire Station is a unique and visionary building that is a testament to Zaha Hadid's talent and creativity. It is a popular tourist destination and a must-see for anyone interested in architecture.
Enclosing Bubbles
| speckleType |
area |
volume |
| Brep_1 |
229.75 |
0.00 |
| Brep_2 |
2442.56 |
345.39 |
get_data_frame(operations.receive(obj_id='579f5fddca97878e525f2adf11277d9e', remote_transport=transport))
Slabs And Steps
| speckleType |
area |
volume |
| Brep_1 |
416.33 |
0.00 |
| Brep_2 |
415.37 |
71.44 |
| Brep_3 |
776.41 |
599.30 |
| Brep_4 |
14.07 |
0.00 |
| Brep_5 |
711.87 |
120.28 |
| Brep_6 |
36.72 |
0.00 |
| Brep_7 |
8.72 |
0.00 |
| Brep_8 |
143.71 |
0.00 |
| Brep_9 |
250.30 |
0.00 |
| Brep_10 |
80.50 |
0.00 |
| Brep_11 |
31.69 |
0.00 |
| Brep_12 |
1134.37 |
169.73 |
| Brep_13 |
1111.62 |
159.47 |
| Brep_14 |
246.56 |
105.10 |
| Brep_15 |
302.63 |
0.00 |
| Brep_16 |
4.26 |
0.00 |
| Brep_17 |
39.93 |
1.83 |
| Brep_18 |
416.73 |
58.24 |
| Brep_19 |
1.94 |
0.13 |
| Brep_20 |
27.14 |
0.00 |
| Brep_21 |
79.61 |
19.91 |
| Brep_22 |
13.79 |
0.62 |
| Brep_23 |
13.87 |
0.63 |
| Brep_24 |
58.06 |
6.86 |
| Brep_25 |
564.11 |
101.97 |
| Brep_26 |
287.28 |
43.35 |
| Brep_27 |
35.11 |
4.67 |
| Brep_28 |
801.59 |
161.61 |
get_data_frame(operations.receive(obj_id='cc9cc5550310e8f13819d6964674ebfe', remote_transport=transport))
Structural Columns
| speckleType |
area |
volume |
| Brep_1 |
55.74 |
2.23 |
| Brep_2 |
55.74 |
2.23 |
| Brep_3 |
55.74 |
2.23 |
| Brep_4 |
55.74 |
2.23 |
| Brep_5 |
55.74 |
2.23 |
| Brep_6 |
55.74 |
2.23 |
| Brep_7 |
55.74 |
2.23 |
| Brep_8 |
55.74 |
2.23 |
| Brep_9 |
55.74 |
2.23 |
| Brep_10 |
55.74 |
2.23 |
| Brep_11 |
55.74 |
2.23 |
| Brep_12 |
55.74 |
2.23 |
get_data_frame(operations.receive(obj_id='84b8986d1e931136de2cfbd085375158', remote_transport=transport))
Building Base
| speckleType |
area |
volume |
| Brep_1 |
1814.98 |
0.00 |
| Brep_2 |
363.99 |
50.57 |
get_data_frame(operations.receive(obj_id='fe7b8733254f25544e5d3b674f26846e', remote_transport=transport))
Escalators
| speckleType |
area |
volume |
| Brep_1 |
93.26 |
29.48 |
| Brep_2 |
30.23 |
1.37 |
| Brep_3 |
30.23 |
1.37 |
| Brep_4 |
30.23 |
1.37 |
| Brep_5 |
30.23 |
1.37 |
get_data_frame(operations.receive(obj_id='0faa4efb5f3890661972a46c0c2713b4', remote_transport=transport))
Railings
| speckleType |
area |
volume |
| Brep_1 |
51.96 |
1.25 |
| Brep_2 |
30.41 |
0.00 |
| Brep_3 |
49.61 |
1.20 |
| Brep_4 |
46.74 |
2.15 |
| Brep_5 |
58.50 |
2.64 |
| Brep_6 |
7.29 |
0.32 |
| Brep_7 |
57.34 |
2.57 |
| Brep_8 |
32.88 |
1.48 |
| Brep_9 |
28.00 |
1.26 |
| Brep_10 |
10.75 |
0.48 |
| Brep_11 |
60.47 |
2.79 |
| Brep_12 |
38.21 |
1.77 |
| Brep_13 |
133.79 |
6.06 |
| Brep_14 |
46.73 |
2.13 |
| Brep_15 |
45.72 |
2.09 |
get_data_frame(operations.receive(obj_id='968b2ad2937bcfdcbd140dd54122c042', remote_transport=transport))