Skip to content

Commit

Permalink
More demo polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslogg committed Jun 18, 2024
1 parent 00113cf commit 9df866a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
20 changes: 20 additions & 0 deletions demos/build_terrain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This demo illustrates how to build a terrain from a point cloud.

import dtcc

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

# Remove global outliers
pointcloud = pointcloud.remove_global_outliers(3.0)

# Build terrain
terrain = dtcc.builder.build_terrain_mesh(
pointcloud=pointcloud,
max_mesh_size=10,
min_mesh_angle=25,
smoothing=3,
)

# View mesh
terrain.view()
30 changes: 0 additions & 30 deletions demos/generate_terrain_mesh.py

This file was deleted.

0 comments on commit 9df866a

Please sign in to comment.