143 {
144 if(fType==SIX_PLANE) {
145 cout<<"A="<<fV[5].distance(fV[6])<<endl;
146 cout<<"a="<<fV[1].distance(fV[2])<<endl;
147 cout<<"B="<<fV[7].distance(fV[4])<<endl;
148 cout<<"b="<<fV[0].distance(fV[3])<<endl;
149 cout<<"C="<<fV[7].distance(fV[6])<<endl;
150 cout<<"c="<<fV[3].distance(fV[2])<<endl;
151 cout<<"D="<<fV[4].distance(fV[5])<<endl;
152 cout<<"d="<<fV[1].distance(fV[0])<<endl;
155 t1=fV[0]-fV[3];
156 t2=fV[2]-fV[3];
157 cout<<
"alpha1="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
158 t1=fV[3]-fV[2];
159 t2=fV[1]-fV[2];
160 cout<<
"alpha2="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
161 t1=fV[2]-fV[1];
162 t2=fV[0]-fV[1];
163 cout<<
"alpha3="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
164 t1=fV[3]-fV[0];
165 t2=fV[1]-fV[0];
166 cout<<
"alpha4="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
167 t1=fV[3]-fV[7];
168 t2=fV[4]-fV[7];
169 t=t1*t2/(t1.mag()*t2.mag());
171 cout<<
"L="<<t1.mag()*
t<<endl;
172 } else {
173 cout<<"A="<<fV[5].distance(fV[9])<<endl;
174 cout<<"a="<<fV[0].distance(fV[4])<<endl;
175 cout<<"B="<<fV[9].distance(fV[8])<<endl;
176 cout<<"b="<<fV[4].distance(fV[3])<<endl;
177 cout<<"C="<<fV[8].distance(fV[7])<<endl;
178 cout<<"c="<<fV[3].distance(fV[2])<<endl;
179 cout<<"D="<<fV[7].distance(fV[6])<<endl;
180 cout<<"d="<<fV[2].distance(fV[1])<<endl;
181 cout<<"E="<<fV[6].distance(fV[5])<<endl;
182 cout<<"e="<<fV[1].distance(fV[0])<<endl;
185 t1=fV[1]-fV[0];
186 t2=fV[4]-fV[0];
187 cout<<
"alpha1="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
188 t1=fV[3]-fV[4];
189 t2=fV[0]-fV[4];
190 cout<<
"alpha2="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
191 t1=fV[2]-fV[3];
192 t2=fV[4]-fV[3];
193 cout<<
"alpha3="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
194 t1=fV[3]-fV[2];
195 t2=fV[1]-fV[2];
196 cout<<
"alpha4="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
197 t1=fV[0]-fV[1];
198 t2=fV[2]-fV[1];
199 cout<<
"alpha5="<<acos(t1*t2/(t1.mag()*t2.mag()))*180/
pi<<endl;
200 t1=fV[0]-fV[6];
201 t2=fV[5]-fV[6];
202 t=t1*t2/(t1.mag()*t2.mag());
204 cout<<
"L="<<t1.mag()*
t<<endl;
205 }
206 }