Readme

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

IGES TOOLBOX FOR MATLAB

=======================
This is a version of the IGES toolbox for MATLAB. It can be downloaded at Mathwo
rks file exchange community site,
http://www.mathworks.com/matlabcentral/fileexchange/13253-iges-toolbox
The toolbox cannot handle all IGES entity types but hopefully it will be a help
for you to develop your CAD applications.
A recommendation is to use I-DEAS IGES translator to generate the IGES-files.
Run some of the example files; "example", "example2", "exampleProjection", ...
in MATLAB's Command window for examples.
Some mex source files are also included. Compile them in MATLAB by running "make
IGESmex" in the Command window.
All users must first compile the source-code before they can use it. See "help m
ex" in MATLAB for more information.
Written by
Per Bergstrm

MAIN FUNCTIONS
==============
iges2matlab
----------This is the main function which extracts IGES parameter data from a CAD-file int
o Matlab.

plotIGES
-------Plots the IGES CAD-model.

plotIGESentity
-------------Plots a given entity of an IGES CAD-model.

plotNURBS
---------

Plots a NURBS entity (surface or curve).

transformIGES
------------Transform the parameter data of an IGES CAD-model with a rotation/reflection and
a translation.

findEntityIGES
-------------Returns a vector with indices having a given entity type number.

projIGES
-------Returns points of projections on a surface of an IGES CAD-model.

projpartIGES
-----------Returns points of projections on part of a surface of an IGES CAD-model.

projpartPerspectiveIGES
----------------------Returns points of a perspective projections on part of a surface of an IGES CADmodel.

projpartSphericalIGES
--------------------Returns points of a spherical projections on part of a surface of an IGES CAD-mo
del.

srfRepInProjection
-----------------Returns a surface representation using input/output from projpartIGES. See "exam
pleProjection2", and "exampleProjection2b".

linAppSrfIGES
-------------

Returns a surface approximation.

icpSrfLinRep
-----------Returns a surface representation.

getDVGtree
---------Returns a DVG tree.
See:
P. Bergstrm, O. Edlund, and I. Sderkvist
"Repeated surface registration for on-line use",
The International Journal of Advanced Manufacturing Technology,
Volume 54, Issue 5-8, pp 677-689

icpDVGpnt2pntLS (mex functions)


icpDVGpnt2pntTu
--------------------ICP algorithms.

stl2matlab
---------Extracts data in STL-files to Matlab.

plotSTL
------Plots data from STL-files.

transformSTL
-----------Transform vertices of a STL-object with a rotation/reflection and a translation.

igesToolBoxGUI
-------------Matlab GUI. (igesToolBoxGUI.m and igesToolBoxGUI.fig)

SUBFUNCTIONS
============
retSrfCrvPnt
-----------Returns values from surfaces, curves and points. No complete documentation is gi
ven.

nrbDerivativesIGES
-----------------Returns first and second derivative representation of NURBS.

getSurfaceDistributedPoints
--------------------------Returns points distribusted on a surface.

nrbCrvPlaneIntrsctIGES (mex function)


------------------------------------Finds a parameter value of a NURBS curve at the closest point to a given plane.

nrbevalIGES (mex function)


-------------------------Evaluates NURBS and derivatives of NURBS.

nrbSrfRegularEvalIGES (mex function)


-----------------------------------Evaluates a NURBS surface at parameter values in a regular grid.

closestNrbLinePointIGES (mex function)


-------------------------------------Returns the closest point to a NURBS patch and a line/point.

LScrvApp (mex function)


----------------------Creates matrices for NURBS curve fit in 2D.

offsetNURBSsurface (mex function)


--------------------------------Creates an offset NURBS surface.

createDVGtree (mex function)


---------------------------Creates a DVG-tree.

makeIGESmex
----------m-file for compiling the mex files.

For more documentation about the listed functions above, see the help for each f
unction in Matlab.
The folder mexSourceFiles contains source code for subfunctions of the mex-files
.

You might also like