will inkscape satisfy my requirement , i need some advice about choosing SVG editor for cading ...
HI I should write a new application to handle some graphical requirement , now i have come here to ask you about it and i would be happy to get your advice Here is almost a complete description of my requirement I should develop an application to control a marking machine , A marking machine is a machine capable of marking some shapes / texts on metal, wood, glass surfaces. the requirement for project is : 1-the GUI interface should be capable to draw cad shapes , things like : Circle , Polygon ,.... . I read the SVG spec and i find that SVG itself has all shapes that i need as basic elements. so my first requirement is satisfied with any OSS Graphical SVG editor. 2-second feature is , CAD like capabilities , there should be some kind of ruler , Grid to guide the users about what they are drawing and a precision about 1/10 mm . 3-one thing that is very important is , software should be able to return all points in the drawing pane , for more explanation : imagine that i draw a line on the GUI interface (in drawing pane) , now i should be able to retrieve all of its points , or at least all important points (Start and END). by all points i mean the pixels or logical points that are arranged side by side to produce the shape. for example a circle could be produced by an 80 side polygon , i should be able to retrieve each side (which is a line) start and end coordination. 4-This requirement is something that made me crazy right now -i developed an application with Delphi but i stopped with texts there is no way that i can find al points that produce some parts of a character in Delphi and graphical pane that i used for drawing- The software that I'm going to start and complete in *Java/C++/.... *based on one of the available OSS editor should be able to give me important points or all drawing points of texts that are reside on its visual editor. for example , you imagine that some one need to mark an HLM on one of its metal surface , he/she come to my software and write that characters on graphical editor pane , s/he change is font... and then press the Mark button , Now i should be able to retrieve all points that created H (or all important points that one can create H using them and some simple drawing algorithms) and send them to Serial port and from there to mechanical sections of machine. right now all section of machine are complete , my Delphi software can communicate with it (I simply can arrange a java or C++ software to communicate with my hardware controller)
Now my question for help is more clear , so i would welcome any comment / help / advice on this topic
I should say that , i find some suitable DXF library in Java which i can use to import DXF files into my java application , I know XML processing so processing SVG files would not be so hard for me to learn.
Hi Legolas,
Couldn't you simply generate a bitmap from the SVG at whatever resolution matches your device (without anti-aliasing), and then pull all your points out of that?
Bryce
On Tue, Feb 07, 2006 at 02:51:49AM +0330, Legolas Woodland wrote:
HI I should write a new application to handle some graphical requirement , now i have come here to ask you about it and i would be happy to get your advice Here is almost a complete description of my requirement I should develop an application to control a marking machine , A marking machine is a machine capable of marking some shapes / texts on metal, wood, glass surfaces. the requirement for project is : 1-the GUI interface should be capable to draw cad shapes , things like : Circle , Polygon ,.... . I read the SVG spec and i find that SVG itself has all shapes that i need as basic elements. so my first requirement is satisfied with any OSS Graphical SVG editor. 2-second feature is , CAD like capabilities , there should be some kind of ruler , Grid to guide the users about what they are drawing and a precision about 1/10 mm . 3-one thing that is very important is , software should be able to return all points in the drawing pane , for more explanation : imagine that i draw a line on the GUI interface (in drawing pane) , now i should be able to retrieve all of its points , or at least all important points (Start and END). by all points i mean the pixels or logical points that are arranged side by side to produce the shape. for example a circle could be produced by an 80 side polygon , i should be able to retrieve each side (which is a line) start and end coordination. 4-This requirement is something that made me crazy right now -i developed an application with Delphi but i stopped with texts there is no way that i can find al points that produce some parts of a character in Delphi and graphical pane that i used for drawing- The software that I'm going to start and complete in *Java/C++/.... *based on one of the available OSS editor should be able to give me important points or all drawing points of texts that are reside on its visual editor. for example , you imagine that some one need to mark an HLM on one of its metal surface , he/she come to my software and write that characters on graphical editor pane , s/he change is font... and then press the Mark button , Now i should be able to retrieve all points that created H (or all important points that one can create H using them and some simple drawing algorithms) and send them to Serial port and from there to mechanical sections of machine. right now all section of machine are complete , my Delphi software can communicate with it (I simply can arrange a java or C++ software to communicate with my hardware controller)
Now my question for help is more clear , so i would welcome any comment / help / advice on this topic
I should say that , i find some suitable DXF library in Java which i can use to import DXF files into my java application , I know XML processing so processing SVG files would not be so hard for me to learn.
Bryce Harrington wrote:
Hi Legolas,
Couldn't you simply generate a bitmap from the SVG at whatever resolution matches your device (without anti-aliasing), and then pull all your points out of that?
Bryce
I should first ask about , whether Drawing capabilities of InKscape are enough for me or not. the other thing is : because of system communication speed over Serial port and machine limitation i can not send all points one by one , in most case i should split each shape into several lines and send the lines coordination to hardware.
thank you for the offer.
On Tue, Feb 07, 2006 at 02:51:49AM +0330, Legolas Woodland wrote:
HI I should write a new application to handle some graphical requirement , now i have come here to ask you about it and i would be happy to get your advice Here is almost a complete description of my requirement I should develop an application to control a marking machine , A marking machine is a machine capable of marking some shapes / texts on metal, wood, glass surfaces. the requirement for project is : 1-the GUI interface should be capable to draw cad shapes , things like : Circle , Polygon ,.... . I read the SVG spec and i find that SVG itself has all shapes that i need as basic elements. so my first requirement is satisfied with any OSS Graphical SVG editor. 2-second feature is , CAD like capabilities , there should be some kind of ruler , Grid to guide the users about what they are drawing and a precision about 1/10 mm . 3-one thing that is very important is , software should be able to return all points in the drawing pane , for more explanation : imagine that i draw a line on the GUI interface (in drawing pane) , now i should be able to retrieve all of its points , or at least all important points (Start and END). by all points i mean the pixels or logical points that are arranged side by side to produce the shape. for example a circle could be produced by an 80 side polygon , i should be able to retrieve each side (which is a line) start and end coordination. 4-This requirement is something that made me crazy right now -i developed an application with Delphi but i stopped with texts there is no way that i can find al points that produce some parts of a character in Delphi and graphical pane that i used for drawing- The software that I'm going to start and complete in *Java/C++/.... *based on one of the available OSS editor should be able to give me important points or all drawing points of texts that are reside on its visual editor. for example , you imagine that some one need to mark an HLM on one of its metal surface , he/she come to my software and write that characters on graphical editor pane , s/he change is font... and then press the Mark button , Now i should be able to retrieve all points that created H (or all important points that one can create H using them and some simple drawing algorithms) and send them to Serial port and from there to mechanical sections of machine. right now all section of machine are complete , my Delphi software can communicate with it (I simply can arrange a java or C++ software to communicate with my hardware controller)
Now my question for help is more clear , so i would welcome any comment / help / advice on this topic
I should say that , i find some suitable DXF library in Java which i can use to import DXF files into my java application , I know XML processing so processing SVG files would not be so hard for me to learn.
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&da... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Now i should be able to retrieve all points that created H (or all important points that one can create H using them and some simple drawing algorithms) and send them to Serial port and from there to mechanical sections of machine.
How do you drive the hardware, with an instruction(s) to etch a line from X->Y or to etch a 'dot' at (x,y).
If it's just a dot, then it's a rasterisation problem. You could take the inkscape drawing and export it to a bitmap; then interpret that into your drawing engine.
Off the top of my head, you could also make a smaller bitmap dump of the SVG, and interpret the points as an interconnected mesh. (assuming monochrone), if two adjacent points are black, then you need to etch from X->Y, so you'd map the mesh to the dimensions of the machine, and spit out vectors. (I'm not sure this method works, it requires some more thought, it would probably suffer from missing very thin segments at a pariticlar dimension.)
Ghostscript must have solved this reasterisation problem.
-kt
--
Please consider our environment before printing this email.
WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.
It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.
This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.
Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.
Westpac Banking Corporation ABN 33 007 457 141.
participants (3)
-
Bryce Harrington
-
Kinsley Turner
-
Legolas Woodland