\n" ); 276 | PolymeshFacet facet; 277 | 278 | switch( polymesh.DistributionOfNormals ) 279 | { 280 | case DistributionOfNormals.AtEachPoint: 281 | for( int i = 0; i < polymesh.NumberOfFacets; ++i ) 282 | { 283 | facet = polymesh.GetFacet( i ); 284 | streamWriter.Write( facet.V1 + " " + facet.V1 + " " + 285 | facet.V2 + " " + facet.V2 + " " + 286 | facet.V3 + " " + facet.V3 + " " + 287 | "\n" ); 288 | } 289 | break; 290 | 291 | case DistributionOfNormals.OnEachFacet: 292 | //TODO : DistributionOfNormals.OnEachFacet 293 | case DistributionOfNormals.OnePerFace: 294 | for( int i = 0; i < polymesh.NumberOfFacets; ++i ) 295 | { 296 | facet = polymesh.GetFacet( i ); 297 | streamWriter.Write( facet.V1 + " 0 " + 298 | facet.V2 + " 0 " + 299 | facet.V3 + " 0 " + 300 | "\n" ); 301 | } 302 | break; 303 | 304 | } 305 | 306 | streamWriter.Write( "
\n" ); 307 | streamWriter.Write( "\n" ); 320 | PolymeshFacet facet; 321 | 322 | switch( polymesh.DistributionOfNormals ) 323 | { 324 | case DistributionOfNormals.AtEachPoint: 325 | for( int i = 0; i < polymesh.NumberOfFacets; ++i ) 326 | { 327 | facet = polymesh.GetFacet( i ); 328 | streamWriter.Write( facet.V1 + " " + facet.V1 + " " + facet.V1 + " " + 329 | facet.V2 + " " + facet.V2 + " " + facet.V2 + " " + 330 | facet.V3 + " " + facet.V3 + " " + facet.V3 + " " + 331 | "\n" ); 332 | } 333 | break; 334 | 335 | case DistributionOfNormals.OnEachFacet: 336 | //TODO : DistributionOfNormals.OnEachFacet 337 | case DistributionOfNormals.OnePerFace: 338 | for( int i = 0; i < polymesh.NumberOfFacets; ++i ) 339 | { 340 | facet = polymesh.GetFacet( i ); 341 | streamWriter.Write( facet.V1 + " 0 " + facet.V1 + " " + 342 | facet.V2 + " 0 " + facet.V2 + " " + 343 | facet.V3 + " 0 " + facet.V3 + " " + 344 | "\n" ); 345 | } 346 | break; 347 | } 348 | 349 | streamWriter.Write( "
\n" ); 350 | streamWriter.Write( "