开发者

How to combine multiple GeometryGroup objects?

I have 2 different GeometryGroup collections that I want to composite, but couldn't find anything on the net for this. Any i开发者_JAVA技巧deas on how to do this?


You'll need to add the Children of one collection into the other, or build a third, new GeometryGroup which does a union of both children. For example:

GeometryGroup newGroup = new GeometryGroup();
foreach(var child in group1.Children.Union(group2.Children)) 
   newGroup.Children.Add(child);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