{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "3ef1d31d-b8d2-4a13-916b-819868ec6df2", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Jupyter environment detected. Enabling Open3D WebVisualizer.\n", "[Open3D INFO] WebRTC GUI backend enabled.\n", "[Open3D INFO] WebRTCWindowSystem: HTTP handshake server disabled.\n" ] } ], "source": [ "import laspy\n", "import numpy as np\n", "import open3d as o3d" ] }, { "cell_type": "code", "execution_count": 2, "id": "82ee9b51-c12b-49b1-a9b0-68d11b1fabdb", "metadata": {}, "outputs": [], "source": [ "data_2012 = laspy.read(\"2012/golm_364806_fp.las\")" ] }, { "cell_type": "code", "execution_count": 3, "id": "85d67e00-3749-4bbf-a1a9-fa8a700b894d", "metadata": {}, "outputs": [], "source": [ "points = np.vstack((data_2012.x, data_2012.y, data_2012.z)).T" ] }, { "cell_type": "code", "execution_count": 4, "id": "da00e8e7-ae4a-449c-b5bc-2f08939903e9", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\u001b[1;33m[Open3D WARNING] GLFW Error: Wayland: The platform does not support setting the window position\u001b[0;m\n", "\u001b[1;33m[Open3D WARNING] Failed to initialize GLEW.\u001b[0;m\n", "\u001b[1;33m[Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.\u001b[0;m\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "libdecor-gtk-WARNING: Failed to initialize GTK\n", "Failed to load plugin 'libdecor-gtk.so': failed to init\n" ] } ], "source": [ "pcd = o3d.geometry.PointCloud()\n", "pcd.points = o3d.utility.Vector3dVector(points)\n", "o3d.visualization.draw_geometries([pcd])" ] }, { "cell_type": "code", "execution_count": null, "id": "f1b92eec-b6a1-4c51-ba2e-c7432f9cd2c9", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.13" } }, "nbformat": 4, "nbformat_minor": 5 }