请大家翻译这段话
WIND_EVEN_ODD
public static final int WIND_EVEN_ODDThe winding rule constant for specifying an even-odd rule for determining the interior of a path. The even-odd rule specifies that a point lies inside the path if a ray drawn in any direction from that point to infinity is crossed by path segments an odd number of times.
问题点数:80、回复次数:8Top
1 楼kinzey34(无声之舞)回复于 2003-12-03 17:58:18 得分 0
英文高手都到哪里去了?顶Top
2 楼Shrewdcat(丧邦&灵猫&潇)回复于 2003-12-03 18:21:31 得分 0
The winding rule constant for specifying an even-odd rule for determining the interior of a path.
WIND_EVEN_ODD 是一个规则迭代常量,专门用来决定一个路径内部的古怪行为的一个规则。Top
3 楼Shrewdcat(丧邦&灵猫&潇)回复于 2003-12-03 18:22:39 得分 0
好象没有结合语境,翻译的有点生硬。Top
4 楼zhang21cnboy(事了抚衣去,不留身与名)回复于 2003-12-03 18:25:32 得分 20
我翻译一下了。这好像是一个拓扑算法的。主要是描述判断一个点是否在一个面内的方式,也就是奇数规则。
根据我的理解就是这样的:
奇数规则,就是从一点,在任意方向画直线,而这条直线和多边形的所有的边的交点数之和如果是奇数,就说明该点在这个面内,如果是偶数,就不再这个面内。
Top
5 楼zhang21cnboy(事了抚衣去,不留身与名)回复于 2003-12-03 18:26:37 得分 0
呵呵,上面的path,应该理解为面,如果理解为路径,可能不够恰当。Top
6 楼rubyz(左思右想)回复于 2003-12-03 19:09:27 得分 60
这里path是线的概念,可以是直线、二维曲线、三维曲线。
The even-odd rule specifies that a point lies inside the path if a ray drawn in any direction from that point to infinity is crossed by path segments an odd number of times.
大概意思是:
奇偶规则是指有一条曲线和一个点,如果从这个点出发的任意方向的无限长射线中,有一条射线被这条曲线分割奇数次,我们就认为这个点是在这条曲线内部。Top
7 楼rubyz(左思右想)回复于 2003-12-03 19:10:54 得分 0
不知道是不是出自这里java.awt.geom.GeneralPath
public final class GeneralPath
extends Object
implements Shape, Cloneable
The GeneralPath class represents a geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves. It can contain multiple subpaths.
The winding rule specifies how the interior of a path is determined. There are two types of winding rules: EVEN_ODD and NON_ZERO.
An EVEN_ODD winding rule means that enclosed regions of the path alternate between interior and exterior areas as traversed from the outside of the path towards a point inside the region.
A NON_ZERO winding rule means that if a ray is drawn in any direction from a given point to infinity and the places where the path intersects the ray are examined, the point is inside of the path if and only if the number of times that the path crosses the ray from left to right does not equal the number of times that the path crosses the ray from right to left.
--------------------------------------------------------------------------------
Field Summary
static int WIND_EVEN_ODD
An even-odd winding rule for determining the interior of a path.
static int WIND_NON_ZERO
A non-zero winding rule for determining the interior of a path.
Top
8 楼raulhhf(枫情傲月)回复于 2003-12-03 23:36:02 得分 0
zhang21cnboy(事了抚衣去,不留身与名) 的解释我觉得:我太不清楚,画了几个图好像都不对,也许是我理解错误;
rubyz(左思右想) 的解释我觉得解释的比较清楚,也画得出来
所以我这样给分Top




