POV-Ray : Newsgroups : povray.general : From Mesh2 to Mesh : Re: From Mesh2 to Mesh Server Time
2 Aug 2024 20:18:02 EDT (-0400)
  Re: From Mesh2 to Mesh  
From: leseur sylvain
Date: 5 Aug 2004 03:53:00
Message: <4111e75c$1@news.povray.org>
Thanks a lot but i can't understand something:
The goal is to use Mesh2 from Moray to build
*.pcm (instead of sphere.pcm or torus.pcm)
I try that with HAIR GROWTH MACRO FILE and
use only case 1.
(1111.pov from Moray output and 1.pcm from Mesh
compressor vers 3 attached )
Nothing appear !........

May be because for Moray,
//Use right handed-system
//Where Z is up
Can you help me again if you have time ?
Friendly
Sylvain


-Moray give to me  when i convert to Mesh2 (for a box
1111.pov )
////////////////////////////////////////////////

mesh2 {   // TMesh001
  vertex_vectors {
    8,
    <-1.0000000, -1.0000000, -1.0000000>,
    <-1.0000000, 1.0000000, -1.0000000>,
    <1.0000000, 1.0000000, -1.0000000>,
    <1.0000000, -1.0000000, -1.0000000>,
    <-1.0000000, -1.0000000, 1.0000000>,
    <-1.0000000, 1.0000000, 1.0000000>,
    <1.8918829, 1.0000000, 1.5054003>,
    <1.8918829, -1.0000000, 1.5054003>
  }
  normal_vectors {
    6,
    <-0.1721558, 0.0000000, 0.9850697>,
    <0.0000000, -1.0000000, 0.0000000>,
    <0.0000000, 0.0000000, -1.0000000>,
    <0.0000000, 1.0000000, 0.0000000>,
    <-1.0000000, 0.0000000, 0.0000000>,
    <0.9420872, 0.0000000, -0.3353681>
  }
  uv_vectors {
    14,
    <0.2500000, 0.6666667>,
    <0.5000000, 0.6666667>,
    <0.5000000, 0.3333333>,
    <0.2500000, 0.3333333>,
    <0.2500000, 1.0000000>,
    <0.5000000, 1.0000000>,
    <0.2500000, 0.0000000>,
    <0.5000000, 0.0000000>,
    <0.0000000, 0.6666667>,
    <0.0000000, 0.3333333>,
    <0.7500000, 0.6666667>,
    <0.7500000, 0.3333333>,
    <1.0000000, 0.6666667>,
    <1.0000000, 0.3333333>
  }
  face_indices {
    12,   // 0 triangles and 6 quads
    <5, 4, 7>,
    <5, 7, 6>,
    <4, 0, 3>,
    <4, 3, 7>,
    <0, 1, 2>,
    <0, 2, 3>,
    <1, 5, 6>,
    <1, 6, 2>,
    <0, 4, 5>,
    <0, 5, 1>,
    <2, 6, 7>,
    <2, 7, 3>
  }
  normal_indices {
    12,   // from 0 triangles and 6 quads
    <0, 0, 0>,
    <0, 0, 0>,
    <1, 1, 1>,
    <1, 1, 1>,
    <2, 2, 2>,
    <2, 2, 2>,
    <3, 3, 3>,
    <3, 3, 3>,
    <4, 4, 4>,
    <4, 4, 4>,
    <5, 5, 5>,
    <5, 5, 5>
  }
  uv_indices {
    12,   // from 0 triangles and 6 quads
    <0, 3, 2>,
    <0, 2, 1>    <3, 6, 7>,
    <3, 7, 2>    <13, 12, 10>,
    <13, 10, 11>    <4, 0, 1>,
    <4, 1, 5>    <9, 3, 0>,
    <9, 0, 8>    <10, 1, 2>,
    <10, 2, 11>
  }
}
///////////////////////////////////////////////
//----------------------------------------------



-WinMeshcomp (vers 3)   give to me
after convert Moray's Mesh2 (1111.pov) to .pcm  (1.pcn)
////////////////////////////////////////////////////

"PCM4",
14,6,
-1,-1,-1,0,0.3333333,-1,-1,-1,0.25,0,-1,-1,-1,1,0.3333333,-1,-1,1,0.25,0.333
3333,
-1,1,-1,0,0.6666667,-1,1,-1,0.25,1,-1,1,-1,1,0.6666667,-1,1,1,0.25,0.6666667
,
1,-1,-1,0.5,0,1,-1,-1,0.75,0.3333333,1,1,-1,0.5,1,1,1,-1,0.75,0.6666667,
1.8918829,-1,1.5054003,0.5,0.3333333,1.8918829,1,1.5054003,0.5,0.6666667,-1,
0,0,-0.1721558,0,0.9850697,
0,-1,0,0,0,-1,0,1,0,0.9420872,0,-0.3353681,
0,12,
7,15,3,15,12,15,7,15,12,15,13,15,3,16,1,16,8,16,3,16,8,16,12,16,
2,17,6,17,11,17,2,17,11,17,9,17,5,18,7,18,13,18,5,18,13,18,10,18,
0,14,3,14,7,14,0,14,7,14,4,14,11,19,13,19,12,19,11,19,12,19,9,19,
0,0,
0,0,
////////////////////////////////////////////////
//----------------------------------------------


Post a reply to this message


Attachments:
Download '1111.pov.txt' (5 KB) Download '1.pcm.txt' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.