point clouds triangulation

Hi friends ! I want a macro or a method to do the triangulation of point clouds extracted from solidworks simulation ( COSMOS).Thank you

SolidworksApi macros