check mesh isPLane (pca on meshobject)?

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
student007
Posts: 6
Joined: Mon May 09, 2022 12:17 pm

check mesh isPLane (pca on meshobject)?

Post by student007 »

Hello everyone,

I am trying to do a principal component analysis on a meshobject (or on its pointcloud).
Effectively I only need the eigenvalues to determine if a mesh is a plane or not.
I came across this post [1] (Mesh::Meshobject getEigenSystem()), but even after reviewing the sourcecode myself I did not find a way to get the eigenvalues.

if there is already a function that checks if a mesh object is a plane or not, i'd be happy to use that instead (would need a boolean).
Or if you have a completely different idea how to get the job done, let me now.

Any help would be grately appreciated,
thanks!

-----
[1] https://forum.freecadweb.org/viewtopic.php?t=67518
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: check mesh isPLane (pca on meshobject)?

Post by Kunda1 »

Perhaps x-post the link to this thread in that one so it will get someone's attention?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
student007
Posts: 6
Joined: Mon May 09, 2022 12:17 pm

Re: check mesh isPLane (pca on meshobject)?

Post by student007 »

Thanks for the suggestion!
I was able to use pcl's algorithm for pca, so now eveything is working just fine.

Have a good day!
Post Reply