40 #include "glimports.h"
44 #include "gridvertex.h"
45 #include "gridtrimvertex.h"
49 #include "trimregion.h"
67 if( lfirst->param[0] <= llast->param[0] ) {
68 fakeleft.init( left.first() );
69 upper.left = &fakeleft;
72 fakeleft.init( left.last() );
73 lower.left = &fakeleft;
79 if( top.ustart <= top.uend ) {
81 upper.index = top.ustart;
85 if( bot.ustart <= bot.uend ) {
87 lower.index = bot.ustart;
93 if( rfirst->param[0] <= rlast->param[0] ) {
94 fakeright.init( right.last() );
95 lower.right = &fakeright;
98 fakeright.init( right.first() );
99 upper.right = &fakeright;
100 lower.right = &right;
102 upper.right->first();
119 gv->set( upper.left->prev() );
120 if( gv->isTrimVert() )
return gv;
125 assert( upper.index <= upper.line->uend );
126 gv->set( uarray.uarray[upper.index], upper.line->vval );
127 gv->set( upper.index, upper.line->vindex );
128 if( upper.index++ == upper.line->uend ) upper.line = 0;
133 gv->set( upper.right->next() );
134 if( gv->isTrimVert() )
return gv;
145 gv->set( lower.left->next() );
146 if( gv->isTrimVert() )
return gv;
151 gv->set( uarray.uarray[lower.index], lower.line->vval );
152 gv->set( lower.index, lower.line->vindex );
153 if( lower.index++ == lower.line->uend ) lower.line = 0;
158 gv->set( lower.right->prev() );
159 if( gv->isTrimVert() )
return gv;