Exemple #1
0
 // 三角形の面積 3D対応
 public static double TriangleArea(CadFigure fig)
 {
     return(CadMath.TriangleArea(
                fig.GetPointAt(0).vector,
                fig.GetPointAt(1).vector,
                fig.GetPointAt(2).vector
                ));
 }
Exemple #2
0
 // 三角形で設定
 public void set(Vector3d p0, Vector3d p1, Vector3d p2)
 {
     Area  = CadMath.TriangleArea(p0, p1, p2);
     Point = CadMath.TriangleCentroid(p0, p1, p2);
 }