Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DWG drawing integrity #513

Open
kromanenko opened this issue Apr 10, 2015 · 4 comments
Open

DWG drawing integrity #513

kromanenko opened this issue Apr 10, 2015 · 4 comments
Labels
bug An error which causes unexpected or unintended results import error A bug affecting the import of drawings needs work A request that cannot be completed until action is taken

Comments

@kromanenko
Copy link

I tried to open my drawing of my bike.
Looks that many curves from MAIN and THIN layers are lost while opening.
This drawing made of lines, arcs, circles and splines.

Actual:
librecad - -home-kromanenko-cb125e_right_publish dwg _030

Near expected. Autodesk online viewer also failed two show some arcs of front wheel rim :)
a360 viewer - google chrome_031
Also result from another online viewer:
https://gallery.proficad.eu/tools/SrvImg.ashx?p=2015-04-10_15-48-35_0797%2fdrw.Full.png
Drawing is also available: https://drive.google.com/file/d/0B8cQdxA1Np1PR3FoZDhDWm13VTA/view?usp=sharing

Built on commit 7e655c9 under Ubuntu 14.04 LTS.

@Rallaz
Copy link
Contributor

Rallaz commented Apr 10, 2015

To solve this "problem" are required math spline.

Added a hack to solve initialy.
spline1

@kromanenko
Copy link
Author

It works much better. Only small spline in aft lights part remained invisible.
librecad - -kromanenko-downloads-cb125e_right_publish dwg _032
Also I tried it in DraftSight for reference. As far as i concerned it has officially licensed DWG support from Autodesk to Dassault.

Environment: branch head was reset to 90e2c72 "add hack to pass fit point as control point"

@Rallaz
Copy link
Contributor

Rallaz commented Apr 14, 2015

Really all splines are read ok, but have a difference in dxf to dwg
I think:

Rational spline (nurbs) in Dxf flag 12, and a list of control points
In Dwg flag 12, and a list of knot points and control points
Non-rational (bezier) in Dxf flag 8, and a list of knot points, control points and fit points
In Dwg flag 8, and only a list of fit points

The missing spline have only 3 fit points and require 5 control points to show

To solve are required a function to calculate the five control point using the 3 fit points stored in dwg

@r-a-v-a-s r-a-v-a-s added the import error A bug affecting the import of drawings label Aug 10, 2015
@shawncurry shawncurry added bug An error which causes unexpected or unintended results fixed A bug that has been fixed and removed fixed A bug that has been fixed labels May 19, 2019
@DuncanLithgow
Copy link

DuncanLithgow commented Jan 30, 2021

I don't see anything for a bug report here. @Rallaz is this actually a bug? If Autodesks own reader shows the same problem then this is hardly a bug in LibreCAD. Please re-open this issue if there is a bug in the latest version of LibreCAD. Otherwise this looks like something for the forum.

@DuncanLithgow DuncanLithgow reopened this Jan 30, 2021
@DuncanLithgow DuncanLithgow added the needs work A request that cannot be completed until action is taken label Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error which causes unexpected or unintended results import error A bug affecting the import of drawings needs work A request that cannot be completed until action is taken
Projects
None yet
Development

No branches or pull requests

5 participants