Good Morning,
I currently have a .bin file which is comprised of 12 individual circular sections (.ply files) that when stitched together make up a section of a length of pipe. I am looking for the best and most efficient way to find the minimum and maximum internal diameter for each of the individual circular sections to then determine an average across this section (which is a meter long with all scans stitched together).
Any help would be greatly appreciated.
Thanks in advance for your help.
Min and Max Diameter
Re: Min and Max Diameter
You could maybe fit a circle on each section, the compute the distance of the points of each section to their respective circle entity (with 'Tools > Distances > Compute Cloud/Primitive dist.').
And then if you look at the resulting distances (the scalar field that should appear on the cloud), you'll be able to read the deviation from this average circle.
Sadly, I just realized that the 'Tools > Distances > Compute Cloud/Primitive dist.' tool compute unsigned distances... You would need signed distances to differentiate between the min and the max radii. If you think this could answer your need, it should be easy for me to add this option.
And then if you look at the resulting distances (the scalar field that should appear on the cloud), you'll be able to read the deviation from this average circle.
Sadly, I just realized that the 'Tools > Distances > Compute Cloud/Primitive dist.' tool compute unsigned distances... You would need signed distances to differentiate between the min and the max radii. If you think this could answer your need, it should be easy for me to add this option.
Daniel, CloudCompare admin
-
- Posts: 2
- Joined: Tue Feb 18, 2025 10:48 am
Re: Min and Max Diameter
Hi Daniel,
Thanks for your response. I have just responded to your email.
Kind Regards,
Matt
Thanks for your response. I have just responded to your email.
Kind Regards,
Matt
Re: Min and Max Diameter
Ok, so for the records, I've introduced a real 'circle' entity (previously the 'Fit > Circle' tool was only producing a polyline). And this circle entity can now be promoted to a cylinder. This allows to compute the (signed) distances between the points and the cylinder.
Daniel, CloudCompare admin
Re: Min and Max Diameter
Great feature .. I guess this is in the github repo .. so I would build latest code to try it ?daniel wrote: ↑Wed Feb 19, 2025 7:43 am Ok, so for the records, I've introduced a real 'circle' entity (previously the 'Fit > Circle' tool was only producing a polyline). And this circle entity can now be promoted to a cylinder. This allows to compute the (signed) distances between the points and the cylinder.
Is there a way to import primitive solids, such as cylinders / boxes / circles into CloudCompare .. or create them via scripting / python ?
.. or is a seperate .DXF or .obj the best approach for importing / saving pipes that one fits to the pointcloud ?
Re: Min and Max Diameter
It's available in the latest 2.14.alpha version.
And importing primitives has always been a challenge sadly... There's a STEP file importer now for quite some times, but it tessellates everything to triangles. I don't know if there's a way to keep some basic primitives 'as is'. Same for DXF.
Python would probably be the easiest option, assuming the authors of CloudCompy and/or the Python plugin can support that.
And importing primitives has always been a challenge sadly... There's a STEP file importer now for quite some times, but it tessellates everything to triangles. I don't know if there's a way to keep some basic primitives 'as is'. Same for DXF.
Python would probably be the easiest option, assuming the authors of CloudCompy and/or the Python plugin can support that.
Daniel, CloudCompare admin