Skip to main content

CloudCompare bin writer

Writer / Reader for the CloudCompare BIN Format

Installation

pip install ccwriter

Example

import numpy as np

from ccwriter import CCReader, CCWriter

amount = 10_000

cloud = np.random.uniform(-100, 100, (amount, 3))
color = np.random.uniform(-100, 100, (amount, 3))
normal = np.random.uniform(-100, 100, (amount, 3))
scaler = np.random.uniform(-100, 100, amount)

cloud_scaler = np.random.uniform(-100, 100, (amount, 4))

with CCWriter("cloud.bin") as cc:
    cc.add_cloud(cloud, name="cloud")
    cc.add_cloud(cloud, name="cloud & color", color=color)
    cc.add_cloud(cloud, name="cloud & color & normal", color=color, normal=normal)
    cc.add_cloud(cloud, name="cloud & color & normal & scaler", color=color, normal=normal, scalar=scaler)

    cc.add_cloud(cloud_scaler, name="cloud_scaler & scaler_index", scalar=3)


reader = CCReader("cloud.bin")

print(reader[0].dtype)
# (10000,) [('x', '<f4'), ('y', '<f4'), ('z', '<f4')]
print(reader["cloud"].dtype)
# (10000,) [('x', '<f4'), ('y', '<f4'), ('z', '<f4')]
print(reader.keys())
# dict_keys([0, 'cloud', 1, 'cloud & color', 2, 'cloud & color & normal', 3, 'cloud & color & normal & scaler', 4, 'cloud_scaler & scaler_index'])

Metadata

Release files for ccwriter 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccwriter 0.2.3
File Size Uploaded Provenance Actions
ccwriter-0.2.3.tar.gz 5.2 kB Without provenance Details for ccwriter-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ccwriter 0.2.3
File Interpreter ABI Platform Actions
ccwriter-0.2.3-py3-none-any.whl Python 3 none any Details for ccwriter-0.2.3-py3-none-any.whl

Total release size: 9.6 kB

Release files / ccwriter-0.2.3.tar.gz

Download URL ccwriter-0.2.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41f2f65b24c3d629ebed51144fe65be2c3950255a36ac451702b40627f3c8b1b
BLAKE2b-256 checksum
How to use checksums
f7022d442474597610aff7ae0c4915c5d8bceee8f008cc0bad5d453a437e5c1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / ccwriter-0.2.3-py3-none-any.whl

Download URL ccwriter-0.2.3-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15a16ec6a36fc6c7837dee122f2f090365ff12500f26139790f5ab99dcd849ec
BLAKE2b-256 checksum
How to use checksums
ad27f62dd0ed852cc70e2fcdd153ab1d53c2cfcb74eb8ce276a7c4f8e25298eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.4

Security for ccwriter 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page