Skip to content

Commit 10fcdc3

Browse files
authored
Merge pull request #17 from dancergraham/feature/color
docs: Now in technicolor! πŸ³οΈβ€πŸŒˆ
2 parents a9c0729 + 6119069 commit 10fcdc3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@ This python library wraps the [rust e57 library](https://github.com/cry-inc/e57)
2020

2121
```python
2222
>>> import e57
23-
>>> e57.read_points(r"pointcloud.e57")
23+
>>> pc = e57.read_points(r"pointcloud.e57")
24+
>>> pc.points
2425
array([[-23.25304444, -28.17607415, -13.44830654],
2526
[-23.28290139, -28.02118905, -13.44237764],
2627
[-23.26799723, -27.9039115 , -13.43430738],
2728
...,
2829
[ 23.2458152 , 25.4866642 , 12.45043932],
2930
[ 23.22830673, 25.58055374, 12.49285875],
3031
[ 23.25270363, 25.45909652, 12.54284554]])
32+
>>> pc.color
33+
array(([0.3019608 , 0.3529412 , 0.23137255],
34+
[0.21176471, 0.26666668, 0.12941177],
35+
[0.21960784, 0.27058825, 0.13333334],
36+
...,
37+
[0.5803922 , 0.58431375, 0.49019608],
38+
[0.41568628, 0.43529412, 0.33333334],
39+
[0.21568628, 0.25882354, 0.1254902 ]], dtype=float32)
3140
```
3241

3342
We need a tutorial - could you write one based on our tests?

0 commit comments

Comments
Β (0)