|
![](/i/fill.gif) |
Hi there. I'm at work so am going to haev to reply quickly for now - a full
explanation when I got home,
firstly, for centering: have a loko at the manual for min_extent and
max_extent - they return vectors of the opposing corners of the bounding box
for an object - you can get a single direction using the dot notation -
#declare MyObj = <whatever>
object {MyObj
translate (max_extent(MyObj) - min_extent(MyObj))/2
}
which should center in all 3 directions.
as to changing with time, you need to use the variable clock in your script,
This could be slightly tricky if you need to break the object into multiple
parts - I'm afraid I'm too new to know how to do that, but I'm sure someone
else here will be abel to help.
"LikeNoOther" <eug### [at] gmail com> wrote in message
news:web.468380c01d89b845758b6c7b0@news.povray.org...
>
> Hi.
>
> I have to create a program or script to cut a 3D model into
> layers(slices).
> The layers will look similar to CT scans (X-rays).
> To do this I can use two planes to cut 3D model.
>
> I just have to do an animation and move the places upward through the
> model.
> I understand what to do, unfortunately I don't know exactly how to do
> this.
>
> There is another problem with this. I have to be able to use a 3D mesh
> from
> either 3DS or Lightwave format. When I convert it to POV-Ray, the model is
> not centered at the origin.
>
> Can a script center the object?
>
> The layers must start from the bottom and run to the top of the model
> making
> vertical layers(slices).
>
> Is there a way to determine where the lowest y value is in the mesh?
> (I don't think so..)
>
>
> Any help will be appreciated.
>
>
Post a reply to this message
|
![](/i/fill.gif) |