使用 PathIterator 返回约束区域的所有线段?
在 Java 中,如何使用 PathIterator
迭代约束 区域
? Area
仅由线条界定(但曲线支持不会造成影响)。
该方法应返回所有线段的集合。
In Java, how would one employ PathIterator
to iterate through the line segments that constrain an Area
? The Area
is bound only by lines (but curve support wouldn't hurt).
The method should return a collection of all the line segments.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有效(我相信在所有情况下),但可能需要更彻底的测试:
This works (in all situations, I believe), but it might require more thorough testing: