DistMesh是一个非常有用的三角网格剖分程序,可生成三角网,四面体网等。
boundedges
Syntax: e=boundedges(p,t)
Description: Find all the boundary edges e in triangular mesh p,t.
找出三角网格所有的边界边
Comments: Useful for implementation of boundary conditions for PDE solvers. See surftri for 3-D version.
circumcenter
Syntax: [pc,r]=circumcenter(p,t)
Description: Compute the circumcenters pc and the circumradii r for all triangles in the mesh p,t.
计算网格里所有三角单元的外接圆心pc和外接圆半径r
Comments: Not vectorized.
dcircle
Syntax: d=dcircle(p,xc,yc,r)
Description: Compute signed distance function for circle centered at xc,yc with radius r.
计算圆心为cx,yc半径为r的圆的有符号距离函数
Comments:
ddiff
Syntax: d=ddiff(d1,d2)
Description: Compute signed distance function for set difference of two regions described by signed distance functions d1,d2.
计算由有符号距离函数d1和d2所描述的两块区域的差集的有符号距离函数
Comments: Not exactly the true signed distance function for the difference, for example around corners.
dellipse
Syntax: d=dellipse(p,axes)
Description: Compute distance from points p to the ellipse centered at the origin with axes=[a,b].
计算p点到椭圆形的距离,二维
Comments: C++ code, uses LAPACK for eigenvalue problem.
dellipsoid
Syntax: d=dellipsoid(p,axes)
Description: Compute distance from points p to the ellipsoid centered at the origin with axes=[a,b,c].
计算p点到椭圆体的距离,三维
Comments: C++ code, uses LAPACK for eigenvalue problem.