vagran / dxf-viewer

DXF 2D viewer written in JavaScript
Mozilla Public License 2.0
290 stars 86 forks source link

Are the coordinates of the loaded dxf drawings consistent with those of cad? #89

Closed zcloudyun closed 7 months ago

zcloudyun commented 8 months ago

Are the coordinates of the loaded dxf drawings consistent with those of cad?

vagran commented 8 months ago

three.js scene coordinates corresponds to DXF model space coordinates with some offset applied (DXF scene origin). They can be converted to DXF model space by adding scene origin, which can be obtained by viewer.GetOrigin() method.