POV-Ray : Newsgroups : povray.programming : Solid meshes ? Server Time
28 Jul 2024 18:23:04 EDT (-0400)
  Solid meshes ? (Message 1 to 4 of 4)  
From: Thomas Willhalm
Subject: Solid meshes ?
Date: 1 Oct 1999 10:43:44
Message: <qqmln9nnntr.fsf@goldach.fmi.uni-konstanz.de>
Hello,

some time ago, there has been a discussion about adding support of CSG
for triangle meshes. Has this been realized? Please tell me, if such
a patch exists or whether it's included in the superpatch.

I'm even more interested in using bicubic patches. CSG with objects
that are modeled with bicubic patches (e.g. within sPatch) would
be really great. Furthermore, these objects should be able to serve
as containers of media.

Thanks for any pointers.

Thomas

-- 
http://www.fmi.uni-konstanz.de/~willhalm


Post a reply to this message

From: Ron Parker
Subject: Re: Solid meshes ?
Date: 1 Oct 1999 11:21:33
Message: <37f4d17d@news.povray.org>
/*
On 01 Oct 1999 16:43:44 +0200, Thomas Willhalm wrote:
>
>Hello,
>
>some time ago, there has been a discussion about adding support of CSG
>for triangle meshes. Has this been realized? Please tell me, if such
>a patch exists or whether it's included in the superpatch.

If it's not in the current one, it'll be in the next one.  I'm pretty
sure it's in UVPOV, Nathan Kopp's photon-mapping and UV-mapping patch.

>I'm even more interested in using bicubic patches. CSG with objects
>that are modeled with bicubic patches (e.g. within sPatch) would
>be really great. Furthermore, these objects should be able to serve
>as containers of media.

If you have a union of bicubic patches, and it's watertight, you should
be able to use it as a media container even in the official POV.  Render
this, for example:
*/

light_source { <-20,20,-20> rgb 1}
camera {location <2,5,5> look_at 0 }
                        
#declare xface=
  bicubic_patch { type 1 flatness 0.1 u_steps 3 v_steps 3
  <1,-1,-1> <1,-.5,-1> <1,.5,-1> <1,1,-1> 
  <1,-1,-.5> <1,-.5,-.5> <1,.5,-.5> <1,1,-.5> 
  <1,-1,.5> <1,-.5,.5> <1,.5,.5> <1,1,.5> 
  <1,-1,1> <1,-.5,1> <1,.5,1> <1,1,1>}

union {
  object {xface}
  object {xface rotate 90*y}
  object {xface rotate 180*y}
  object {xface rotate 270*y}
  object {xface rotate 90*z}
  object {xface rotate 270*z}
  hollow
  texture {
    pigment {color rgbt .8 }
    finish { specular .2 diffuse .3 ambient .2 roughness .2}}
  interior { media { emission 1
    density {bozo color_map {[.5 rgb 0][1 rgb 1]} scale .2}}}
}   

#declare sm=slope_map { [0 <0,0>][.8 <0,0>][1 <1,1>]}
plane {y,-2 
  texture {
    pigment {checker color rgb <1,1,0> color rgb <0,1,0> translate .5}
    finish {specular .2 diffuse .3 ambient .3 roughness .001}
    normal {average normal_map {
      [.5 marble 1 slope_map {sm}]
      [.5 marble 1 rotate 90*y slope_map {sm}]}} 
    scale <3,1,3>
  }
}


Post a reply to this message

From: Nathan Kopp
Subject: Re: Solid meshes ?
Date: 3 Oct 1999 00:02:04
Message: <37f6d53c@news.povray.org>
Ron Parker <par### [at] fwicom> wrote ...
> /*
> On 01 Oct 1999 16:43:44 +0200, Thomas Willhalm wrote:
> >
> >Hello,
> >
> >some time ago, there has been a discussion about adding support of CSG
> >for triangle meshes. Has this been realized? Please tell me, if such
> >a patch exists or whether it's included in the superpatch.
>
> If it's not in the current one, it'll be in the next one.  I'm pretty
> sure it's in UVPOV, Nathan Kopp's photon-mapping and UV-mapping patch.
>

Yes.  I did play around with that a bit.  My solution is very simple and has
a number of flaws and shortcomings (which have been discussed previously in
this group), but has gotten the job done for me in a few situations where I
needed it.  :-)

-Nathan


Post a reply to this message

From: Thomas Willhalm
Subject: Re: Solid meshes ?
Date: 4 Oct 1999 08:17:26
Message: <qqmvh8nnwve.fsf@goldach.fmi.uni-konstanz.de>
"Nathan Kopp" <Nat### [at] Koppcom> writes:

> Ron Parker <par### [at] fwicom> wrote ...

Thank you both. I'll try this.

Thomas

-- 
http://www.fmi.uni-konstanz.de/~willhalm


Post a reply to this message

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