I need to generate python code which can import STL files and highlight/ tell the number of round surfaces in STL files.
So, far I have tried to use “Blender” and “OpenSCAD” but couldn’t succeed.
do you have any idea regarding this problem? Any kind of help would be appreciated.
yes, but I need to find circles on stl. for e.g if there is a cylinder, then I need to find that there are two surfaces which are in circle. Likewise, I need to create python code which could tell me the total number of circles in particular model.
or can you guide me how can i generate python code from stl file. may be once I know the coordinates of this triangular elements, I can generate loop which can search equal distance from the face center. So if the distance is same, then I can allocate this as circle, if not then it would be thrown in non circle section.
Along the same lines - I might just extract the mesh edges by scripting
_-ExtractMeshEdges ExtractMeshEdgesBy=BreakAngle
and some range of angles between 45° and 135°, then try to find closed planar curves, get their center, and then see if all the vertices are more or less the same distance from the center…
I tried to slice the surface and create the center of the face. But this procedure would be the manual, each time I have to do it manually which make no sense. Rather than I need to find some general python code which can directly lead me to the center of each surface step by step, by this I can check the distance from the center point,