Command line mode -> 2.5D quadratic Fit

Feel free to ask any question here
Post Reply
Giraldine_MED
Posts: 2
Joined: Wed Oct 23, 2019 3:41 pm

Command line mode -> 2.5D quadratic Fit

Post by Giraldine_MED »

Hello everyone!
I discovered CloudCompared a few months ago and it really helps me in my projects so far.
I would like to automatize the analysis that I do on point clouds, but for now, the 2.5D quadratic functionality (https://www.cloudcompare.org/doc/wiki/i ... it_Quadric) is not implemented to use in command line mode.

I found the ccQuadric Class definition (https://github.com/CloudCompare/CloudCo ... uadric.cpp) and I supposed that could be implemented in the CommandLine command procedure as it is for the ccPlane Class, but I have no idea how to do it myself..

Is someone has already done it?

Thanks for your collaboration!
Marie-Eve
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode -> 2.5D quadratic Fit

Post by daniel »

Oups, I missed your post...

I believe no one has implemented it yet, but it would be quite easy to implement the Quadric fit via the command line. You could simply copy the behavior of the 'Fit plane' option (-BEST_FIT_PLANE):
https://github.com/CloudCompare/CloudCo ... .cpp#L1913

And you can also mimic the way the 'Quadric fit' method is called in the MainWindow class:
https://github.com/CloudCompare/CloudCo ... .cpp#L4650
Daniel, CloudCompare admin
Giraldine_MED
Posts: 2
Joined: Wed Oct 23, 2019 3:41 pm

Re: Command line mode -> 2.5D quadratic Fit

Post by Giraldine_MED »

I missed your answer..
Thanks, I will try it.
Milly
Posts: 2
Joined: Tue Apr 20, 2021 12:48 pm

Re: Command line mode -> 2.5D quadratic Fit

Post by Milly »

Hey all,
I need the 2.5D quadratic Fit tool too. I dont find it in commandline Readme.
My question is if the tool has been implemented into the commandline tool or if this has not been done yet.
Thanks for helping me out.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode -> 2.5D quadratic Fit

Post by daniel »

I don't think it has been implemented yet.
Daniel, CloudCompare admin
Milly
Posts: 2
Joined: Tue Apr 20, 2021 12:48 pm

Re: Command line mode -> 2.5D quadratic Fit

Post by Milly »

Okay Thanks for yor fast answer
I will implement it. How can I send you my Solution?
And Thanks for the entire Projekt !!
WargodHernandez
Posts: 187
Joined: Tue Mar 05, 2019 3:59 pm

Re: Command line mode -> 2.5D quadratic Fit

Post by WargodHernandez »

Milly wrote: Wed Apr 21, 2021 2:16 pm Okay Thanks for yor fast answer
I will implement it. How can I send you my Solution?
And Thanks for the entire Projekt !!
Easiest is submitting a pull request on Git https://github.com/CloudCompare/CloudCompare/pulls
Post Reply