POV-Ray : Newsgroups : povray.general : Need Mesh2 Example File Server Time
20 Nov 2024 04:31:58 EST (-0500)
  Need Mesh2 Example File (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: Cris Williams
Subject: Need Mesh2 Example File
Date: 14 Nov 2001 10:02:52
Message: <3bf2879c@news.povray.org>
I'm looking for a Mesh2 file that uses all of the Mesh2 features.  I am
playing around with writing a program to manipulate meshes and I'd like to
thoroughly check my parser code.  Does anyone have a Mesh2 file like this on
a web site that I can download?  Thanks.

Cris Williams


Post a reply to this message

From:
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 10:32:04
Message: <ge35vtg1rm972bppjmk2efuno17q5uioi3@4ax.com>
On Wed, 14 Nov 2001 10:03:04 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:

> I'm looking for a Mesh2 file that uses all of the Mesh2 features.  I am
> playing around with writing a program to manipulate meshes and I'd like to
> thoroughly check my parser code.  Does anyone have a Mesh2 file like this on
> a web site that I can download?  Thanks.

Check this:

#version 3.5;

camera {
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   0
}

light_source { <-30, 30, -30> color rgb 1 }

#local Texture1=texture{pigment{color green 1}}

mesh2{
  vertex_vectors{
    8
    (x+z+y) (x-z+y) (-x-z+y) (-x+z+y)
    (x+z-y) (x-z-y) (-x-z-y) (-x+z-y)
  }
  normal_vectors{
    3
    x y z
  }
  uv_vectors{
    4
    <0,0><0,1><1,1><1,0>
  }
  texture_list{
    3,
    texture { Texture1 },
    texture { pigment{color red 1} }
    texture { pigment{color blue 1} }
  }
  face_indices{
    4,
    <4,5,6>,0,
    <4,6,7>,0,1,2,
    <0,1,2>,
    <0,2,3>,
  }
  normal_indices{
    1
    <0,1,2>
  }
  uv_indices{
    4,
    <0,1,2>
    <0,2,3>
    <0,1,2>
    <0,2,3>
  }
  texture{pigment{color rgb 1}}
  rotate y*30
  rotate -x*10
  scale .5
}

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Cris Williams
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 11:05:54
Message: <3bf29662@news.povray.org>
Thanks, but I was actually looking for a good-sized Mesh2 (.inc?) file that
I can try to import into my program.

Cris Williams


news:ge35vtg1rm972bppjmk2efuno17q5uioi3@4ax.com...
> On Wed, 14 Nov 2001 10:03:04 -0500, "Cris Williams"
<wor### [at] netscapenet>
> wrote:
>
> > I'm looking for a Mesh2 file that uses all of the Mesh2 features.  I am
> > playing around with writing a program to manipulate meshes and I'd like
to
> > thoroughly check my parser code.  Does anyone have a Mesh2 file like
this on
> > a web site that I can download?  Thanks.
>
> Check this:
>
> #version 3.5;
>
> camera {
>   location  <0.0, 0.5, -4.0>
>   direction 1.5*z
>   right     x*image_width/image_height
>   look_at   0
> }
>
> light_source { <-30, 30, -30> color rgb 1 }
>
> #local Texture1=texture{pigment{color green 1}}
>
> mesh2{
>   vertex_vectors{
>     8
>     (x+z+y) (x-z+y) (-x-z+y) (-x+z+y)
>     (x+z-y) (x-z-y) (-x-z-y) (-x+z-y)
>   }
>   normal_vectors{
>     3
>     x y z
>   }
>   uv_vectors{
>     4
>     <0,0><0,1><1,1><1,0>
>   }
>   texture_list{
>     3,
>     texture { Texture1 },
>     texture { pigment{color red 1} }
>     texture { pigment{color blue 1} }
>   }
>   face_indices{
>     4,
>     <4,5,6>,0,
>     <4,6,7>,0,1,2,
>     <0,1,2>,
>     <0,2,3>,
>   }
>   normal_indices{
>     1
>     <0,1,2>
>   }
>   uv_indices{
>     4,
>     <0,1,2>
>     <0,2,3>
>     <0,1,2>
>     <0,2,3>
>   }
>   texture{pigment{color rgb 1}}
>   rotate y*30
>   rotate -x*10
>   scale .5
> }
>
> ABX
> --
> #declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb
1}}
> union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{
//ABX
>
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)
}
> contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient
1}}//POV35


