find which tetrahedral element a point belongs to

前端 未结 1 741
庸人自扰
庸人自扰 2021-01-25 12:43

I have a tetrahedral mesh of a 3d region. The mesh is defined by two files with extensions .node and .ele which contain data related to nodes and elements (this is the format of

相关标签:
1条回答
  • 2021-01-25 13:02

    If you know the orientation of the faces of your tetrahedra, then you only need to compute the volume of tetrahedra formed by your point p=(x1,y1,z1) and each face of the tetrahedra. Point p is inside a tetrahedron if and only if it makes a positive volume with respect to each face.



    Snippet from Computational Geometry in C.


    0 讨论(0)
提交回复
热议问题