Thread Subject: 3D surface rendering

Subject: 3D surface rendering

From: Danilo Scelfo

Date: 7 Aug, 2009 12:24:01

Message: 1 of 4

Hi there,

I need to get a surface of a solid whose I have 360 points in the space.
They consist in the output of a sampling process. The surface is closed and centered in the origin of axis. Should have a circle-like shape.
I tried to look to surf, mesk, interp, patch... but I didn't manage to succeed. Actually, I even did not manage to plot the points! Just a beginner...
Once rendered the surface (no matter what kind of solution you would suggest/teach me: triangle, interpolation... ) I would be interested in color-coding the surface. In instance, I'd like to color each face of the surface in accordance to its punctual orientation in the space.

Thanks in advance for the help you will give to me.

Danilo.

Subject: 3D surface rendering

From: someone

Date: 7 Aug, 2009 14:08:03

Message: 2 of 4

"Danilo Scelfo" <danilo.scelfo@gmail.com> wrote in message <h5h6d1$a99$1@fred.mathworks.com>...
> Hi there,
>
> I need to get a surface of a solid whose I have 360 points in the space.
> They consist in the output of a sampling process. The surface is closed and centered in the origin of axis. Should have a circle-like shape.
> I tried to look to surf, mesk, interp, patch... but I didn't manage to succeed. Actually, I even did not manage to plot the points! Just a beginner...
> Once rendered the surface (no matter what kind of solution you would suggest/teach me: triangle, interpolation... ) I would be interested in color-coding the surface. In instance, I'd like to color each face of the surface in accordance to its punctual orientation in the space.
>
> Thanks in advance for the help you will give to me.
>
> Danilo.

You don't say how your 360 points are formatted. cartesian?

Perhaps this link (gridfit) will help:

http://www.mathworks.com/matlabcentral/fileexchange/8998

Subject: 3D surface rendering

From: Danilo Scelfo

Date: 7 Aug, 2009 16:09:01

Message: 3 of 4


>
> You don't say how your 360 points are formatted. cartesian?
>
> Perhaps this link (gridfit) will help:
>
> http://www.mathworks.com/matlabcentral/fileexchange/8998

Thanks... Someone!

Yeah... I forgot to tell you the data format. Anyway yes, it's cartesian.
I solve the issue in the paste two hours by taking advance of the Luigi Giaccari's Delaunay script. It worked for my request.
However, I would ask another related issue: how can I achieve color coding of the several triangular patches, in accordance with their own direction? I mean, three different principal colors for the Cartesian axis and correspondent mixed colors for intermediate directions...

Thanks again,

Danilo.

Subject: 3D surface rendering

From: Luigi Giaccari

Date: 9 Aug, 2009 14:41:02

Message: 4 of 4

HI Danilo,

If you have to colour your surface depending on the direction you can substitute rgb triplets with triangles normals. In matlab rgb values go from 0 to 1, it should be ok !



Ciao Danilo,

mi ? venuta in mente una cosa, visto che devi colorare in base alla direzione perch? non crei una colormap in cui le triplette rgb non sono altro che le normali. In matlab i valori rgb vanno da 0 a 1. Penso possa andare bene.

http://www.advancedmcode.org/

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
3d Danilo Scelfo 7 Aug, 2009 08:29:07
surface Danilo Scelfo 7 Aug, 2009 08:29:07
rendering Danilo Scelfo 7 Aug, 2009 08:29:07
color coding Danilo Scelfo 7 Aug, 2009 08:29:07
rssFeed for this Thread

Contact us at files@mathworks.com