about *createplane using method

shiucomp5
shiucomp5 Altair Community Member
edited September 11 in Community Q&A

Hi everyone, I have a question and would like to seek guidance from you experienced seniors.

I want to use three selected points to form a plane and cut a solid. The syntax is as follows:

image

*createmark solids 1 1
*createplane 1 0.721742695 0 -2.38736917e-15 0 -45.2974491 3.50480741e-15
*body_splitmerge_with_plane solids 1 1

Regarding the command description for *createplane, it is as follows:


*createplane
Defines a plane for use in a subsequent command.
Syntax
*createplane plane_id normal_x normal_y normal_z base_x base_y base_z
I selected three points, but how can I obtain the normal vector of these three points, specifically the "normal_x normal_y normal_z"?

Tagged:

Answers

  • Meng yu
    Meng yu Altair Community Member
    edited September 11

    it may be helpful to learn cross product. If you choose A B C three points, the normal vector n  can be obtained by n=ABxAC. The Matlab function is n=cross(B-A, C-A).

     

    image