From 6119069ac3bc836ce212dcf6ef889e5ad5a25c8f Mon Sep 17 00:00:00 2001 From: dancergraham Date: Tue, 9 Jan 2024 21:47:52 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20Now=20in=20technicolor!=20=F0=9F=8F=B3?= =?UTF-8?q?=EF=B8=8F=E2=80=8D=F0=9F=8C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b0dfb6..255996c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ This python library wraps the [rust e57 library](https://github.com/cry-inc/e57) ```python >>> import e57 ->>> e57.read_points(r"pointcloud.e57") +>>> pc = e57.read_points(r"pointcloud.e57") +>>> pc.points array([[-23.25304444, -28.17607415, -13.44830654], [-23.28290139, -28.02118905, -13.44237764], [-23.26799723, -27.9039115 , -13.43430738], @@ -28,6 +29,14 @@ array([[-23.25304444, -28.17607415, -13.44830654], [ 23.2458152 , 25.4866642 , 12.45043932], [ 23.22830673, 25.58055374, 12.49285875], [ 23.25270363, 25.45909652, 12.54284554]]) +>>> pc.color +array(([0.3019608 , 0.3529412 , 0.23137255], + [0.21176471, 0.26666668, 0.12941177], + [0.21960784, 0.27058825, 0.13333334], + ..., + [0.5803922 , 0.58431375, 0.49019608], + [0.41568628, 0.43529412, 0.33333334], + [0.21568628, 0.25882354, 0.1254902 ]], dtype=float32) ``` We need a tutorial - could you write one based on our tests?