Hello all,

 

I am attempting to export a boxm2 model to PLY using boxm2ExportOrientedPointCloudProcess.  I am using an adapted python script found at the voxels-at-lems repository.

 

The main block I am using is:

 

print("Exporting to point cloud")

boxm2_batch.init_process("boxm2ExportOrientedPointCloudProcess");

boxm2_batch.set_input_from_db(0,scene);

boxm2_batch.set_input_from_db(1,cache);

boxm2_batch.set_input_string(2, boxm2_dir + "/raw_scene.xyz")

boxm2_batch.set_input_bool(3,1);

boxm2_batch.set_input_float(4,0.09); #visibility threshold

boxm2_batch.set_input_float(5,0.09); #normal threshold ??

boxm2_batch.set_input_float(6,0.08); #probability threshold

 

 

where ‘scene’ and ‘cache’ are generated as:

 

print("Loading a Scene");

boxm2_batch.init_process("boxm2LoadSceneProcess");

boxm2_batch.set_input_string(0, boxm2_dir + "/scene.xml");

boxm2_batch.run_process();

(scene_id, scene_type) = boxm2_batch.commit_output(0);

scene = dbvalue(scene_id, scene_type);

 

print("Create Main Cache");

boxm2_batch.init_process("boxm2CreateCacheProcess");

boxm2_batch.set_input_from_db(0,scene);

boxm2_batch.set_input_string(1,"lru");

boxm2_batch.run_process();

(id,type) = boxm2_batch.commit_output(0);

cache = dbvalue(id, type);

 

 

It appear, in my python window, that the inputs are being read correctly, but no file is created after the process finishes? Does anyone have experience using this process to generate a ply file?

 

 

Thank you,

 

Joe McGlinchy