Thread Subject: Read a 3D model in Matlab

Subject: Read a 3D model in Matlab

From: rajitha

Date: 24 Sep, 2009 07:39:20

Message: 1 of 5

Hi,

 How can I read a 3D model in Matlab? 2D images can be read using imread command and can work. But how can I can read a 3D model?

Regards,
Bandara

Subject: Read a 3D model in Matlab

From: Samb1985

Date: 24 Sep, 2009 07:51:02

Message: 2 of 5

"rajitha " <rajithae03@yahoo.com> wrote in message <h9f7n8$lja$1@fred.mathworks.com>...
> Hi,
>
> How can I read a 3D model in Matlab? 2D images can be read using imread command and can work. But how can I can read a 3D model?
>
> Regards,
> Bandara

In what format is the 3D model ? If is a vrml file yuo can use Virtual Reality Toolbox or Simulink 3D Animation.

Subject: Read a 3D model in Matlab

From: Jan Simon

Date: 25 Sep, 2009 08:25:21

Message: 3 of 5

Dear rajitha!

> How can I read a 3D model in Matlab? 2D images can be read using imread command and can work. But how can I can read a 3D model?

You can find some STL import functions in the File Exchange.
Good luck, Jan

Subject: Read a 3D model in Matlab

From: Bhavik

Date: 3 Nov, 2009 19:50:19

Message: 4 of 5

To read a 3D model use
[Tri,Pts]=PLYREAD(FILENAME,'TRI') % just for polygon type models

and using trisurf u can plot the model.

trisurf(Tri,Pts(:,1),Pts(:,2),Pts(:,3));
 

hope this helps you can use trimesh also..

Subject: Read a 3D model in Matlab

From: Bhavik

Date: 3 Nov, 2009 19:50:20

Message: 5 of 5

"rajitha " <rajithae03@yahoo.com> wrote in message <h9f7n8$lja$1@fred.mathworks.com>...
> Hi,
>
> How can I read a 3D model in Matlab? 2D images can be read using imread command and can work. But how can I can read a 3D model?
>
> Regards,
> Bandara

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com