You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is defined by three.jsOrthographicCamera which can be obtained by viewer.GetCamera(). Three.js world space is DXF model space with some offset applied, scale is not changed, so you can use something like (camera.right - camera.left) / canvasWidth to get model units per pixel.
This is defined by three.jsOrthographicCamera which can be obtained by viewer.GetCamera(). Three.js world space is DXF model space with some offset applied, scale is not changed, so you can use something like (camera.right - camera.left) / canvasWidth to get model units per pixel.
Please accept my best thanks. I will try use viewer.GetCamera() in my project. It would be great to provide this method by dxf-viewer. Thanks again for your reply
The dxf is vector illustration, how to compute scale in dxf-viewer when we change the viewer size?
The text was updated successfully, but these errors were encountered: