I am using Autodesk Fusion 360 to model a 3D part (see figure below), which I can then export and save as either a .step, .iges, .sat or .smt file.
What I am trying to achieve is to convert this part into a 3D numpy array in Python. Every element of the array will be 0 or 1 to indicate if there is solid material in that position or no material at all (air).
For example, if my object has the dimensions of the figure, each element of an array of size 100x100x50 would represent a volume of 1 mm3 of the object. All the light blue little cubes will have a value of 1 to show that there is solid material at this position, while the red cube will have a value of 0 to indicate that this space does not consist of solid material.
Could this be done using FreeCAD APIs? Or is there any other way to import the .step/.iges/.sat/.smt file in Python and convert/parse it to create the required array?