Vadoola / dxf2elmt

A CLI program to convert .dxf to .elmt
MIT License
0 stars 1 forks source link

Shape Testing to simplify some objects #15

Open Vadoola opened 1 week ago

Vadoola commented 1 week ago

This would be a complicated feature, but some polygons or circles could be represented as single objects within QET, like a single polygon or ellipse, but in the dxf are represented as multiple splines. It would be nice if instead of the converted element file having a bunch of spline, it corrected these to the proper element types. This would simplify the element and likely improve performance (of QET with the converted element file) but would add significant complexity to dxf2elmt.

In order to do this I need to look at objects as a group and try to determine the shape, as the number of objects in the dxf increase you would get combinatorial growth of the processing needed to check.

I could try and start with an easier route. After I get clean up and get the block importing finalized I could try and do some shape testing for circles made of splines etc, just within each block. This would reduce the number of combinations that need to be processed.