POV-Ray : Newsgroups : povray.newusers : How to position an "included" bezier-spline model? Server Time
28 Nov 2024 20:46:34 EST (-0500)
  How to position an "included" bezier-spline model? (Message 1 to 4 of 4)  
From: Cindy Groves
Subject: How to position an "included" bezier-spline model?
Date: 29 Oct 1999 18:30:16
Message: <381a1ff8@news.povray.org>
Hi! I'm using a Hash Animation Master to POV converter, which creates an
.inc file from the model.  These files are very long, BTW (thousands of
lines long).  I want to move the model around in the scene and be able to
scale it. To do that, I think I would need to #declare the object within the
.inc file and reference it within my pov scene file.

However, I'm not sure how to enclose such a long series of vectors.  Each
spline patch has four lines with several vectors each (enclosed in < >), and
then each group has a material applied after each group of numbers.  I'm not
sure where the enclosing brackets {} should go when declaring the object.

I hope I've explained the problem well enough.  Any help would be
appreciated.

Thanks,

Cindy Groves


Post a reply to this message

From: Mike
Subject: Re: How to position an "included" bezier-spline model?
Date: 29 Oct 1999 18:52:04
Message: <381A22CA.51A801C3@aol.com>
Hi Cindy, that's my exporter! :)

What you want to do is make a union of all the patches.  You do this by typing
union { before the first patch and finish it off by adding a } after the last
patch.  The best way to do this is to give the union a name so you can use the
object in your main scene.  So you might have a file called myscene.inc like
this:

#declare MyObject = union {
bicubic_patch {}
bicubic_patch {}
bicubic_patch {}
...
}

Then in your main scene file you would include that file and reference the
object:

#include "myscene.inc"

object {MyObject }

and you can make multiple copies of the object that way.

object {MyObject translate -5*x}
object {MyObject scale 5 translate 15*x}

I probably overexplained it.  It's pretty simple.

-Mike


Post a reply to this message

From: Cindy Groves
Subject: Re: How to position an "included" bezier-spline model?
Date: 29 Oct 1999 22:39:00
Message: <381a5a44@news.povray.org>
Mike <pov### [at] aolcom> wrote in message news:381A22CA.51A801C3@aol.com...
> Hi Cindy, that's my exporter! :)

BTW, thanks for making it available!

<snip>

>
> I probably overexplained it.  It's pretty simple.

Well, since I haven't been using POV very long, I need it to be
overexplained... : )

Thanks for the help!

Cindy Groves


Post a reply to this message

From: Philippe Debar
Subject: Re: How to position an "included" bezier-spline model?
Date: 3 Nov 1999 03:34:58
Message: <381ff3b2@news.povray.org>
I think this short-hand *should* (totally untested) work:

#declare MyObject = union{ #include "MyScene.inc"}

Philippe


Post a reply to this message

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