, Visual C#


- 6


DesigningLine(-R, -H, 0, -C, -H, A);

DesigningLine(-C, -H, A, -D, -H, B);

DesigningLine(-D, -H, B, -D, -H, -B);

DesigningLine(-D, -H, -B, -C, -H, -A);

DesigningLine(-C, -H, -A, -R, -H, 0);

DesigningLine(-R, -H, 0, 0, -1, 0);

DesigningLine(-C, -H, A, 0, -1, 0);

DesigningLine(-D, -H, B, 0, -1, 0);

DesigningLine(-D, -H, -B, 0, -1, 0);

DesigningLine(-C, -H, -A, 0, -1, 0);

DesigningLine(R, H, 0, -D, -H, B);

DesigningLine(R, H, 0, -D, -H, -B);

DesigningLine(C, H, A, -D, -H, B);

DesigningLine(C, H, A, -C, -H, A);

DesigningLine(D, H, B, -C, -H, A);

DesigningLine(D, H, B, -R, -H, 0);

DesigningLine(D, H, -B, -R, -H, 0);

DesigningLine(D, H, -B, -C, -H, -A);

DesigningLine(C, H, -A, -C, -H, -A);

DesigningLine(C, H, -A, -D, -H, -B);

Icosahedron_last = NumLines;

}

// Line :

public struct Line

{

// (points):

public float[] fr_points;

public float[] to_points;

// :

//(transformed (tr) points):

public float[] fr_tr_points;

public float[] to_tr_points;

// , ..

// 0:

public void Initialize()

{

fr_points = new float[5];

to_points = new float[5];

fr_tr_points = new float[5];

to_tr_points = new float[5];

}

}

// Lines Line, new

// 100 ,

//. null:

public Line[] Lines = new Line[100];

// :

public int NumLines = 0;

// (x1,y1,z1),(x2,y2,z2):

public void DesigningLine(float x1, float y1, float z1,

float x2, float y2, float z2)

{

NumLines = NumLines + 1;




- -  - -  - -