CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
265 stars 38 forks source link

Python scripts for "sampling points on a mesh" and "aligning two entities" #153

Open mm-rahman opened 5 months ago

mm-rahman commented 5 months ago

Hi,

I've been working on a Python script to perform "Sample point on a mesh" operations in CloudCompare to convert a STL format to BIN format, which I normally can do using the GUI. This script works well when I run it through the command line, using the Open3D and Trimesh libraries. However, when I try to integrate this script into CloudCompare's Python script register, it fails, likely because CloudCompare does not support Open3D and Trimesh.

I noticed that other Python plugins from the examples on CloudCompare's Python plugin GitHub page work correctly when uploaded to the Python script register. This leads me to wonder if there are publicly available scripts for similar functionalities, specifically for "Sampling points on a mesh" and "Aligning two entities." Please let me know if such Python scripts are available, or if it's permissible for me to access and use these Python scripts for my purposes.

Thank you!

Best, Mustafi

prascle commented 5 months ago

Hi, If you're working with Thomas Montaigu's CloudCompare's Python plugin, you should probably post this problem here.

CloudComPy and CloudCompare's Python plugin were developed independently and do not share the same Python interface.

CloudComPy is not integrated into the CloudCompare GUI. You can consult the CloudComPy documentation and use cases to check what CloudComPy offers (sampling points on a mesh and aligning two entities are covered). If you wish to test it, you should follow the [installation instructions] (https://github.com/CloudCompare/CloudComPy#cloudcompy-availables-binaries).

Best, Paul

mm-rahman commented 5 months ago

Hi, If you're working with Thomas Montaigu's CloudCompare's Python plugin, you should probably post this problem here.

CloudComPy and CloudCompare's Python plugin were developed independently and do not share the same Python interface.

CloudComPy is not integrated into the CloudCompare GUI. You can consult the CloudComPy documentation and use cases to check what CloudComPy offers (sampling points on a mesh and aligning two entities are covered). If you wish to test it, you should follow the [installation instructions] (https://github.com/CloudCompare/CloudComPy#cloudcompy-availables-binaries).

Best, Paul

Hi Paul,

Thanks for the clarification! Your detailed explanation helps a lot. I'll check out the CloudComPy documentation and follow the installation instructions.

Best, Mustafi