fitting a plane to a mesh surface

fitting a plane to a mesh surface

kadirJZKV2
Explorer Explorer
2,354 Views
4 Replies
Message 1 of 5

fitting a plane to a mesh surface

kadirJZKV2
Explorer
Explorer

Hi, I want to create three planes that best fit on the mesh surface given below e.g. one plane for each side of the surface (top, left, front). Then I like to use those three planes to split a box to find the box that best fits to the mesh surface given below.

 

Could anyone explain how to fit a plane to mesh surface?

 

Thanks,

Kadir

 

plane-fitting.png

2,355 Views
4 Replies
Replies (4)
Message 2 of 5

alan.jonesXHXUF
Advocate
Advocate

I use 3 point plane and pick 3 points in the mesh that look like they'll best approximate the surface

Message 3 of 5

hamid.sh.
Advisor
Advisor

I am not sure what I am suggesting is the best solution but give it a try if no better option is proposed here.

 

1. Go to Direct Editing mode

2. Create Face Group (NOT Generate...) > approximately select one side using mesh selection tools.

3. Repeat above for two other sides

4. Finish Direct Edit

5. Separate mesh body with All Face Groups type

6. Hide unwanted bodies

7. For each of separated sides repeatedly apply Remesh and/or Reduce with lowest fidelity settings. With a bit of luck you will end up with a planar surface with only few mesh vertices. If some vertices remained out of plane you can go to Direct edit and delete them (but you probably don't need with the mesh I see in your picture). This step acts as an averaging. Though not sure how close is this to best fitting mathematically. 

8. Convert each mesh body to BRep. For this purpose faceted conversion is enough. You can use one of the faceted faces for defining a plane.

 

I've made a screencast using a mesh I generated to compare the plane with the original body's surface. In my screencast I went a bit further and converted it prismatically which gave a me a completely flat surface.

Hamid
Message 4 of 5

kadirJZKV2
Explorer
Explorer

Thanks Hamid. I specifically need a function that can best-fit a plane on a point cloud or mesh vertices. Looks like this is not a default functionality part of the Fusion 360.

 

Some people developed such add ons for blender.

https://blog.michelanders.nl/2017/12/planefit-blender-add-on-to-fit-plane.html

 

kadirJZKV2_0-1648597310967.png

 

Do you know if there is an add on for fusion 360 that does sth similar?

 

Thanks,

Kadir

Message 5 of 5

hamid.sh.
Advisor
Advisor

@kadirJZKV2 wrote:

... I specifically need a function that can best-fit a plane on a point cloud or mesh vertices...


I had understood your requirement and Remesh/Reduce that I suggested are some kind of curve fitting.

 


Some people developed such add ons for blender.

https://blog.michelanders.nl/2017/12/planefit-blender-add-on-to-fit-plane.html

...


So it seems you already have your solution! Instead of inserting the original mesh first do the fitting in Blender and import that into Fusion. I am not aware of similar add-in for Fusion.

Hamid