Page 1 of 1

Command line mode -> 2.5D quadratic Fit

Posted: Wed Oct 23, 2019 5:15 pm
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

Re: Command line mode -> 2.5D quadratic Fit

Posted: Sat Oct 26, 2019 8:30 pm
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

Re: Command line mode -> 2.5D quadratic Fit

Posted: Sat Nov 09, 2019 4:39 am
by Giraldine_MED
I missed your answer..
Thanks, I will try it.

Re: Command line mode -> 2.5D quadratic Fit

Posted: Tue Apr 20, 2021 12:55 pm
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.

Re: Command line mode -> 2.5D quadratic Fit

Posted: Wed Apr 21, 2021 12:15 pm
by daniel
I don't think it has been implemented yet.

Re: Command line mode -> 2.5D quadratic Fit

Posted: Wed Apr 21, 2021 2:16 pm
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 !!

Re: Command line mode -> 2.5D quadratic Fit

Posted: Wed Apr 21, 2021 5:39 pm
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