Closed polzaco closed 8 months ago
To show a scalar field by default you have to call point_cloud.setCurrentDisplayedScalarField(idx)
And to CC to show nice colors you have to call computeMinAndMax
on the scalar field
point_cloud.getScalarField(point_cloud.getScalarFieldIndexByName("classification")).computeMinAndMax()
Hi everyone!
We are using pycc for point clouds segmentation. When we store the point cloud in the database of cc with the following code, the points results are wrong :
CREATE THE RESULTING POINT CLOUD
Firstly, I would prefer open it with the Scalar Field view at the beginning, because it appears with None. (first picture)
Then, after the scalar field activation , the point cloud only open the first class color, the rest dont open. (second picture)
It should appear at the first time like that. I did with "Split cloud (integer values)" tool and then merging all of them (thrid picture)
Is possible to do that? Thanks in advance.