Export normals from SolidWorks
It is possible to access to the tesselate method in the SolidWorks API. Indeed each Part has a list of Bodies:
- IPartDoc inherits IModelDoc
- IPartDoc.GetBodies2 provides a list of Body2 objects that have the tesselate method.
Example: http://help.solidworks.com/2017/english/api/sldworksapi/Tessellate_a_Body_Example_CSharp.htm
The macro written in Visual Basic tesselates bodies and comes from: https://sites.google.com/site/karpena/solidworks
See SWtoOBJ2.bas.
As STL files do not contain vertex normals, a new file format must be provided.