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.
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
pyCloudCompareCLI-0.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for pyCloudCompareCLI-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5eaaa4d1a3d2a5b51f939b8a31d05e86a4fd224d2043453726327485f1e3db3 |
|
MD5 | f4c22139a1096784cfb39b7e87de1ce1 |
|
BLAKE2b-256 | 3957de7411600e8525168d4537dd369cb0a0a649e73b2c2e6bd1762b789815a1 |