• 4833阅读
  • 5回复

如何得到PainterPath和QLineF的所有交点 [复制链接]

上一主题 下一主题
离线sbtree
 
只看楼主 倒序阅读 楼主  发表于: 2009-03-16
在一个PainterPath中加入了一些曲线,想得到曲线跟另外一条直线的交点,试了一下PainterPath的intersected函数,取不到,不知道有没有别的方法
windows 7 + VC++2008 + Qt4.5.2
离线yooi
只看该作者 1楼 发表于: 2009-03-17
Step A, intersected(...) find out all of the focal points
Step B, elementCount() num of points
Step C, traversal all the points by elementAt(int)
离线sbtree
只看该作者 2楼 发表于: 2009-03-17
引用第1楼yooi于2009-03-17 13:23发表的  :
Step A, intersected(...) find out all of the focal points
Step B, elementCount() num of points
Step C, traversal all the points by elementAt(int)

thank you for your answer. But i does not work. I put  the line into another PainterPath and use intersected() function, but the PainterPath which is returned by intersected() function is always empty. Do you have other ideas?
windows 7 + VC++2008 + Qt4.5.2
离线sbtree
只看该作者 3楼 发表于: 2009-03-17
an interesting phenomena is that the intersects() function returns true if i call it. I cannot understand ???!!!
windows 7 + VC++2008 + Qt4.5.2
离线whisper215
只看该作者 4楼 发表于: 2009-03-19
……
my god, why should we communicate with each other in English?
离线sbtree
只看该作者 5楼 发表于: 2009-03-19
实在不好意思,1楼回帖写的英语,也就跟着来了。
目前这个问题还是没有得到解决,期待回复。。。。。。
windows 7 + VC++2008 + Qt4.5.2
快速回复
限100 字节
 
上一个 下一个