Code covered by the BSD License  

Highlights from
Nurbs2IGES

5.0

5.0 | 1 rating Rate this file 42 Downloads (last 30 days) File Size: 3.83 MB File ID: #12087
image thumbnail

Nurbs2IGES

by

 

29 Aug 2006 (Updated )

This code allows one to convert a NURBS Surface to an IGES surface file for import into a CAD progra

| Watch this File

File Information
Description

This code allows one to convert a NURBS Surface to an IGES surface file for import into a CAD program. Entity 128 is used and is the only entity type output. NURBS curves could be output with some modification. This code is rough but works for what I am doing.

Attached IGES format guidelines to help understand it. All the lines (in the *.igs file) on the right MUST line up or the file will not open up.

Acknowledgements

This file inspired Igesout and Iges Toolbox.

MATLAB release MATLAB 7 (R14)
Other requirements NURBS toolkit
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
13 Aug 2014 Fa

Am I the only one having problem with circular shapes ?
When I use democirc.m then nrbplot.m I have a good result but if I try to export it int the iges format it does not look the same.

Thank you !

25 Apr 2012 Lee byan

i found the same question with Roland, it seems that the length of output file name should be equal to 11.

i just simply rewrite the code instead the original code line numbered 152~155 using the following code:

tstr = sprintf('%1.0fH%s,', G{1,2}, G{1,1});
tstr = [tstr,sprintf('%1.0fH%s,', G{2,2}, G{2,1})];
tstr = [tstr,sprintf('%2.0fH%s,', G{3,2}, G{3,1})];
tstr = [tstr,sprintf('%2.0fH%s,', G{4,2}, G{4,1})];
fprintf(fid, '%s',tstr);
len_tstr = length(tstr);
for kk = 1:(72-len_tstr)
fprintf(fid, ' ');
end
fprintf(fid, 'G%07.f\n', Gln); Gln=Gln+1;

14 Jan 2012 Roland

it happens that the end line delimiter (?) "G0000001" of the second line does not align with the other delimiters, than some CAD programs (like freeCAD) can not read the iges file. In this case, I just edit the iges file manually, but it would be good to make the output more robust.

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

23 Dec 2010 Luigi Giaccari

Nice Work!
A few question:
-Do you know how to create triangular NURBS patches?
-How to export multiple surfaces in the same file?

Thanks!

Contact us