Show
Ignore:
Timestamp:
06/18/2008 04:24:04 PM (2 years ago)
Author:
fernando
Message:

BUG 4204: Wrong (I think) winding rule for geometry collections.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/orbisgis-core/src/main/java/org/orbisgis/renderer/liteShape/GeomCollectionIterator.java

    r4684 r4753  
    6767 * geometry collection. It can be seen as a composite, since uses in fact other, 
    6868 * simpler iterator to carry on its duties. 
    69  *  
     69 * 
    7070 * @author Andrea Aime 
    7171 * @source $URL: 
     
    118118        /** 
    119119         * Creates a new instance of GeomCollectionIterator 
    120          *  
     120         * 
    121121         * @param gc 
    122122         *            The geometry collection the iterator will use 
     
    137137         * Sets the distance limit for point skipping during distance based 
    138138         * generalization 
    139          *  
     139         * 
    140140         * @param distance 
    141141         *            the maximum distance for point skipping 
     
    148148         * Returns the distance limit for point skipping during distance based 
    149149         * generalization 
    150          *  
     150         * 
    151151         * @return the maximum distance for distance based generalization 
    152152         */ 
     
    157157        /** 
    158158         * Returns the specific iterator for the geometry passed. 
    159          *  
     159         * 
    160160         * @param g 
    161161         *            The geometry whole iterator is requested 
    162          *  
     162         * 
    163163         * @return the specific iterator for the geometry passed. 
    164164         */ 
     
    197197         * points, SEG_CUBICTO returns 3 points and SEG_CLOSE does not return any 
    198198         * points. 
    199          *  
     199         * 
    200200         * @param coords 
    201201         *            an array that holds the data returned from this method 
    202          *  
     202         * 
    203203         * @return the path-segment type of the current path segment. 
    204          *  
     204         * 
    205205         * @see #SEG_MOVETO 
    206206         * @see #SEG_LINETO 
     
    222222         * points, SEG_CUBICTO returns 3 points and SEG_CLOSE does not return any 
    223223         * points. 
    224          *  
     224         * 
    225225         * @param coords 
    226226         *            an array that holds the data returned from this method 
    227          *  
     227         * 
    228228         * @return the path-segment type of the current path segment. 
    229          *  
     229         * 
    230230         * @see #SEG_MOVETO 
    231231         * @see #SEG_LINETO 
     
    240240        /** 
    241241         * Returns the winding rule for determining the interior of the path. 
    242          *  
     242         * 
    243243         * @return the winding rule. 
    244          *  
     244         * 
    245245         * @see #WIND_EVEN_ODD 
    246246         * @see #WIND_NON_ZERO 
    247247         */ 
    248248        public int getWindingRule() { 
    249                 return WIND_NON_ZERO; 
     249                return WIND_EVEN_ODD; 
    250250        } 
    251251 
    252252        /** 
    253253         * Tests if the iteration is complete. 
    254          *  
     254         * 
    255255         * @return <code>true</code> if all the segments have been read; 
    256256         *         <code>false</code> otherwise.