isl-org / isl-org/Open3D

Default Rainbow Colors Found Using draw_geometries

Open
#3,761 2 comments 0 reactions 1 assignee Claimed by @errissa View on GitHub
legacy (Open3D 0.x API) visualization
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

**Describe the bug**
Although I used pcd.colors to change to the colour I preferred, the built in function draw_geometries doesn't seem to preserve the defined colors.

**To Reproduce**

import numpy as np
import open3d as o3d
from sklearn.cluster import KMeans

**Expected behavior**
specified colour should be pained rather than seeing rainbow

**Screenshots**
after modifying pcd.colors only:
Screenshot 2021-07-19 at 4 04 01 PM

after modifying pcd.points and pcd.colors:
Screenshot 2021-07-19 at 4 00 08 PM

**Environment (please complete the following information):**

- Operating system: Mac Big Sur 11.4
Using python 3.8.10 and 0.13.0 open3d
- Is this remote workstation?
no
- How did you install Open3D?
pip virtual env

**Additional context**
I used Kmeans to cluster points first and would like to filter out some numpy points by specifying coordinates. It is surprised that print(np.asarray(pcd.colors)) gives exactly same output before and after the line--o3d.visualization.draw_geometries([pcd]).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.