Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

scripting – normal direction of a face

TAGGED: 

    • info
      Subscriber

      Hello,

      Could you please help me to get the normal direction of a selected face ?

      Thanks,

    • Naresh Patre
      Ansys Employee

      Hello GUICAD

      You can get the direction of a face (at the middle of the face) with the command:


      dir1 = GetRootPart().Bodies[0].Faces[0].GetFaceNormal(0.5,0.5)

      • Feiwei Feiwei
        Subscriber

        Hello Naresh Patre

        Could you please tell me how to use this command,in UDF or?

        "dir1 = GetRootPart().Bodies[0].Faces[0].GetFaceNormal(0.5,0.5)"

        Thanks!

    • info
      Subscriber

      Perfect, thanks !

    • Feiwei Feiwei
      Subscriber

      Hello 

      I want to know how to use this command,in UDF or?

      "dir1 = GetRootPart().Bodies[0].Faces[0].GetFaceNormal(0.5,0.5)"

      Thanks!

Viewing 3 reply threads
  • The topic ‘scripting – normal direction of a face’ is closed to new replies.
[bingo_chatbox]