开发者

How to combine multiple GeometryGroup objects?

开发者 https://www.devze.com 2023-02-25 19:36 出处:网络
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 o

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

精彩评论

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