POV-Ray : Newsgroups : povray.newusers : question about union Server Time
13 Nov 2024 01:44:25 EST (-0500)
  question about union (Message 1 to 4 of 4)  
From: nospam
Subject: question about union
Date: 27 Jul 2001 13:21:47
Message: <3B61C022.7060803@nospam>
Hi All,
I've created a model in a 3rd party software and exported it to POV(for 
finishing), that has multiple objects in it. I want to use the "union" 
statement/function to group all the objects for moving, rotating, etc. 
I've seen the examples shown here, but I have a question.
When exported to POV from another software, POV shows each object as 
"mesh2" with it's list of vectors, faces, etc., but no location 
coordinates or scaling values. So when declaring each object, and giving 
them names, is there a defalut set of values in POV that will keep your 
objects sizes/coordinates(in relation to the model) the same, or does 
this have to be written in? If someone could give me a good clear 
example of how to do this, I would appreciate it.
Les


Post a reply to this message

From: Bob H 
Subject: Re: question about union
Date: 27 Jul 2001 16:07:02
Message: <3b61c9e6@news.povray.org>
<nospam@nospam> wrote in message news:3B61C022.7060803@nospam...
>
> I've created a model in a 3rd party software and exported it to POV(for
> finishing), that has multiple objects in it. I want to use the "union"
> statement/function to group all the objects for moving, rotating, etc.
> I've seen the examples shown here, but I have a question.
> When exported to POV from another software, POV shows each object as
> "mesh2" with it's list of vectors, faces, etc., but no location
> coordinates or scaling values. So when declaring each object, and giving
> them names, is there a defalut set of values in POV that will keep your
> objects sizes/coordinates(in relation to the model) the same, or does
> this have to be written in? If someone could give me a good clear
> example of how to do this, I would appreciate it.

Hopefully this is the answer:  min_extent and max_extent, keywords in
MegaPOV.

Plus writing it in  :-)

These are known as the Bounds Patch (section 9.1 of the MP doc, examples
there) for getting the smallest and largest vector (corners) of a object.
You would then need to apply those in some way to place and scale your
separate objects to a uniform size.  CSG union of them in itself is no
problem.

Bob H.


Post a reply to this message

From: Warp
Subject: Re: question about union
Date: 27 Jul 2001 21:12:50
Message: <3b621192@news.povray.org>
Bob H. <omn### [at] msncom> wrote:
: These are known as the Bounds Patch (section 9.1 of the MP doc, examples
: there) for getting the smallest and largest vector (corners) of a object.

  Not the object, but its bounding box.

  This is a very important difference as the bounding box of some objects
may not be perfect (eg. they are much bigger than the object itself).

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


Post a reply to this message

From: Gilles Tran
Subject: Re: question about union
Date: 28 Jul 2001 09:21:16
Message: <3B62BC3C.AF9BDFF0@inapg.inra.fr>
nospam@nospam wrote:

> Hi All,
> When exported to POV from another software, POV shows each object as
> "mesh2" with it's list of vectors, faces, etc., but no location
> coordinates or scaling values.

I don't know what software you used, but a converter like 3DWin outputs in
the povray file the coordinates of the containing box.

G.

--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

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