Lines Matching defs:arc

74  * bezier - construct a bezier arc and attach it to an Arc
79 ArcTessellator::bezier( Arc *arc, REAL s1, REAL s2, REAL t1, REAL t2 )
81 assert( arc != 0 );
82 assert( ! arc->isTessellated() );
85 switch( arc->getside() ) {
109 arc->pwlArc = new(pwlarcpool) PwlArc( 2, p );
115 arc->setbezier();
120 * pwl_left - construct a left boundary pwl arc and attach it to an arc
125 ArcTessellator::pwl_left( Arc *arc, REAL s, REAL t1, REAL t2, REAL rate )
146 arc->makeSide( new(pwlarcpool) PwlArc( nsteps+1, newvert ), arc_left );
150 * pwl_right - construct a right boundary pwl arc and attach it to an arc
155 ArcTessellator::pwl_right( Arc *arc, REAL s, REAL t1, REAL t2, REAL rate )
175 arc->makeSide( new(pwlarcpool) PwlArc( nsteps+1, newvert ), arc_right );
180 * pwl_top - construct a top boundary pwl arc and attach it to an arc
185 ArcTessellator::pwl_top( Arc *arc, REAL t, REAL s1, REAL s2, REAL rate )
205 arc->makeSide( new(pwlarcpool) PwlArc( nsteps+1, newvert ), arc_top );
209 * pwl_bottom - construct a bottom boundary pwl arc and attach it to an arc
214 ArcTessellator::pwl_bottom( Arc *arc, REAL t, REAL s1, REAL s2, REAL rate )
234 arc->makeSide( new(pwlarcpool) PwlArc( nsteps+1, newvert ), arc_bottom );
238 * pwl - construct a pwl arc and attach it to an arc
243 ArcTessellator::pwl( Arc *arc, REAL s1, REAL s2, REAL t1, REAL t2, REAL rate )
265 /* arc->makeSide( new(pwlarcpool) PwlArc( nsteps+1, newvert ), arc_bottom ); */
266 arc->pwlArc = new(pwlarcpool) PwlArc( nsteps+1, newvert );
268 arc->clearbezier();
269 arc->clearside( );
274 * tessellateLinear - constuct a linear pwl arc and attach it to an Arc
279 ArcTessellator::tessellateLinear( Arc *arc, REAL geo_stepsize, REAL arc_stepsize, int isrational )
281 assert( arc->pwlArc == NULL );
291 BezierArc *b = arc->bezierArc;
306 pwl_right( arc, s1, t1, t2, stepsize );
308 pwl_left( arc, s1, t1, t2, stepsize );
311 pwl_bottom( arc, t1, s1, s2, stepsize );
313 pwl_top( arc, t1, s1, s2, stepsize );
315 pwl( arc, s1, s2, t1, t2, stepsize );
319 * tessellateNonlinear - constuct a nonlinear pwl arc and attach it to an Arc
324 ArcTessellator::tessellateNonlinear( Arc *arc, REAL geo_stepsize, REAL arc_stepsize, int isrational )
326 assert( arc->pwlArc == NULL );
330 BezierArc *bezierArc = arc->bezierArc;
365 arc->pwlArc = new(pwlarcpool) PwlArc();
366 arc->pwlArc->pts = vert;
493 arc->pwlArc->npts = vert - arc->pwlArc->pts + 1;