POV-Ray : Newsgroups : povray.newusers : DNA creation help? : Re: DNA creation help? Server Time
30 Jul 2024 02:22:09 EDT (-0400)
  Re: DNA creation help?  
From: Oleguer Vilella
Date: 25 Oct 2004 16:50:41
Message: <417d6721@news.povray.org>
How can I rotate it? and how can I translate it? Of I do this it gives me an
error:

====================================
isosurface {
function {  f_helix1 (x, y, z, 2, 3, 4, 5, 0.1, 1, 25) rotate x*25 }
        max_gradient 6
        contained_by {sphere {0, 1.2} }
        pigment {rgb .9}
}
=====================================

Many thanks,
Oleguer



news:417c9e05$1@news.povray.org...
> Yes Mike, Ok, now that's right.
>
> =====================================
> isosurface {
> function {  f_helix1 (x, y, z, 2, 3, 4, 5, 0.1, 1, 25) }
>         max_gradient 6
>         contained_by {sphere {0, 1.2} }
>         pigment {rgb .9}
> }
> =====================================
>
> Thank you very much,
> Oleguer
>
>
>

> news:1Dqe$HAo1EfBFwh0@econym.demon.co.uk...
> > Wasn't it Oleguer Vilella who wrote:
> > >Why it doesn't work?
> > >
> > >===================================
> > >#include "functions.inc"
> > >#include "colors.inc"
> > >
> > >camera {
> > >  location  <7, 25, -20>
> > >  look_at   <5, 3.0,  0.0> }
> > >
> > >light_source { <-100,200,-100> colour rgb 1 }
> > >background { White }
> > >
> > >isosurface {
> > >function {  f_helix1 (1, 1, 1, 2, 3, 4, 5, 0.1, 1, 25) }
> > >        max_gradient 1.5
> > >        contained_by {sphere {0, 1.2} }
> > >        pigment {rgb .9}
> > >}
> > >==================================
> >
> > The main reason is that you're only evaluating a single point of the
> > function. You should say "f_helix1 (x,y,z..." not "f_helix1 (1,1,1..."
> >
> > You'll also need to increase your max_gradient to about 6.
> >
> > -- 
> > Mike Williams
> > Gentleman of Leisure
>
>


Post a reply to this message

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