Code Monkey home page Code Monkey logo

las2mesh's Introduction

Las2Mesh

点群(.las形式)ファイルを3Dモデルに変換するツールです。出力形式は、.ply, .stl, .obj, .off, .gltf, glb に対応しています。

ダウンロード

利用方法

las2mesh.exe に 点群ファイル(.las) を Drag&Drop してください。複数まとめて Drag&Drop すると1つの3Dモデルとして出力されます。デフォルトのファイル名は output.ply です。出力形式は -o オプションで指定したファイル名の拡張子で自動判別します。なお、いずれも頂点カラーで出力されます。

伊豆急下田駅周辺(-d 11オプションを指定) G空間情報センター 静岡県 富士山南東部・伊豆東部 点群データLPデータ の .las ファイルを用いて作成 (ライセンス: クリエイティブ・コモンズ 表示)

オプション

Las2Mesh v0.2
usage: las2mesh.py [-h] [-d DEPTH] [-o OUTPUT] [-n] [files ...]

.lasファイルからメッシュを生成します

positional arguments:
  files                 対象の .lasファイル。複数指定できます。

optional arguments:
  -h, --help            show this help message and exit
  -d DEPTH, --depth DEPTH
                        メッシュの細かさを整数で指定します。デフォルト値は 10 です。
  -o OUTPUT, --output OUTPUT
                        出力ファイル名を指定します。デフォルト値は output.ply です。出力形式は、.ply, .stl, .obj, .off, .gltf に対応しています。
  -n, --nopreview       3Dプレビュー表示を無効にします

M1 Mac用環境設定

Pythonインストール

brew install python

python コマンドを有効にする

sudo ln -s /opt/homebrew/bin/python3 /opt/homebrew/bin/python

Open3Dをビルドする (see also)

git clone https://github.com/isl-org/Open3D
cd Open3D
mkdir build
cd build
cmake ..

make -j$(sysctl -n hw.physicalcpu)
sudo make install
make install-pip-package
make python-package
make pip-package

Python用ライブラリをインストール

pip3 install numpy laspy pygltflib

変換テスト (Las2Meshをclone後)

cd src
python las2mesh.py test.las -o test.glb

las2mesh's People

Contributors

ksasao avatar taisukef avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.