Command line SET_ACTIVE_SF for DIP SF not working

Feel free to ask any question here
Post Reply
nedkelly
Posts: 2
Joined: Sat Jan 22, 2022 1:42 am

Command line SET_ACTIVE_SF for DIP SF not working

Post 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!
Attachments
Raster created using commandline (incorrect)
Raster created using commandline (incorrect)
Dip using commandline.jpg (287.54 KiB) Viewed 966 times
Raster created using application
Raster created using application
Dip using application.jpg (218.22 KiB) Viewed 966 times
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line SET_ACTIVE_SF for DIP SF not working

Post 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)
Daniel, CloudCompare admin
nedkelly
Posts: 2
Joined: Sat Jan 22, 2022 1:42 am

Re: Command line SET_ACTIVE_SF for DIP SF not working

Post 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.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line SET_ACTIVE_SF for DIP SF not working

Post 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 ;)
Daniel, CloudCompare admin
Post Reply