Crop2D command line using existing polyline (imported shapefile)
Posted: Tue May 29, 2018 1:57 pm
Hello,
I would like to Crop2D loaded mesh by existing shapefile (imported earlier), using command line mode. Is it possible to choose existing polyline instead of number and coordinates of vertices?
Update: I have vertices coordinates from shapefile, but when i try to launch this function this error appears:
"No point cloud availabe...". Does it mean that this function works only on pointclouds? :( i cropped meshes in this way using GUI version of CC.
Best regards,
Adam
I would like to Crop2D loaded mesh by existing shapefile (imported earlier), using command line mode. Is it possible to choose existing polyline instead of number and coordinates of vertices?
Code: Select all
import os, subprocess
CCPath = r"C:\Program Files\CloudCompare"
filePath = r"E:\AS\Agi_skrypt\mesh_cc.ply"
shpPath = r"E:\AS\Agi_skrypt\obszar_cc.shp"
os.chdir(CCPath)
openFile=os.system("CloudCompare -AUTO_SAVE OFF -O " + filePath " + "-CROP2D Z " + shpPath)
Update: I have vertices coordinates from shapefile, but when i try to launch this function this error appears:
"No point cloud availabe...". Does it mean that this function works only on pointclouds? :( i cropped meshes in this way using GUI version of CC.
Best regards,
Adam