11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

238 • Chapter 6: <strong>Programming</strong> with Maple Graphics> outside( Pi/4, 1.1, 16 );[0.9881327882, 0.1536020604],[1.086946067, 0.1689622664],[1.033097800, 0.3777683623],[0.9391798182, 0.3434257839]> PLOT( CURVES( [%] ), SCALING(CONSTRAINED) );0.350.30.250.20.150.93918 1.01306 1.08695When you display the pieces together, you produce a gear. SCALING(CONSTRAINED),which corresponds to the option scaling=constrained, is used to ensurethat the gear appears circular.> points := [ seq( outside(2*a, 1.1, 16), a=0..16 ) ]:> PLOT( CURVES(points), AXESSTYLE(NONE), SCALING(CONSTRAINED) );You can fill this object using the POLYGONS object. However, you mustbe careful because Maple assumes that the polygons are convex. Hence,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!