This is h001 case. It employs 15 control points
float* b = arControlPts;
int nAdjust = 0; //To adjust point order when we need to make ad hoc insertion/deletion.
// It will be set to zero in final version.
b[1+nAdjust]=96; b[2+nAdjust]=119; b[3+nAdjust]=130;
b[4+nAdjust]=87; b[5+nAdjust]=121; b[6+nAdjust]=113;
nAdjust = -3;
//b[7+nAdjust]=87; b[8+nAdjust]=126; b[9+nAdjust]= 89;
b[10+nAdjust]=90; b[11+nAdjust]=132; b[12+nAdjust]=75;
b[13+nAdjust]=97; b[14+nAdjust]=137; b[15+nAdjust]=63;
////////////
b[16+nAdjust]=103; b[17+nAdjust]=143; b[18+nAdjust]=51;
b[19+nAdjust]=111; b[20+nAdjust]=150; b[21+nAdjust]=43;
b[22+nAdjust]=138; b[23+nAdjust]=174; b[24+nAdjust]=32;
//b[25+nAdjust]=129; b[26+nAdjust]=164; b[27+nAdjust]=36;
nAdjust = -6;
b[28+nAdjust]=150; b[29+nAdjust]=187; b[30+nAdjust]=35;
////////////
b[31+nAdjust]=154; b[32+nAdjust]=207; b[33+nAdjust]=36;
b[34+nAdjust]=156; b[35+nAdjust]=219; b[36+nAdjust]=46;
b[37+nAdjust]=153; b[38+nAdjust]=223; b[39+nAdjust]=58;
b[40+nAdjust]=149; b[41+nAdjust]=230; b[42+nAdjust]=70;
b[43+nAdjust]=143; b[44+nAdjust]=234; b[45+nAdjust]=89;
b[46+nAdjust]=136; b[47+nAdjust]=232; b[48+nAdjust]=123;
b[49+nAdjust]=137; b[50+nAdjust]=219; b[51+nAdjust]=240;
return 15; //The number of control points.
The following is variable interval control points with 22 control points
float* b = arControlPts;
int nAdjust = 0; //To adjust point order when we need to make ad hoc insertion/deletion.
// It will be set to zero in final version.
b[1+nAdjust]=96; b[2+nAdjust]=119; b[3+nAdjust]=130;
b[4+nAdjust]=87; b[5+nAdjust]=121; b[6+nAdjust]=113;
b[7+nAdjust]=87; b[8+nAdjust]=126; b[9+nAdjust]= 89;
b[10+nAdjust]=90; b[11+nAdjust]=132; b[12+nAdjust]=75;
b[13+nAdjust]=97; b[14+nAdjust]=137; b[15+nAdjust]=63;
////////////
b[16+nAdjust]=103; b[17+nAdjust]=143; b[18+nAdjust]=51;
b[19+nAdjust]=111; b[20+nAdjust]=150; b[21+nAdjust]=43;
b[25+nAdjust]=129; b[26+nAdjust]=164; b[27+nAdjust]=36;
b[22+nAdjust]=138; b[23+nAdjust]=174; b[24+nAdjust]=32;
b[28+nAdjust]=150; b[29+nAdjust]=187; b[30+nAdjust]=35;
////////////
b[31+nAdjust]=154; b[32+nAdjust]=207; b[33+nAdjust]=36;
b[34+nAdjust]=156; b[35+nAdjust]=219; b[36+nAdjust]=46;
b[37+nAdjust]=153; b[38+nAdjust]=223; b[39+nAdjust]=58;
b[40+nAdjust]=149; b[41+nAdjust]=230; b[42+nAdjust]=70;
b[43+nAdjust]=143; b[44+nAdjust]=234; b[45+nAdjust]=89;
b[46+nAdjust]=140; b[47+nAdjust]=234; b[48+nAdjust]=100;
b[49+nAdjust]=136; b[50+nAdjust]=232; b[51+nAdjust]=123;
b[52+nAdjust]=135; b[53+nAdjust]=229; b[54+nAdjust]=150;
b[55+nAdjust]=136; b[56+nAdjust]=228; b[57+nAdjust]=171;
b[58+nAdjust]=137; b[59+nAdjust]=226; b[60+nAdjust]=194;
b[61+nAdjust]=139; b[62+nAdjust]=223; b[63+nAdjust]=215;
b[64+nAdjust]=137; b[65+nAdjust]=219; b[66+nAdjust]=240;
return 22; //The number of control points.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment