Search found 10 matches

by alvarofergar
Thu Feb 13, 2020 11:33 am
Forum: CCLib
Topic: Using the GeometricalAnalysisTools
Replies: 5
Views: 49512

Re: Using the GeometricalAnalysisTools

It wasn't a radius problem. I was using a value very close to the default value in the program's dialog. The problem with the octree levels was due to a bug in my reading of the cloud.

Sorry about that!
by alvarofergar
Wed Feb 12, 2020 8:38 am
Forum: CCLib
Topic: Using the GeometricalAnalysisTools
Replies: 5
Views: 49512

Re: Using the GeometricalAnalysisTools

Sorry, I missed the build line I copied my code into the previous post.

Code: Select all

dgm_oct.build(&pDlg);
I do it right before the geometric analysis but it doesn't seem to have any effect.
by alvarofergar
Tue Feb 11, 2020 12:19 pm
Forum: CCLib
Topic: Using the GeometricalAnalysisTools
Replies: 5
Views: 49512

Re: Using the GeometricalAnalysisTools

Yes, I was running in Debug and it looks like I wasn't being patient enough :) Now it works but, even in Release , I think its slower than it should be. Calculating the same feature in the CloudCompare program is faster and the 'Octree level', 'Cells' and 'Max population' values are much lower. With...
by alvarofergar
Mon Feb 10, 2020 2:45 pm
Forum: CCLib
Topic: Using the GeometricalAnalysisTools
Replies: 5
Views: 49512

Using the GeometricalAnalysisTools

Hi everyone, I'm having trouble using the GeometricalAnalysisTools inside my own class. In the code below, mCloud is a succesfully read ccPointCloud, but when the program enters the ComputeCharactersitic function it never leaves it. void CCGeometricAnalizer::compute() { //create SF int idx = mCloud....
by alvarofergar
Sun Jul 14, 2019 9:50 pm
Forum: CCLib
Topic: Adding labels
Replies: 6
Views: 42470

Re: Adding labels

Hello,

That was it! At one point I started passing the position as an absolute value and not as a relative one.

Thanks for all the answers and thanks also for this great software and code!!

Have a nice week!
by alvarofergar
Fri Jul 12, 2019 8:40 am
Forum: CCLib
Topic: Adding labels
Replies: 6
Views: 42470

Re: Adding labels

The setDisplayedIn2D(true) method didn't make any change.

With a derived class to access the protected members, I have also tried setting the m_showFullBody boolean to true and using the drawMeOnly2D() method, but I always get the same result.
by alvarofergar
Wed Jul 10, 2019 8:01 am
Forum: CCLib
Topic: Adding labels
Replies: 6
Views: 42470

Re: Adding labels

Hello Daniel! Thanks for your reply. I'm not using my algorithms directly on the cloud so I think I don't know the point index, just the position. However, I have made a workaround where we have two clouds: one with the points we analyze and one auxiliary just to display labels. My function look lik...
by alvarofergar
Tue Jul 09, 2019 8:47 am
Forum: CCLib
Topic: Adding labels
Replies: 6
Views: 42470

Adding labels

Hi everyone! I want to use CCLib to display labels at certain points on my cloud. I want to achieve something similar to what happens when you use the Point picking tool. dudaforo.png As far as I know, the functions related to display labels are connected to the point picking process but I want to e...
by alvarofergar
Wed Mar 13, 2019 11:19 pm
Forum: CCLib
Topic: Problem with empty ccPointCloud
Replies: 3
Views: 26352

Re: Problem with empty ccPointCloud

comp_example is a ccHObject instance (a 'group' object). You cannot convert it to a point cloud directly. You have to look for its children (normally there should only be one if you load an ASCII file) and this child should be a point cloud. Pay attention that ccHObjectCaster::ToPointCloud may retu...
by alvarofergar
Wed Mar 13, 2019 1:46 pm
Forum: CCLib
Topic: Problem with empty ccPointCloud
Replies: 3
Views: 26352

Problem with empty ccPointCloud

Hello everyone! I'm trying to implement the "Compute cloud/cloud distance" in a Qt project. I have been able to run the ccViewer in Qt. and, also, I'm capable of visualize clouds dropped on the viewer window or from a file read in the code. My main problem is that, when I compute the dista...