skymakerolof / dxf

DXF parser for node/browser
https://www.npmjs.com/package/dxf
MIT License
330 stars 122 forks source link

HATCH block cannot be parsed #114

Open gurolca opened 1 year ago

gurolca commented 1 year ago

HATCH entities cannot be seen in the parsed entities for a sample R14 DXF file in dxf library version 4.7.0

An example hatched object in the drawing

image

Raw DXF file part image

The sample DXF file (zipped). 0607_B.dxf.zip

Is it possible to review and improve hatch.js file for this case?

hschmiedhofer commented 1 year ago

Same problem here with v5.0.0. I'm somewhat confused because README says that HATCH entities are being parsed, at least to some extent. Also, there's a hatch.js doing export const TYPE = 'HATCH' .

Is it possible to parse R14 HATCH entities or not?

hschmiedhofer commented 1 year ago

@gurolca did you find a way to parse your HATCHes in the meantime?

ieskudero commented 1 year ago

@hschmiedhofer hatches should be supported from some time ago. I tryed to draw your sample file and it looks like is parsed correctly:

parsed with this library and drawn with ThreeJS: imagen

Drawn using DraftSight: imagen

Can you specify what is missing in the parser?