Finding if a path contains a given point
Hong Yip <[email protected]> Sun, 29 Apr 2018 15:19:14 -0700
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <CAGqnEWra=mMvE1qV6tpVoMHosPwt0=FX_=P=r6bs_Zie4qwZHQ@mail.gmail.com> |
--0000000000009a38ca056b0420cd Content-Type: text/plain; charset="UTF-8" Hey folks, Is there a way via Batik to determine if a point is inside a given closed SVG path? I had a look at PathParser, but it doesn't seem to have a what I need. I also considered sampling the path and creating a polygon (since seeing if a point is in a polygon ought to be simpler), but that's not exactly a trivial operation :) --0000000000009a38ca056b0420cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><span style=3D"color:rgb(34,34,34);font-family:arial,sans-= serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font= -variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start= ;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;ba= ckground-color:rgb(255,255,255);text-decoration-style:initial;text-decorati= on-color:initial;float:none;display:inline">Hey folks,</span><div style=3D"= color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-styl= e:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight= :400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:= none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);= text-decoration-style:initial;text-decoration-color:initial"><br></div><div= style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px= ;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-= transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255= ,255,255);text-decoration-style:initial;text-decoration-color:initial">Is t= here a way via Batik to determine if a point is inside a given closed SVG p= ath?=C2=A0 I had a look at=C2=A0<span style=3D"color:rgb(34,34,34);font-fam= ily:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatur= es:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;te= xt-align:start;text-indent:0px;text-transform:none;white-space:normal;word-= spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial= ;text-decoration-color:initial;float:none;display:inline">PathParser, but i= t doesn't seem to have a what I need. I also considered sampling the pa= th and creating a polygon (since seeing if a point is in a polygon ought to= be simpler), but that's not exactly a trivial operation :)</span></div= ><br></div> --0000000000009a38ca056b0420cd--