Page 1 of 1

Command line SET_ACTIVE_SF for DIP SF not working

Posted: Sat Jan 22, 2022 2:11 am
by nedkelly
Good afternoon,

I am experimenting with the CloudCompare command line and having some success however my current task is converting a .csv mesh (x, y and z coordinates) to a raster file displaying slope as the scalar field.

When performing the process within the CloudCompare application I have no issues displaying the Dip (degrees) scalar field, converting to RGB and then saving this as a raster image.

When processing via command line I have used -SET_ACTIVE_SF for both 0 and 1 and the output is always Dip Direction (degrees), for some reason it doesn't display Dip (degrees).

I am using V2.11.3, I updated to the new V2.12beta however loading the mesh was extremely slow so i've reverted back to V2.11.3.

Here is the command line i'm using.

CloudCompare -SILENT -O -GLOBAL_SHIFT AUTO filePath -REMOVE_ALL_SFS -OCTREE_NORMALS AUTO -NORMALS_TO_DIP -SET_ACTIVE_SF 0 -FILTER_SF 1 9 -SF_CONVERT_TO_RGB TRUE -RASTERIZE -GRID_STEP 0.35 -SF_PROJ AVE -PROJ MAX -OUTPUT_RASTER_RGB

Thanks for your help!

Re: Command line SET_ACTIVE_SF for DIP SF not working

Posted: Sat Jan 22, 2022 8:09 am
by daniel
Interesting.

I believe it's simply because the 'SET_ACTIVE_SF' doesn't apply to the rasterize tool. In this tool, you have to manually select the 'active layer'. And that's not an option of the command line interface yet...

For the slow loading of a CSV file, that's definitely an issue we should look at. Can you maybe share the file with me? (daniel.girardeau [at] gmail.com)

Re: Command line SET_ACTIVE_SF for DIP SF not working

Posted: Sun Jan 23, 2022 12:42 am
by nedkelly
Hi Daniel,

Thanks for your quick response!

Would it be possible to add this to the command line interface "to do" list please? I am guessing this list is huge...

Is there a way to convert the normals to dip without dip direction? Only converting dip?

One other thing, is there way to choose the name of the rasterized output file? I've looked through the list and i haven't found a command for this one.

I've sent you an email re the CSV file.

Re: Command line SET_ACTIVE_SF for DIP SF not working

Posted: Thu Jan 27, 2022 11:47 am
by daniel
Sorry for the late answer:
1) Yes, we can definitely add this to the TODO list, but indeed, it's huge!

2) Nope, we always generate the 2 scalar fields (but it should always be in the same order)

3) And for the rasterize output file, I guess it's the same, a new option would be required... (I added this to the TODO list as well ;)