As part of a project, OBJ or STL files are to be processed so that they can be used as inputs to a CNN with a conv_3d input layer developed with Tensorflow. R is primarily used but Python can also be an option.
The core question is: how can a 4-dimensional array with shape (x, y, z, channel) be generated from an OBJ or STL file?
As always, thanks in advance for your help.