POV-Ray : Newsgroups : povray.unofficial.patches : Tesselation and mesh data extraction patches Server Time
5 Jul 2025 22:52:21 EDT (-0400)
  Tesselation and mesh data extraction patches (Message 3 to 12 of 32)  
<<< Previous 2 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Tony[B]
Subject: Re: Tesselation and mesh data extraction patches
Date: 13 Dec 2000 21:21:35
Message: <3a382eaf@news.povray.org>
Whoa... you did it*. Way to go! Our dreams are a reality! Now we can make
POV benefit from those nice video cards, and stuff. Can you make a patch for
reading directly from 3DS and other file formats directly? :)


* "it" being "the tesselation of POV objects".


Post a reply to this message

From: Warp
Subject: Re: Tesselation and mesh data extraction patches
Date: 14 Dec 2000 08:25:54
Message: <3a38ca62@news.povray.org>
Would this alternative syntax be better?

tesselate
{ MyObject
  accuracy INTEGER
  [smooth]
  [inside_vector VECTOR]
}

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Modified syntax (Was: Tesselation and mesh data extraction patches)
Date: 14 Dec 2000 09:35:54
Message: <3a38daca@news.povray.org>
I modified the syntax of the tesselation to be more versatile and more
homogeneous with the syntax of other povray objects.

tesselate
{ OBJECT
  [accuracy INTEGER]
  [smooth]
  [inside_vector VECTOR]
  [distance FLOAT]

  OBJECT_MODIFIERS
}

  I reused old keywords in MegaPov so that I wouldn't have to create new
ones.
  The hardest keyword to find was for the bounding-box offset value. I thought
that 'distance' could be the best one for that.

  I still have to work a bit about the meaning of the accuracy value.
  Any suggestions?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: Modified syntax (Was: Tesselation and mesh data extraction patches)
Date: 14 Dec 2000 10:08:50
Message: <slrn93hok7.2uh.ron.parker@fwi.com>
On 14 Dec 2000 09:35:54 -0500, Warp wrote:
>  I reused old keywords in MegaPov so that I wouldn't have to create new
>ones.
>  The hardest keyword to find was for the bounding-box offset value. I thought
>that 'distance' could be the best one for that.

Isn't "offset" a keyword in MegaPOV anymore?

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Warp
Subject: Re: Modified syntax
Date: 14 Dec 2000 10:11:10
Message: <3a38e30e@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
:   [accuracy INTEGER]

  I have decided to change that to:

    [accuracy VECTOR]

  This way the user can specify the accuracy in each axis.
  Of course specifying a single value will have the same effect as before
(because it's converted to a vector with the three components being that
value).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Modified syntax
Date: 14 Dec 2000 10:13:46
Message: <3a38e3aa@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: Isn't "offset" a keyword in MegaPOV anymore?

  Oh... You are right. I changed it to "offset" :)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Tony[B]
Subject: Re: Modified syntax
Date: 14 Dec 2000 10:23:22
Message: <3a38e5ea@news.povray.org>
Sounds fine now. Just one question: What's "inside_vector"?


Post a reply to this message

From: Warp
Subject: Re: Modified syntax
Date: 14 Dec 2000 11:40:12
Message: <3a38f7eb@news.povray.org>
Tony[B] <ben### [at] panamac-comnet> wrote:
: Sounds fine now. Just one question: What's "inside_vector"?

  See the section 5.3 (Solid Triangle mesh) of the MegaPov documentation.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Jim Kress
Subject: Re: Tesselation and mesh data extraction patches
Date: 14 Dec 2000 13:00:21
Message: <3a390ab5$1@news.povray.org>
What tessellation method did you use?

Jim


Post a reply to this message

From: Chris Huff
Subject: Re: Tesselation and mesh data extraction patches
Date: 14 Dec 2000 13:10:07
Message: <chrishuff-90FAB9.13110514122000@news.povray.org>
In article <3a38ca62@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Would this alternative syntax be better?
> 
> tesselate
> { MyObject
>   accuracy INTEGER
>   [smooth]
>   [inside_vector VECTOR]
> }

I think so...for one thing, there currently aren't any functions that 
return objects, so you should probably stick to the object syntax for 
creating objects. Also, this syntax could be applied to the idea I was 
talking about earlier while keeping a fairly consistant syntax:
mesh {
    tesselate {OBJECT, etc...}
    tesselate {OBJECT2, etc...}
}

BTW, do you think there is a need for more insideness-testing methods? 
Not all meshes will work perfectly with a single test, sending 3 rays at 
right angles(or more rays in various directions) would work better in 
some cases. However, it would be slower, and in some cases the 1 ray 
method would be perfectly adequate or even more useful than the "more 
reliable" method. For example, if you have a sheet-like mesh that you 
want everything "under" to be "inside", something like a height field.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

<<< Previous 2 Messages Goto Latest 10 Messages Next 10 Messages >>>

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