AverageNormalsAbstract: Averages normals for all points on the selected mesh.Description: This is a tool to average normals for all points on any selected polygonal mesh objects. This is done by adding a new samples cluster that stores the new normals instead of just modifying the Geometry Approximation property. Working Scenarios: This tool was designed to work along side with custom exporter which requires an average samples cluster on any polygonal mesh objects. I don’t recommend you to use it if you’re planning to just average normal in XSI only because it can cause confusion between the result and the Geometry Approximation property. User Usage: Select all objects you want to average their normals and just run the script. Developer Usage: You can call this tool from any other scripts using the following function call: AverageNormals( InObjectsCollection ) Where InObjectsCollection is an XSI Collection Objects that contain all polygonal mesh you want to average their normals. This tool returns true if it succeeds and false if it failed for any reason. Nature: Script Applies To: XSI 3.5 on NT,Win2K,XP Languages: VBScript |