Exemple #1
0
 private void DrawLines(FastBitmap bitmap, Point3D objectBasePoint, Point3D primitiveBasePoint, List <Point3D> points, Array2D objectMatrix, Array2D primitiveMatrix, Color color)
 {
     ConvertLocalToCamera(objectBasePoint, primitiveBasePoint, points, objectMatrix, primitiveMatrix);
     convertCameraToScreenCoords(points);
     for (int pi = 0; pi < points.Count - 1; ++pi)
     {
         for (int pj = pi + 1; pj < points.Count; ++pj)
         {
             bitmap.DrawLine((int)points[pi].getX(), (int)points[pi].getY(), (int)points[pj].getX(), (int)points[pj].getY(), color);
         }
     }
 }