Пример #1
0
 // 三角形の重心を求める
 public static Vector3d TriangleCentroid(CadFigure fig)
 {
     return(CadMath.TriangleCentroid(
                fig.GetPointAt(0).vector,
                fig.GetPointAt(1).vector,
                fig.GetPointAt(2).vector
                ));
 }
Пример #2
0
 // 三角形で設定
 public void set(Vector3d p0, Vector3d p1, Vector3d p2)
 {
     Area  = CadMath.TriangleArea(p0, p1, p2);
     Point = CadMath.TriangleCentroid(p0, p1, p2);
 }