Witam chciałbym uruchomić poniższy kod w Visual C# 2010 Express jednak wyskakuje mi błąd już na początku [Error 1 The type or namespace name 'CPI' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Właściciel\Ustawienia lokalne\Dane aplikacji\Temporary Projects\sześcian\Form1.cs] i nie umiem sobie z nim poradzić. Proszę o pomoc.
using System;
//using System.Collections.Generic;
using System.ComponentModel;
//using System.Data;
using System.Drawing;
//using System.Text;
using System.Windows.Forms;
using CPI.Plot3D;
namespace Examples
{
public partial class Form1 : Form
{
private double dominoRotationAngle = 0;
public Form1()
{
InitializeComponent();
}
private void btnDrawSquare_Click(object sender, EventArgs e)
{
using (Graphics g = this.CreateGraphics())
using (CPI.Plot3D.Plotter3D p = new CPI.Plot3D.Plotter3D(g))
{
g.Clear(this.BackColor);
p.Location = new CPI.Plot3D.Point3D(150, 150, 0);
DrawSquare(p, 50);
}
}
public void DrawSquare(Plotter3D p, float sideLength)
{
for (int i = 0; i < 4; i++)
{
p.Forward(sideLength); // Draw a line sideLength long
p.TurnRight(90); // Turn right 90 degrees
}
}
public void DrawCube(Plotter3D p, float sideLength)
{
for (int i = 0; i < 4; i++)
{
DrawSquare(p, sideLength);
p.Forward(sideLength);
p.TurnDown(90);
}
}