hello
ok i'm compiling a simple programm i get an error.
here it is:
error C2664: '__thiscall gstTriPolyMesh::gstTriPolyMesh(int,int,double ** ,int,int,int ** ,int)' : cannot convert parameter 3 from 'double [16][3]' to 'double **
i'm passing to arrays to this constructor declared as such.
the contructeor line is:
gstTriPolyMesh *triMesh = new gstTriPolyMesh(16,3,points,14,4,tris,true);
double points[16][3] = {
{0.0,0.0,18.0},
{0.0,18.0,18.0},
{18.0,0.0,18.0},
{18.0,18.0,18.0},
{36.0,0.0,18.0},
{36.0,18.0,18.0},
{54.0,0.0,18.0},
{54.0,18.0,18.0},
{0.0,0.0,0.0},
{18.0,0.0,0.0},
{36.0,0.0,0.0},
{54.0,0.0,0.0},
{0.0,18.0,0.0},
{18.0,18.0,0.0},
{36.0,18.0,0.0},
{54.0,18.0,0.0}};
and
int tris [14][4]={
{3,2,1,0},
{5,4,3,2},
{7,5,4,6},
{0,1,12,8},
{11,15,7,6},
{10,14,15,11},
{9,13,14,10},
{8,12,13,9},
{13,12,1,2},
{14,13,2,5},
{15,14,5,7},
{9,8,0,13},
{10,9,13,4},
{11,10,4,7}
};
anyone can help.
If you answer quickly i am prepared to offer a donut.
ok i'm compiling a simple programm i get an error.
here it is:
error C2664: '__thiscall gstTriPolyMesh::gstTriPolyMesh(int,int,double ** ,int,int,int ** ,int)' : cannot convert parameter 3 from 'double [16][3]' to 'double **
i'm passing to arrays to this constructor declared as such.
the contructeor line is:
gstTriPolyMesh *triMesh = new gstTriPolyMesh(16,3,points,14,4,tris,true);
double points[16][3] = {
{0.0,0.0,18.0},
{0.0,18.0,18.0},
{18.0,0.0,18.0},
{18.0,18.0,18.0},
{36.0,0.0,18.0},
{36.0,18.0,18.0},
{54.0,0.0,18.0},
{54.0,18.0,18.0},
{0.0,0.0,0.0},
{18.0,0.0,0.0},
{36.0,0.0,0.0},
{54.0,0.0,0.0},
{0.0,18.0,0.0},
{18.0,18.0,0.0},
{36.0,18.0,0.0},
{54.0,18.0,0.0}};
and
int tris [14][4]={
{3,2,1,0},
{5,4,3,2},
{7,5,4,6},
{0,1,12,8},
{11,15,7,6},
{10,14,15,11},
{9,13,14,10},
{8,12,13,9},
{13,12,1,2},
{14,13,2,5},
{15,14,5,7},
{9,8,0,13},
{10,9,13,4},
{11,10,4,7}
};
anyone can help.
If you answer quickly i am prepared to offer a donut.