POV-Ray : Newsgroups : povray.newusers : Divide a torus Server Time
2 Nov 2024 05:22:16 EDT (-0400)
  Divide a torus (Message 1 to 3 of 3)  
From: Oleguer Vilella
Subject: Divide a torus
Date: 19 Sep 2004 12:41:35
Message: <414db6bf$1@news.povray.org>
Can anyone tell me how can I divide this torus?
The code is:
===============Thecamera================
#include "colors.inc"
#include "shapes.inc"
#include "stones.inc"
#include "textures.inc"
#include "woods.inc"
#include "metals.inc"
#include "golds.inc"
#include "glass.inc"
#include "glass_old.inc"

global_settings { assumed_gamma 2 }
background { color White }
camera { location <-10, 8, -19> look_at <0, 5, 0> }
light_source { <0, 33, 0> color White spotlight point_at <0, 0, 0> radius 50
falloff 20 tightness 0  }
light_source { <0, 19, 0> color rgb <0.5, 0.5, 0.5> }
light_source { <40, 25, 0> color rgb <1, 1, 1>
spotlight
point_at <0, 5, 0>
radius 20
falloff 20  }
=====================================
==============The torus=================
torus { .3, .1 texture { T_Gold_1D } finish { specular 1 ambient 0.9
reflection .001 phong 0.3 phong_size 30 }
scale 0.7 scale <1.5, 1, 9> translate <3, 2, 0> rotate <90, 180, 0>
}
=====================================
I want a only a half of it.

turn the middle, make a function like sine, cosine and tangent but it isn't
the function that I need. Any idees?

Thanks in advance,
Oleguer
http://www.infonegocio.com/oleguervm


Post a reply to this message

From: Warp
Subject: Re: Divide a torus
Date: 19 Sep 2004 13:17:33
Message: <414dbf2d@news.povray.org>
Oleguer Vilella <ole### [at] infonegociocom> wrote:
> I want a only a half of it.

  A half is very easy: Just difference a plane (or perhaps a box) from it.
Something like this:

difference
{ torus { r1, r2 }
  plane { z, 0 rotate y*45 }

  // textures and transformations
}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Oleguer Vilella
Subject: Re: Divide a torus
Date: 19 Sep 2004 13:25:15
Message: <414dc0fb$1@news.povray.org>
Ok Warp. I have understood this part. I think the easiest way is difference
a plane.
Thank you.

Regards,
Oleguer


news:414dbf2d@news.povray.org...
> Oleguer Vilella <ole### [at] infonegociocom> wrote:
> > I want a only a half of it.
>
>   A half is very easy: Just difference a plane (or perhaps a box) from it.
> Something like this:
>
> difference
> { torus { r1, r2 }
>   plane { z, 0 rotate y*45 }
>
>   // textures and transformations
> }
>
> -- 
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb
M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  -
Warp -


Post a reply to this message

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