=A0=0A =A0=0Ahi,=0A=0ACan some body help me,Thanks in advance=0A=0Ai have =
a line ,i need to show with three different colours for a single line.but i=
am able to see only in black colour line .=0A=0Atotal lenght of line is 10=
00=0A=0Afrom x =3D 0 to x=3D 200 blue =0Afrom x =3D 500 to x=3D 700 red =0A=
from x =3D 900 to x=3D 1000 blue =0A=0A=0Ai have written some thing like th=
is=0A=0AColorVector cv(1000);=0ATripleField data;=0A=0A=0ATriple coord_1(x1=
,y1,z1);// diff x,y,z values=0Adata.push_back( coord_1 );=0Acf.push_back(c)=
;=0A=0Afor (int i=3D1; i <1000 ; i++)=0A{=0ARGBA *rgb =3D new RGBA ;=0Aif(i=
<=3D200)=0A{=0Argb->r =3D0 ; rgb->g=3D0; rgb->b=3D205;=0A}=0Aif(i>=3D500 &&=
i<=3D700)=0A{=0Argb->r =3D255 ; rgb->g=3D0; rgb->b=3D0;=0A}=0A=0Aif(i>=3D9=
00 && i<=3D999)=0A{=0Argb->r =3D0 ; rgb->g=3D0; rgb->b=3D205;=0A}=0A=0Acv.p=
ush_back(*rgb); =0A}=0A=0AcreateDataRepresentation (data, cf,POLYGON );=0As=
etPlotStyle (HIDDENLINE);=0AsetMeshLineWidth (2);=0A//setMeshColor (RGBA(25=
5,0,0,1)); iam not using this it shows total line in red.=0AStandardColor* =
col =3D new StandardColor(this);=0Acol->setColorVector(cv);=0AsetDataColor(=
col);=0AsetCoordinateStyle(BOX);=0A=0AenableMouse(TRUE);=0AupdateData();=0A=
updateGL();=0A=0Athanks =0A |