Post a reply to this message

From:
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 11:10:57
Message: <ik55vt4obfotq426feepn422ontc8uanea@4ax.com>
On Wed, 14 Nov 2001 11:06:07 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:
> Thanks, but I was actually looking for a good-sized Mesh2 (.inc?) file that
> I can try to import into my program.

I don't understand what's wrong with my example? Just remove other components
like light and camera and write mesh2 to include file. I don't understand word
"good-sized". Showed mesh2 is completly right according to mesh2 specification
at http://www.povray.org/working-docs/id000165.html#6_5_2_4 .

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Cris Williams
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 11:53:12
Message: <3bf2a178$1@news.povray.org>
There is nothing wrong with your example.  I'm just not expressing myself
clearly enough.  Ideally what I would like to find is a mesh2 (preferably
closed, but not necessarily) of some recognizable shape and with a triangle
count of at least 500.  Something like an ice cream cone, or a hammer, or a
tree, or an apple, or a ...  :-)

I have already created my own small meshes to test my import code.  Now I'd
like to try importing someone else's large mesh.

Cris Williams


Post a reply to this message

From:
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 12:00:41
Message: <hg85vtg0bcgc1ou2elu8ipl5ffprea5kjv@4ax.com>
On Wed, 14 Nov 2001 11:53:26 -0500, "Cris Williams" <wor### [at] netscapenet>
wrote:
> Something like an ice cream cone, or a hammer, or a
> tree, or an apple, or a ...  :-)

... two flying rectangles ? ;-)

> I have already created my own small meshes to test my import code.

But how my example works with your parser ?

> Now I'd
> like to try importing someone else's large mesh.

Have you checked http://www.stmuc.com/thbaier/products.html and some large free
models from net libraries ?

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: David Burnett
Subject: Need Mesh2 Example File
Date: 14 Nov 2001 15:21:23
Message: <1005769356@bigfoot.com>
"Cris Williams" <wor### [at] netscapenet> wrote...
>I'm looking for a Mesh2 file that uses all of the Mesh2 features. 

Here's a simple little 'cherry' for you to play with 595 faces and UV
-mapped 

http://homepage.ntlworld.com/vargol/Archive.zip

Dave

-- 
Posted By NewsBe 1.6.4
http://www.vargol.freeserve.co.uk/newsbe/


Post a reply to this message

From: Cris Williams
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 15:37:32
Message: <3bf2d60c@news.povray.org>
Thank you!

"David Burnett" <var### [at] bigfootcom> wrote in message
news:100### [at] bigfootcom...
> "Cris Williams" <wor### [at] netscapenet> wrote...
> >I'm looking for a Mesh2 file that uses all of the Mesh2 features.
>
> Here's a simple little 'cherry' for you to play with 595 faces and UV
> -mapped
>
> http://homepage.ntlworld.com/vargol/Archive.zip
>
> Dave
>
> --
> Posted By NewsBe 1.6.4
> http://www.vargol.freeserve.co.uk/newsbe/
>


Post a reply to this message

From: Hugo
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 16:48:02
Message: <3bf2e692$1@news.povray.org>
Hi Cris,

You're not writing the same kind of program as I am, are you?  I thought I
could patent my idea and fill a gap in everyones POV experience.. Well.. At
least I'm struggling with math these days, reading and thinking, to get up
on the level I need for my things to work.. I'm interested in knowing what
you are trying to make? Maybe we could cooperate. Though, for now my plans
are secret, in case I do have something unique in mind, that I can develop.

Regards,
Hugo

Cris wrote
> I'm looking for a Mesh2 file that uses all of the Mesh2 features.  I am
> playing around with writing a program to manipulate meshes and I'd like to
> thoroughly check my parser code


Post a reply to this message

From: Ron Parker
Subject: Re: Need Mesh2 Example File
Date: 14 Nov 2001 16:49:36
Message: <slrn9v5pni.9qq.ron.parker@fwi.com>
On Wed, 14 Nov 2001 22:51:02 +0100, Hugo wrote:
> You're not writing the same kind of program as I am, are you?  I thought I
> could patent my idea and fill a gap in everyones POV experience.. Well.. At

You are aware that software patents are one of the purest forms of evil, 
right?

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}


Post a reply to this message

Goto Latest 10 Messages Next 9 Messages >>>

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