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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com