Imports AutoCAD DXF documents — the open ASCII (or binary)
sibling of DWG — as SceneModels. Strokes from LINE /
LWPOLYLINE / CIRCLE / ARC, fills from 3DFACE, recursive INSERT
block expansion, TEXT / MTEXT rasterised as textured quads.
DXF is open ASCII and the SDK parses it in-tree — no third-party
library or adapter to wire. The parser lives in
./versions/v1_0/parse.ts; DXFLoader is a thin façade.
Internally the parser builds a DWGDocument and hands it
to the shared DWG emission pipeline (so DXF and DWG share their
entire SceneModel-emit code path — only the parser differs).
Pair-wise with the loader, DXFExporter writes a
SceneModel back out as ASCII DXF (AutoCAD R2000-compatible).
Triangle meshes become 3DFACE entities, line meshes become
LINEs, point meshes become POINTs; one DXF LAYER per
SceneObject. Per-mesh colour round-trips via DXF's true-colour
group code 420.
xeokit AutoCAD DXF Loader
Imports AutoCAD DXF documents — the open ASCII (or binary) sibling of DWG — as
SceneModels. Strokes from LINE / LWPOLYLINE / CIRCLE / ARC, fills from 3DFACE, recursive INSERT block expansion, TEXT / MTEXT rasterised as textured quads.DXF is open ASCII and the SDK parses it in-tree — no third-party library or adapter to wire. The parser lives in
./versions/v1_0/parse.ts; DXFLoader is a thin façade. Internally the parser builds a DWGDocument and hands it to the shared DWG emission pipeline (so DXF and DWG share their entire SceneModel-emit code path — only the parser differs).Usage
Exporting a SceneModel as DXF
Pair-wise with the loader, DXFExporter writes a SceneModel back out as ASCII DXF (AutoCAD R2000-compatible). Triangle meshes become
3DFACEentities, line meshes becomeLINEs, point meshes becomePOINTs; one DXF LAYER per SceneObject. Per-mesh colour round-trips via DXF's true-colour group code 420.