以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- [求助]Combine 2 shape to 1... (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=36628) |
-- 作者:neslindy -- 发布时间:8/10/2006 11:24:00 AM -- [求助]Combine 2 shape to 1... [color=#0099FF][/color]Help Help....How to combine two shape (ex. two polygon) into one shape(polygon)...like union two shapes.... thanks... |
-- 作者:upc2neiep -- 发布时间:8/11/2006 9:46:00 AM -- I do not all understand what you mean.However,if combine the two shape into the <g> element,do you satisfy these result?
|
-- 作者:neslindy -- 发布时间:8/11/2006 10:17:00 AM -- Thanks for ur reply.... Sorry..maybe i don state clearly..... giv an example like i draw two polygon.... <polygon points="150,50 150,300 180,300 180,50" fill="blue" stroke="black" /> <polygon points="80,120 250,120 250,150 80,150" fill="blue" stroke="black" /> then when i select both this two polygon then i hope to get a new cross shape polygon... i oso want the point of the new created polygon.... Did u all understand what i mean?? It is like function union in Inkscape..... how to do this o..... help help... |
-- 作者:welfred -- 发布时间:8/11/2006 10:45:00 AM -- Add an element <g>? <g> <polygon points="150,50 150,300 180,300 180,50" fill="blue" stroke="black" /> <polygon points="80,120 250,120 250,150 80,150" fill="blue" stroke="black" /> </g>
|
-- 作者:upc2neiep -- 发布时间:8/11/2006 12:09:00 PM -- If you want to achive a new polygon,you should implement the function what can get the point of intersection.Maybe these need the knowledge about graphic, especially in the state of filling |
-- 作者:neslindy -- 发布时间:8/11/2006 12:10:00 PM -- thanks... but but g element only can group them together but can't be one polygon only o.... cos at last i want a polygon like this... <polygon points="80,120 150,120 150,50 180,50 180,120 250,120 250,150 180,150 180,300 150,300 150,150 80,150" fill="blue" stroke="black" /> very difficult o.... |
-- 作者:upc2neiep -- 发布时间:8/11/2006 12:12:00 PM -- you maybe refer some classic algorithmic of the graphic.sorry, i have forget all of.. |
-- 作者:neslindy -- 发布时间:8/11/2006 12:27:00 PM -- thanks... yaya....i want the function which can get the point of intersection. Can anybody help me mah?? i need to union that two polygon(maybe more than two polygon, 3 or 4 or 5 polygon)..... please help me.... |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |