0 Replies Latest reply on Jun 16, 2017 10:55 AM by Reinhard Mattersberger

    How to automatically align a rendermaterial/texture to an edge

    Reinhard Mattersberger

      I have to write a SolidWorks addin where the user can set textures that are mapped to ERP articles. In my case it is important that the direction of the texture is displayed correct ( wood materials ).

      So, the user should select the face where the rendermaterial should be added and the edge where the direction of the texture should relate.

      I can rotate the texture via rendermaterial.RotationAngle but how do i get the angle between the texture direction and the edge direction ?

       

      Any ideas ?