twenzel / cgm Goto Github PK
View Code? Open in Web Editor NEWConverts, imports and exports CGM graphics
License: MIT License
Converts, imports and exports CGM graphics
License: MIT License
PolygonSet's ReadFromBinary method first reads edgeOutFlag then reads points. According to ISO 8632-1 (page 164), it should be the other way around. Could not create a pull request due to permissions.
Btw, great work, thanks for all the effort!
Hi,
I was using your software to convert some CGMs to clear text, but I have some issues with the CGMs that contain an embedded image inside.
See below an example:
CGM2clearText.zip
The _clearText cgm appears to be converted to clear text, but when I open it this is what I see:
ColourTable's GetColor method adds the StartIndex to the given argument index. It causes ArgumentOutOfIndex exception. Shouldn't it be a subtraction?
On loading a binary WebCGM which contains a BITONALTILE
in a BEGTILEARRAY
the library throws an exception Error on EnsureAllArgumentsWereRead in BitonalTile command for file 'xx'!
The total size of the file is 9.144 Bytes, so I assume that the file size is not the issue.
The Stacktrace is listed below:
at codessentials.CGM.Commands.Command.Assert(Boolean isCorrect, String errorMessage) in C:\Users\teuchert_d\source\github\CGM\src\Commands\Command.cs:line 282 at codessentials.CGM.Import.DefaultBinaryReader.EnsureAllArgumentsWereRead() in C:\Users\teuchert_d\source\github\CGM\src\Import\DefaultBinaryReader.cs:line 227 at codessentials.CGM.Import.DefaultBinaryReader.ReadCommand() in C:\Users\teuchert_d\source\github\CGM\src\Import\DefaultBinaryReader.cs:line 343 at codessentials.CGM.Import.DefaultBinaryReader.ReadCommands() in C:\Users\teuchert_d\source\github\CGM\src\Import\DefaultBinaryReader.cs:line 64 at codessentials.CGM.BinaryCgmFile.ReadData(Stream stream) in C:\Users\teuchert_d\source\github\CGM\src\BinaryCGMFile.cs:line 98 at codessentials.CGM.BinaryCgmFile.ReadData(String fileName) in C:\Users\teuchert_d\source\github\CGM\src\BinaryCGMFile.cs:line 106 at codessentials.CGM.BinaryCgmFile..ctor(String fileName) in C:\Users\teuchert_d\source\github\CGM\src\BinaryCGMFile.cs:line 32 at CgmReader.Services.CgmReader.ConvertBinaryToTextCgmFile(String filePath, Boolean storeFile) in C:\Users\teuchert_d\source\CgmReader\CgmReader.Core\Services\CgmReader.cs:line 21 at CgmReader.Program.Main(String[] args) in C:\Users\teuchert_d\source\CgmReader\CgmReader\Program.cs:line 44
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.