GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DXF-G(1) BRL-CAD DXF-G(1)

dxf-g - DXF Translator (DXF to BRL-CAD)

dxf-g [-c] [-d] [-v] [-s scale_factor] [-t tolerance] file.dxf database.g

dxf-g converts the specified file.dxf to a BRL-CAD database.g file.

The following options are available:

-c

Only the first color seen for a layer should be used. Without this option, layers may be broken into separate BOT primitives according to color assigned.

-d

Sets a debug flag. The only effect is to cause a core dump on failure. This is probably not useful except for developers.

-v

Produces very verbose output on stderr.

-s scale_factor

Provides a scale factor to be applied to the DXF input. This can be used for DXF files that do not provide units information.

-t tolerance

Specifies the maximum distance (in mm) between two vertices at which the two vertices will be considered to be the same vertex.

The file.dxf file is expected to be in the ASCII Autodesk DXF format as defined in the Autocad 2006 manuals. This converter handles entities of types:

POLYLINE LWPOLYLINE LEADER DIMENSION VERTEX LINE CIRCLE ARC ELLIPSE 3DFACE TEXT MTEXT ATTRIB SOLID SPLINE

The POLYLINE entities in AUTOCAD are actually a container for numerous different entity types. The types of POLYLINE entities converted include:

3D polylines; 3D polygon meshes; polyface meshes

SOLID entities are 2D shapes with a solid fill, but this converter does not do any filling. Each layer is converted to a separate object. Colors are also converted.

$ dxf-g sample.dxf sample.g

http://images.autodesk.com/adsk/files/dxf_format.pdf

Error messages are intended to be self-explanatory.

BRL-CAD Team

This software is Copyright (c) 1993-2019 by the United States Government as represented by U.S. Army Research Laboratory.

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
06/07/2022 BRL-CAD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.