|
![](/i/fill.gif) |
Hi Florain, and thanks for your answer,
I partially solved my problem by using your method!
In fact I exported some surface (3D surface: only defined by the altitude
the size and the step)from an apparatus. Then I translated them into .txt,
read them with matlab. My goal was to simulate the lighting behaviour of
the surfaces using povray.
What I did , was to convert the surface (obtained with meshgrid) into a .obj
and then to a .pov using PosRay.
Greetings
Pierre
Florian Brucker <tor### [at] torfbold com> wrote:
> Hi!
>
> Which format is your surface in? I got no Matlab at the moment, but
> usually it would be something like this, right?
>
> x = [0:0.1:1];
> y = [-1:0.1:1];
> [X,Y] = meshgrid(x,y);
> Z = exp(X).*Y;
>
> If that's the case, triangulation should be straightforward. I can put
> something together later (when I'm at a puter which has Matlab installed).
>
> Even if you've got a finished surface displayed in a figure window it
> should be possible to export it without too much hassle, although it'll
> be slightly more complicated.
>
> If you can give me some more details about what you need I'll see what I
> can do :)
>
>
> Greetings,
> Florian
Post a reply to this message
|
![](/i/fill.gif) |