Using CloudCompare with Visual Studio

For any remark, link or suggestion about CloudCompare and more genrally the 3D
Post Reply
henki
Posts: 1
Joined: Thu Sep 23, 2021 1:56 pm

Using CloudCompare with Visual Studio

Post by henki »

Hi.
I find CloudCompare very usefull.
I am beginner.
I wonder if I can integrate Visual Studio with CloudCompare.
I normally use API's to communicate with Windows programs so that I do automation.

Is there a way to access CloudCompare from VS?
Is it the Command Line approach? In that case how does that work with VS?

Thanks,
Henrik
daniel
Site Admin
Posts: 8180
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Using CloudCompare with Visual Studio

Post by daniel »

So yes, there's a command line mode: https://www.cloudcompare.org/doc/wiki/i ... _line_mode

Otherwise some parts of CloudCompare are accessible as C++ libraries (CC_CORE_LIB with most of the algorithms - LGPL license - and the the qCC_GL, qCC_IO and qCC_DB respectively for the display, file input/output and entities management - they are all under the GPL license).
Daniel, CloudCompare admin
Zizelind
Posts: 5
Joined: Wed Apr 02, 2025 8:04 am

Re: Using CloudCompare with Visual Studio

Post by Zizelind »

Welcome to the club! CloudCompare is a beast once you get the hang of it. If you’re looking to automate things from Visual Studio, the Command Line Interface (CLI) is definitely the most straightforward path. I’ve done this by using System.Diagnostics.Process in C# (or CreateProcess in C++) to call the CloudCompare executable with specific arguments. You basically pass your commands—like -O to open a file or -S_TRIM for cropping—as a string of arguments. It’s super reliable for batch processing, though just a heads-up: it runs in a separate process, so you won't get a "live" link inside your VS GUI. If you need something deeper, you’d have to look into writing a custom plugin using their official SDK, but for 90% of automation tasks, the CLI approach via VS works like a charm.
Post Reply