Hi Jan,

I'm not sure if I quite understand your scenario, but a couple of quick 
responses: first of all a path can have multiple M subcommands:

<path d="M 100,350 300,100 500,350 z
M 250,320 250,220 350,220 350,320 z"
fill="#ff8" stroke="black" stroke-width="15" fill-rule="evenodd"/> 

draws a triangle with a square hole in the middle. The background will shine 
through the hole as though it is transparent.

While there has been some discussion of clipping paths with inversed 
functionality (I don't know if the SVG WG has taken up the issue or not -- 
though it would make sense) -- in the meantime, we do have <mask> that enables 
that and more.

hope this helps.

David
  ----- Original Message ----- 
  From: honyk 
  To: [email protected] 
  Sent: Friday, January 07, 2011 6:29 PM
  Subject: [svg-developers] Divide objects below the specified path


    
  Hello Everyone,

  I am trying to create a transparent shape (a circle like polygon consisted
  of straight lines) in my complex SVG graphics in my web app. It is not
  possible to use the common scenario and create it as a single path with
  several closed countours with a different direction. 

  The only solution I can imagine is something like the Adobe Illustrator's
  function 'Divide objects below' and then deleting the resulted fragments in
  the hole area.

  Has Batik or any other library any features for clipping different types of
  objects in SVG (circles, Bezier curves, straight lines) to the given shape?
  Can I iterate the resulted closed contours and check if the given coordinate
  is located inside them? A Java library is preferred.

  Btw, it would be much easier with clipping paths with inversed
  functionality...

  Regards,

  Jan



  

[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to