Python Wrapper for CloudCompare CLI
Project description
CloudCompare CLI Python Wrapper
This is a python wrapper for CloudCompare CLI based on this Wiki Page.
You can build and chain commands which can be executed.
Installation
This package is uploaded to pypi, so you can install it with pip:
pip install pyCloudCompareCLI
Otherwise you can just install it from source using the Github-Repository.
Requirements
- Python3.6+
- An installed version of CloudCompare
Basic Usage
Read ply-file and save in ascii-format with extension ".xyz".
import pyCloudCompare as cc
cli = cc.CloudCompareCLI()
cmd = cli.new_command()
cmd.silent() # Disable console
cmd.open("pointcloud.ply") # Read file
cmd.cloud_export_format(cc.CLOUD_EXPORT_FORMAT.ASCII, extension="xyz")
cmd.save_clouds("newPointcloud.xyz")
print(cmd)
cmd.execute()
Same example with Context-Manager:
import pyCloudCompare as cc
cli = cc.CloudCompareCLI()
with cli.new_command() as cmd:
cmd.silent() # Disable console
cmd.open("pointcloud.ply") # Read file
cmd.cloud_export_format(cc.CLOUD_EXPORT_FORMAT.ASCII, extension="xyz")
cmd.save_clouds("newPointcloud.xyz")
print(cmd)
Acknowledgements
The work in the scope of the CloudCompare CLI Python Wrapper in this repository is supported by the Institute of Geo-Engineering at Clausthal University of Technology.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pycloudcomparecli-0.3.2.tar.gz
.
File metadata
- Download URL: pycloudcomparecli-0.3.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0b925f3c79bd4721b1b20ee55d0cc5da7e86fecc318335f50d0913259834691f
|
|
MD5 |
bb5f3bce41add715a2cb71aa31a4a9f6
|
|
BLAKE2b-256 |
9da3e3b18234137d972739daaff24866f58ef83b0a4a021f6addc617ee796c3c
|
File details
Details for the file pyCloudCompareCLI-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: pyCloudCompareCLI-0.3.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
91374d2cf8025b12a9d4f6ae9fed3c9c46797110048a176b36da6c67e0bd1e05
|
|
MD5 |
9f921ad9c4e4c497a1b30bd43a4b0a68
|
|
BLAKE2b-256 |
ddf62e97a654af08b0391c33062db42917fc8377b7b3506fb47e52c9c348bc8e
|