这里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. 大概意思是: 奇偶规则是指有一条曲线和一个点,如果从这个点出发的任意方向的无限长射线中,有一条射线被这条曲线分割奇数次,我们就认为这个点是在这条曲线内部。
不知道是不是出自这里java.awt.geom.GeneralPathpublic 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.
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.
大概意思是:
奇偶规则是指有一条曲线和一个点,如果从这个点出发的任意方向的无限长射线中,有一条射线被这条曲线分割奇数次,我们就认为这个点是在这条曲线内部。
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.
所以我这样给分