Add support for legacy AutoCAD R14 ASCII DWF - #1
Merged
Merged
Conversation
Contributor
Author
|
Final verification complete.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
The customer drawing is a pre-DWF-6 readable WHIP!/W2D stream (
DWF V00.34) produced by AutoCAD R14, not a ZIP-based DWF 6+ package. The loader correctly recognized it as text, but the existing textual fallback was line-oriented and only understood fixture-style commands. It therefore could not parse real compact WHIP opcodes or counted point sets that continue across physical lines.Fix
C,L,P,T,M,F/f, andV/vopcodes.Tpolytriangle strips with alternating winding and degenerate-strip handling.Ppolygons from unfilled polylines.dwfdocuments rather than unknown text.Regression coverage
The proprietary Mercedes-Benz drawing remains local and is not committed. A synthetic
DWF V00.34fixture covers multiline point sets, palette/background handling, triangle strips, fill state, markers, visibility, and hidden URL geometry.Production validation asserts:
polyline: 3,polygon: 3,rect: 2;Customer-file verification
dwf;w2d-text;Local checks