3.66667

3.7 | 3 ratings Rate this file 58 downloads (last 30 days) File Size: 101.94 KB File ID: #7118

read_dxf -- read in an ASCII dxf file

by Steven Michael

 

11 Mar 2005 (Updated 19 Sep 2005)

Code covered by the BSD License  

read_dxf will load an ASCII dxf file into MATLAB.

Download Now | Watch this File

File Information
Description

Note: this project has been made obsolete. See the "model3d" project also on the file exchange for a more comprehensive 3D import package.

read_dxf loads facet information from an ASCII DXF file into MATLAB. It does not currently load color or texture information.

Usage:
dxf = read_dxf('dxf_filename');

The output is a Nx3x3 variable. The first index, N, references the facet number. The second index references the three vertices of each facet. The final index is the (x,y,z) location of the vertex.

I have also included a function "surfdxf" as an example of displaying the file.

The code uses a C++ class for DXF processing and is a compiled MATLAB function. The source and executables for Windows and Linux are included. For other platforms, the Makefile can be easily modified. I've also included the MS Visual Studio solution for compiling in Windows.

MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements compiled MATLAB functions are included for Windows and Linux only.
Zip File Content  
Other Files
read_dxf/Makefile,
read_dxf/read_dxf.mexglx,
read_dxf/dxf.h,
read_dxf/read_dxf.vcproj,
read_dxf/read_dxf.def,
read_dxf/read_dxf.cpp,
read_dxf/read_dxf.dll,
read_dxf/read_dxf.ncb,
read_dxf/read_dxf.sln,
read_dxf/read_dxf.suo,
read_dxf/dxftoken.h,
read_dxf/dxf.cpp,
read_dxf/read_dxf.m,
read_dxf/README.txt,
read_dxf/surfdxf.m,
read_dxf/dxftoken.cpp
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
19 Apr 2005 hu jin

i hope to see your full text in the file read_dxf.m . That could be more helpful.

17 Sep 2005 Gareth Swarbrick

Using this on a Mac I used to mex to successfully create a mex library. However, read_dxf returns a blank on all the DXFs I have tried...Next stop - source code.

28 Sep 2005 Andrea Thirchi

There is progecti in Visual C++ 6.0 ??

Please login to add a comment or rating.
Updates
19 Sep 2005

update the description

Tag Activity for this File
Tag Applied By Date/Time
graphics import Steven Michael 22 Oct 2008 07:43:09
graphics export Steven Michael 22 Oct 2008 07:43:09
dxf Steven Michael 22 Oct 2008 07:43:09
import Steven Michael 22 Oct 2008 07:43:09
cad Steven Michael 22 Oct 2008 07:43:09
utilities Steven Michael 22 Oct 2008 07:43:09
 

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