Code covered by the BSD License  

Highlights from
IGES Toolbox

4.61111

4.6 | 19 ratings Rate this file 103 Downloads (last 30 days) File Size: 1.2 MB File ID: #13253
image thumbnail

IGES Toolbox

by

 

05 Dec 2006 (Updated )

Extracts the parameter data in an IGES file to Matlab.

| Watch this File

File Information
Description

Toolbox for working with IGES CAD-objects in Matlab. The Matlab function ‘iges2matlab’ extracts the parameter data in an IGES file to Matlab. Other functions in the toolbox do plots, transformations, projections etc.

All user must first compile the source code. This is done in Matlab by running:

makeIGESmex

and the mex functions are compiled.

Acknowledgements

Nurbs2 Iges and Mesh2 D Automatic Mesh Generation inspired this file.

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Some C compiler must be installed.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (34)
01 Aug 2014 mostafa

I have tried this solution and it works for me... check this link
http://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1

01 Aug 2014 rohan vaidya  
31 May 2014 mostafa

hello there,
i'm a new user, so please i need to know how to run this tool box in matlab

14 Mar 2014 Aleksandar Petrov

Hello,
I'm using the function iges2matlab and it's very useful but I'm wondering if there is an inverse function that already extracted parameter data will transform into an iges file (matlab2iges)? :)
Thanks

06 Nov 2013 TCH

nrbSrfRegularEvalIGES.c cannot compile under win64 platform

23 Aug 2013 faculaganymede

Thanks for creating the IGES Toolbox. I'm trying to use it to read a truck IGES model (58729_Cement_Truck_NURBS.iges downloaded from http://www.3dcadbrowser.com/download.aspx?3dmodel=58729) and there's something funny about both ends of the trunk when the model is displayed (see problem here https://dl.dropboxusercontent.com/u/78384338/truck.png). Looks like something wrong with trimming the sphere surfaces. Any ideas/suggestions?? The model displays OK in Rhino.

29 Jul 2013 Sabrina

I have the exact same problem as Daniel.

09 Jul 2013 Daniel

how do I run the examples, do I just type in "example2" and thats it ? because I allways get this errors:

Trial>> example2
example2.igs
Undefined function 'nrbSrfRegularEvalIGES' for input arguments of type 'struct'.

Error in retSrfCrvPnt (line 43)
[P,UV,TRI]=nrbSrfRegularEvalIGES(ParameterData{ind}.nurbs,ParameterData{ind}.u(1),ParameterData{ind}.u(2),n,ParameterData{ind}.v(1),ParameterData{ind}.v(2),n);

Error in plotIGES (line 221)
[P,isSCP,isSup,TRI]=retSrfCrvPnt(1,ParameterData,1,i,subd);

Error in example2 (line 11)
plotIGES(ParameterData,2,1,30);

I'm new to all this and I couldn't finde a solution jet.

Thank you in advance.

Danny

14 May 2013 shi

thans...i am new in this aspect and donot know how use it now

02 May 2013 Brian

Is anyone else getting an error when trying to open an iges file?

Undefined function 'nrbevalIGES' for input arguments of type 'struct'.

Error in iges2matlab (line 628)
p =
nrbevalIGES(ParameterData{entiall}.nurbs,linspace(ParameterData{entiall}.v(1),ParameterData{entiall}.v(2),nup));

Error in igesToolBoxGUI>menuOpenIGES_Callback (line 419)
[ParameterData,EntityType,numEntityType,unknownEntityType,numunknownEntityType]=iges2matlab([path,file]);

Error in gui_mainfcn (line 96)
feval(varargin{:});

Error in igesToolBoxGUI (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in
@(hObject,eventdata)igesToolBoxGUI('menuOpenIGES_Callback',hObject,eventdata,guidata(hObject))


Error while evaluating uipushtool ClickedCallback

03 Apr 2013 Adam

Great code! Thanks!

14 Nov 2012 Yongxing

very good

05 Sep 2012 NTUT

when i run('C:\Program Files\MATLAB\R2007b\toolbox\IGES\makeIGESmex.m')

Could not find the compiler "cl" on the DOS path.
Use mex -setup to configure your environment properly.

how to solve this problem

30 Jun 2012 Luis Acevedo

It is working now. I had a corrupt file in my comp . Good toolbox :-)

29 Jun 2012 Luis Acevedo

Which type of compiler do i need?
C what? send me link

I have got the same problem than LuisCarlos, Liu and so on with a 64bits machine. fatal error LNK1104: 'nrbevalIGES.mexw64

Would be nice an update soon!

12 Jun 2012 Aleksandar Petrov

:) I can use it, it works great!!

