Search found 29 matches

by kasper
Wed Jul 21, 2021 9:23 am
Forum: Questions
Topic: ccPointCloud addPoint
Replies: 7
Views: 8515

Re: ccPointCloud addPoint

Actually, It doesn't take that much time. We just want to make it faster. we're in release mode. Another aimuler question, about "getPoint(index)" for(int i=0;i<size;i++) { CCVector3 p = cloud->getPoint(i); } it seems cost the same time whatever we use "#pragma omp parallel for" ...
by kasper
Wed Jul 14, 2021 6:19 pm
Forum: Questions
Topic: ccPointCloud addPoint
Replies: 7
Views: 8515

Re: ccPointCloud addPoint

So there's no other way to improve performance of this issue?

maybe replace "addPoint" with other function or addPoint with Index ?
by kasper
Tue Jul 13, 2021 9:43 am
Forum: Questions
Topic: ccPointCloud addPoint
Replies: 7
Views: 8515

Re: ccPointCloud addPoint

is addPoint sequential?
by kasper
Tue Jul 13, 2021 9:38 am
Forum: Questions
Topic: ccPointCloud addPoint
Replies: 7
Views: 8515

ccPointCloud addPoint

ccPointCloud *cloud = new ccPointCloud; cloud->reserve(points.size()); for(int i=0;i<points.size();i++) { cloud->addPoint(points[i]); } There is a points array, and I want to convert it into ccPointCloud type, andt it costs time. I want to use parallel for to improve its efficacy. But when I use #o...
by kasper
Tue Apr 27, 2021 9:59 am
Forum: Questions
Topic: setPointColor failed
Replies: 4
Views: 3328

Re: setPointColor failed

i know the problem, Thanks.
by kasper
Tue Apr 27, 2021 9:34 am
Forum: Questions
Topic: setPointColor failed
Replies: 4
Views: 3328

Re: setPointColor failed

Hi, Daniel. Even I remove "enableScalarField", it's not working. I save the result data to bin file and open it in Cloudcompare. The pointcloud do not have any color and even have no "Color" selection. Is there any example for adding pointcolor? I've confused in this issue for a ...
by kasper
Tue Apr 27, 2021 4:29 am
Forum: Questions
Topic: setPointColor failed
Replies: 4
Views: 3328

setPointColor failed

I want to set point cloud but it always failed. This is my code, is it anything wrong? My cloudcompare version is 2.9.1 If you can, please give me a resolution for it. Thanks. ccPointCloud *cc_cloud = new ccPointCloud; cc_cloud->reserve(100); for (int i = 0; i < 100; i++) { CCvecotr3 p; p.x = i; p.y...
by kasper
Tue Oct 20, 2020 9:48 pm
Forum: Questions
Topic: Load file crash
Replies: 4
Views: 3908

Re: Load file crash

great! thanks Daniel.
by kasper
Mon Oct 19, 2020 9:02 am
Forum: Questions
Topic: Load file crash
Replies: 4
Views: 3908

Re: Load file crash

Yes, coding in Ubuntu 18.04.

"Do you have a valid qApp?" <- sorry, what's that mean?


If i create a txt file and modify the filename extension from txt to stl.
And I load it by the code

Code: Select all

 bin.loadFile(filename, *obj, lp);
it crash.
by kasper
Fri Oct 16, 2020 2:51 am
Forum: Questions
Topic: Load file crash
Replies: 4
Views: 3908

Load file crash

BinFilter bin; BinFilter::LoadParameters lp; lp.alwaysDisplayLoadDialog = false; CC_FILE_ERROR error = bin.loadFile(filename, *obj, lp); if I Input a file incomplete file or something that cloudcompare cannot read, it won't return an errorcode. the result I got is the program crash. How to fix this...