Generate uniformly distributed short cylinders(fibers) in a cubic cell, insuring cylinders are separeted with each other.
- https://www.geometrictools.com/
- Intersection of Cylinders
- Halpern, D., Wilson, H.B. and Turcotte, L.H., 2002. Advanced mathematics and mechanics applications using MATLAB. CRC press.
Chapter 13 Nonlinear Optimization Applications, 13.6 Determining the Closest Points on Two Surfaces gives another solution of judging separation by determining the closest points on two surfaces. Detailed MATLAB code is also given in this reference.
在矩形空间内生成均匀分布的圆柱体短纤维,同时保证各个圆柱体之间不会相互重合。
-
Wilson H B, Turcotte L H, Halpern D. Advanced mathematics and mechanics applications using MATLAB[M]. CRC Press, 2003.
这本书中的第13章“Nonlinear Optimization Applications”中的13.6小节“Determining the Closest Points on Two Surfaces”给出了判断圆柱体是否重合的另一方法:计算两个空间曲面之间的最近点。相关的MATLAB代码也能够在书中一并找到。