thank you

03 May 2012 LuisCarlosAbsalon RojasTorres

Hi everybody! Please somebody can help me? when execute makeIGESmex i read this
LINK : fatal error LNK1104: no se puede abrir el archivo 'nrbevalIGES.mexw64'
I run it on 64bits corei7 and I cant use IGEStoolbox.

03 May 2012 LuisCarlosAbsalon RojasTorres

Hi everybody! Please somebody can help me? when execute makeIGESmex i read this
LINK : fatal error LNK1104: no se puede abrir el archivo 'nrbevalIGES.mexw64'
I run it on 64bits corei7 and I cant use IGEStoolbox.

21 Mar 2012 liu

I am using these code. It is very good.

Now, We are waiting for Mr. Per to Add a new function "getpointfromIGES".
Hope we can get update soon.

Thanks!

14 Mar 2012 Razmara

Trying to import some IGES files but i get the following warning: Warning: There are unknown entity types for iges2matlab file.

Use "I-DEAS 3D IGES Translator" with NURBS as surface representation instead.
If you dont have that posibility you can add IGES entities into iges2matlab().
The IGES manual is found at

IGES files are not shown properly. How to add IGES entities into iges2matlab()

26 Feb 2012 Oscar

Can somebody told me, how to do the opposite. I have a 3D figure generated in Matlab, but I need the figure in IGES or another CAD extension.

25 Oct 2011 kunal

Hi, all

I am using NURBS Toolbox and IGES reader for MATLAB. The IGES reader is supposed to read IGES files from CAD softwares and extract geometric info from it. When i try to extract entities 126 and 128 (which correspond to NURBS Curves and surface). I am getting inconsistent results.

for example.

when extracting NURBS from a Cylinder IGS file from solidworks, I am getting no surface at all. When i use Rhino 3D i get a nurbs surface which looks like a cylinder but it's not Circular in shape like the IGES file.

I need to extract a proper NURBS surface that looks exactly like the IGS file

05 Jul 2011 Snahungshu

Is it 2D plot only??

19 Nov 2010 Ernest West

I have the same question above. I just want to be able to obtain the data points of a simple rectangle from IGES to matlab

26 May 2010 Bryn littlefair

Can you provide a little more infomation on the application of retSrfCrvPnt. I am trying to extract an array of data for a surface i have imported. Many thanks

16 Mar 2010 By ?

Thank you,this is a great job

29 Jun 2009 ricky martin  
21 Apr 2009 Jose M.  
22 Dec 2008 iokinberistain Beristain

fantastic job!!! thank you very much

03 Oct 2007 alloucherie franck

good

14 Jun 2007 Kava Crosson

Needs better documentation about projection parameters. Otherwise very impressive.

16 Jan 2007 bruce bi

This is what I need. Thank You!

06 Dec 2006 Petr Volegov

Need bspeval.dll for Windows x64. Could you please submit the source files too?

06 Dec 2006 Paolo Bertolo

Fantastic job!
I've just opened a CATIA CAD file, converted into IGES using Hypermesh and then loaded it into Matlab. That's great!

Updates
15 Dec 2006

Have added a function.

19 Dec 2006

Have added a function.

08 Jan 2007

Have done a small improvement.

09 Jan 2007

Makes the previous update complete.

18 Jan 2007

Have done some small improvements.

20 Mar 2007

Have added the source code to bspeval.

26 Jun 2007

Have done some small improvements.

19 Nov 2007

Have added some entities.

29 Apr 2008

The projection is better documented by adding an example.

27 Apr 2009

Mesh2d is used for meshing the surfaces.

14 Aug 2009

One more example is added, plotIGES draws surfaces faster using patch().

10 Dec 2009

2 old m-files are replaced by:
nrbevalIGES.c
closestNrbLinePointIGES.c

20 Mar 2012

More entities are added, a GUI is developed, more examples are attached.

Contact us