Skip to content

Commit

Permalink
Demo polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslogg committed Jun 18, 2024
1 parent a9ec367 commit 00113cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions demos/view_cityjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

import dtcc

# Set data directory (and check that it exists)
data_directory = dtcc.set_data_directory("data/cityjson")

# Load city model from CityJSON file
city = dtcc.load_city(data_directory / "DenHaag_01.city.json")
city = dtcc.load_city("data/cityjson/DenHaag_01.city.json")

# View city
city.view()
5 changes: 1 addition & 4 deletions demos/view_pointcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

import dtcc

# Set data directory (and check that it exists)
data_directory = dtcc.set_data_directory("data/helsingborg-residential-2022")

# Load point cloud from LAS file
pc = dtcc.load_pointcloud(data_directory / "pointcloud.las")
pc = dtcc.load_pointcloud("data/helsingborg-residential-2022/pointcloud.las")

# View point cloud (color by z-coordinate)
color_data = pc.points[:, 2]
Expand Down

0 comments on commit 00113cf

Please sign in to comment.