Getting material thickness through a vector

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
michav
Posts: 52
Joined: Mon Sep 09, 2019 7:34 am

Getting material thickness through a vector

Post by michav »

Hey freecad
Lets say i have a randomly oriented body and a vector going through the body at an angle.
Is it possible to get the thickness of the material through the vector?
Is it possible to get the thickness if it was an stl?
Thanks
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: Getting material thickness through a vector

Post by mario52 »

hi

for intersection line to shape: How to intersect a line with a part

for distance between 2 vectors : Vector_API

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
suzanne.soy
Posts: 54
Joined: Sat Dec 19, 2020 11:55 pm

Re: Getting material thickness through a vector

Post by suzanne.soy »

I think the Sheet Metal workbench does this internally, if you try to unfold an arbitrary solid (instead of a thin folded sheet) it will complain that it couldn't detect the thickness of the solid, and leaves in the scene a vector going (partly) through the solid to show where it failed.
:?: Please mark your posts as [solved] :!:
:idea: If the answer you got is a good fit for the wiki, you can edit it!
FreeCAD modelling & coding workbenches+macros: twitch GitHub
Post Reply