Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    如何获取一个面上四个角点的坐标?

    OpenFOAM
    2
    3
    607
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anubis last edited by

      有没有函数可以像mesh.cellPoints()一样可以直接根据面的index来获取组成面的四个点的坐标?

      1 Reply Last reply Reply Quote
      • 马乔
        马乔 副教授 last edited by

        const labelList face = mesh.faces()[index];
        forAll(face, pointi)
        {
            auto point = mesh.points()[face[pointi]];
        }
        

        装逼没输过,吵架没赢过!

        A 1 Reply Last reply Reply Quote
        • A
          anubis @马乔 last edited by

          @马乔 好的,谢谢。 顺便问一下,这个auto是指什么?数据类型自动根据后面的指定嘛?

          1 Reply Last reply Reply Quote
          • First post
            Last post

          CFD中文网 | 东岳流体 | 京ICP备15017992号-2