Extract single contour through CC command line

Any question about the main GUI application (frontend)
Post Reply
husnain
Posts: 3
Joined: Tue Apr 26, 2022 7:43 am

Extract single contour through CC command line

Post by husnain »

I want to extract a single contour from the point cloud using the CC command line. I have done it through GUI and that contour fulfills my requirements. Is it possible to get a single contour from the CC command line?
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extract single contour through CC command line

Post by daniel »

With which tool did you extract the contour? The 'Cross section' tool, or the 'Section extraction' one?
Daniel, CloudCompare admin
husnain
Posts: 3
Joined: Tue Apr 26, 2022 7:43 am

Re: Extract single contour through CC command line

Post by husnain »

Thanks for your response. I have extracted the contour using the 'Cross Section' tool. I want the same single contour from the CC command line.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extract single contour through CC command line

Post by daniel »

I guess you have to follow the documentation of the -CROSS_SECTION option (https://www.cloudcompare.org/doc/wiki/i ... _line_mode). And in the xml parameters file, just remove the <RepeatDim><RepeatDim/> and <RepeatGap></RepeatGap> blocks.
Daniel, CloudCompare admin
husnain
Posts: 3
Joined: Tue Apr 26, 2022 7:43 am

Re: Extract single contour through CC command line

Post by husnain »

After removing <RepeatDim><RepeatDim/> and <RepeatGap></RepeatGap> blocks. CC gave an error of " Some mandatory elements are missing in the XML file "
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extract single contour through CC command line

Post by daniel »

Ah! Too bad...
Daniel, CloudCompare admin
Post Reply