JoinGeometryUtils的各个函数详解(通过测试得出结论)

针对两个梁相交的情况

GetJoinedElements(Document document, Element element)

无论是分成两段的梁,或者没有分成两段的梁,都能获取到一条梁,所以这个函数是获取连接的元素

public static bool IsCuttingElementInJoin(Document document, Element firstElement, Element secondElement);

Api中是这样解释的,会让人错以为firstElement剪切使第二条梁断开,其实是firstElement是断开的梁,可以这样理解:firstElement分享共同的面,导致分成两段

True if the secondElement is cut by the firstElement, false if the secondElement
// is cut by the firstElement.

JoinGeometry(Document document, Element firstElement, Element secondElement)

secondElement被分成了两段

猜你喜欢

转载自www.cnblogs.com/GongBlog/p/9268762.html