Forum Index > Projects > Egg-Bot
 eggbot_hatch.py
 |  Printable Version
By: Anonymous: chaudhary paresh () on Thursday, May 24 2012 @ 11:56 PM PDT (Read 1188 times)  
Anonymous: chaudhary paresh

i am using inkscape on linux platform. with the help of
eggbot_hatch.py i can do hatch with successfully.


First write abc string on inkscape and generate svg file.
After doing hatch on same string and also save svg file.

i have send two file in attachment.

With out hatch i got coordinate order like

M 362.45312,387.16467 ..... (a)
M 398.80469,387.25842 .... (b)
M 429.32031,375.1178 ..... (c)

With the hatch apply on same string i got coordinate order like


M 398.80469,387.25842 C ........... (b)
M 380.80089,363.89124 ............ (hatch on char 'b' )
M 362.45312,387.16467 .........................(a)
M 350.80089,387.05008 .................. (hatch on char 'a' )
M 429.32031,375.1178 ............... (c)
M 408.80089,384.11055 .............(hatch on char 'c' )


you can see all coordinate not in right format.



i want coordinate with hatch like

M 362.45312,387.16467 .........................(a)
M 350.80089,387.05008 .................. (hatch on char 'a' )
M 398.80469,387.25842 C ........... (b)
M 380.80089,363.89124 ............ (hatch on char 'b' )
M 429.32031,375.1178 ............... (c)
M 408.80089,384.11055 .............(hatch on char 'c' )





       
   
By: dnewman (offline) on Friday, May 25 2012 @ 08:16 AM PDT  
dnewman

Quote by: chaudhary paresh

i am using inkscape on linux platform. with the help of
eggbot_hatch.py i can do hatch with successfully.


First write abc string on inkscape and generate svg file.
After doing hatch on same string and also save svg file.

i have send two file in attachment.

With out hatch i got coordinate order like

M 362.45312,387.16467 ..... (a)
M 398.80469,387.25842 .... (b)
M 429.32031,375.1178 ..... (c)

With the hatch apply on same string i got coordinate order like


M 398.80469,387.25842 C ........... (b)
M 380.80089,363.89124 ............ (hatch on char 'b' )
M 362.45312,387.16467 .........................(a)
M 350.80089,387.05008 .................. (hatch on char 'a' )
M 429.32031,375.1178 ............... (c)
M 408.80089,384.11055 .............(hatch on char 'c' )


you can see all coordinate not in right format.



i want coordinate with hatch like

M 362.45312,387.16467 .........................(a)
M 350.80089,387.05008 .................. (hatch on char 'a' )
M 398.80469,387.25842 C ........... (b)
M 380.80089,363.89124 ............ (hatch on char 'b' )
M 429.32031,375.1178 ............... (c)
M 408.80089,384.11055 .............(hatch on char 'c' )



There is no hidden switch in eggbot_hatch.py to bring about the behavior you seek.

The order you see things in your screen and/or drew them is not necessarily the order they are when a tree traversal is done of the XML structure in the SVG file. The result you are seeing will relate the ordering which resulted from that traversal. You may be able to counter this by setting the order of objects in the SVG (bringing elements forward or pushing them back). If that doesn't work, then you will need to re-write eggbot_hatch.py to suit your needs or write an extension to post process its output.

Regards,
Dan


Cow Canyon Saddle Clear Sky Chart


Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 09/08/10
Posts: 149
Mt. Baldy,
California

Profile Email    
   



 All times are PDT. The time is now 06:52 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?