กลัวว่าจะทำหายแล้วต้องมานั่งคำนวณค่าใหม่ก็เลยมาลงไว้ที่บล็อกอีกเช่นเคย
int
PaModelBuilder::initPhase1H001( float* arControlPts ) {
float* b = arControlPts;
int nAdjust = -3;
/*** TRUNK ***/
b[ 4+nAdjust] = 136; b[ 5+nAdjust] = 123; b[ 6+nAdjust] = 108;
b[ 7+nAdjust] = 138; b[ 8+nAdjust] = 112; b[ 9+nAdjust] = 115;
b[10+nAdjust] = 140; b[11+nAdjust] = 101; b[12+nAdjust] = 124;
b[13+nAdjust] = 142; b[14+nAdjust] = 89; b[15+nAdjust] = 132;
/*** LEFT ***/
b[16+nAdjust] = 169; b[17+nAdjust] = 200; b[18+nAdjust] = 105;
b[19+nAdjust] = 157; b[20+nAdjust] = 192; b[21+nAdjust] = 97;
b[22+nAdjust] = 146; b[23+nAdjust] = 183; b[24+nAdjust] = 89;
b[25+nAdjust] = 137; b[26+nAdjust] = 169; b[27+nAdjust] = 84;
b[28+nAdjust] = 134; b[29+nAdjust] = 151; b[30+nAdjust] = 91;
b[31+nAdjust] = 133; b[32+nAdjust] = 136; b[33+nAdjust] = 103; //Bifurcation point
/*** RIGHT ***/
b[34+nAdjust] = 127; b[35+nAdjust] = 145; b[36+nAdjust] = 102;
b[37+nAdjust] = 121; b[38+nAdjust] = 153; b[39+nAdjust] = 104;
b[40+nAdjust] = 113; b[41+nAdjust] = 159; b[42+nAdjust] = 106;
b[43+nAdjust] = 104; b[44+nAdjust] = 165; b[45+nAdjust] = 108;
b[46+nAdjust] = 93; b[47+nAdjust] = 167; b[48+nAdjust] = 111;
return 15; //The number of control points.
}
int
PaModelBuilder::initPhase1H002( float* arControlPts ) {
float* b = arControlPts;
int nAdjust = -3;
/*** TRUNK ***/
b[ 4+nAdjust] = 148; b[ 5+nAdjust] = 132; b[ 6+nAdjust] = 147;
b[ 7+nAdjust] = 150; b[ 8+nAdjust] = 121; b[ 9+nAdjust] = 154;
b[10+nAdjust] = 152; b[11+nAdjust] = 111; b[12+nAdjust] = 161;
b[13+nAdjust] = 155; b[14+nAdjust] = 101; b[15+nAdjust] = 170;
/*** LEFT ***/
b[16+nAdjust] = 171; b[17+nAdjust] = 201; b[18+nAdjust] = 139;
b[19+nAdjust] = 165; b[20+nAdjust] = 195; b[21+nAdjust] = 132;
b[22+nAdjust] = 159; b[23+nAdjust] = 184; b[24+nAdjust] = 134;
b[25+nAdjust] = 153; b[26+nAdjust] = 171; b[27+nAdjust] = 135;
b[28+nAdjust] = 147; b[29+nAdjust] = 159; b[30+nAdjust] = 136;
b[31+nAdjust] = 146; b[32+nAdjust] = 145; b[33+nAdjust] = 141; //Bifurcation point
/*** RIGHT ***/
b[34+nAdjust] = 134; b[35+nAdjust] = 145; b[36+nAdjust] = 145;
b[37+nAdjust] = 127; b[38+nAdjust] = 151; b[39+nAdjust] = 149;
b[40+nAdjust] = 123; b[41+nAdjust] = 160; b[42+nAdjust] = 153;
b[43+nAdjust] = 115; b[44+nAdjust] = 166; b[45+nAdjust] = 156;
b[46+nAdjust] = 104; b[47+nAdjust] = 172; b[48+nAdjust] = 158;
return 15; //The number of control points.
}
int
PaModelBuilder::initPhase2H048( float* arControlPts ) {
float* b = arControlPts;
int nAdjust = -3;
/*** TRUNK ***/
b[ 4+nAdjust] = 163; b[ 5+nAdjust] = 128; b[ 6+nAdjust] = 104;
b[ 7+nAdjust] = 169; b[ 8+nAdjust] = 112; b[ 9+nAdjust] = 116;
b[10+nAdjust] = 174; b[11+nAdjust] = 100; b[12+nAdjust] = 133;
b[13+nAdjust] = 182; b[14+nAdjust] = 92; b[15+nAdjust] = 160;
/*** LEFT ***/
b[16+nAdjust] = 200; b[17+nAdjust] = 232; b[18+nAdjust] = 100;
b[19+nAdjust] = 189; b[20+nAdjust] = 220; b[21+nAdjust] = 93;
b[22+nAdjust] = 178; b[23+nAdjust] = 206; b[24+nAdjust] = 87;
b[25+nAdjust] = 167; b[26+nAdjust] = 190; b[27+nAdjust] = 87;
b[28+nAdjust] = 159; b[29+nAdjust] = 169; b[30+nAdjust] = 88;
b[31+nAdjust] = 157; b[32+nAdjust] = 149; b[33+nAdjust] = 97; //Bifurcation point
/*** RIGHT ***/
b[34+nAdjust] = 144; b[35+nAdjust] = 152; b[36+nAdjust] = 101;
b[37+nAdjust] = 134; b[38+nAdjust] = 157; b[39+nAdjust] = 106;
b[40+nAdjust] = 124; b[41+nAdjust] = 163; b[42+nAdjust] = 111;
b[43+nAdjust] = 115; b[44+nAdjust] = 167; b[45+nAdjust] = 117;
b[46+nAdjust] = 103; b[47+nAdjust] = 168; b[48+nAdjust] = 124;
return 15; //The number of control points.
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment