Constructor

Home | ClipperLib | Clipper |

# Clipper.Constructor

Del.» constructor TClipper.Create(InitOptions: TInitOptions = []);

C++ » Clipper::Clipper(int initOptions = 0) : ClipperBase();

C# » public Clipper(initOptions = 0): base() {};

The Clipper constructor creates an instance of the Clipper class. One or more InitOptions may be passed as a parameter to set the corresponding properties. (These properties can still be set or reset after construction.)
Examples:

      //C++ constructor setting StrictlySimple and PreserveCollinear properties ...
      Clipper clipper(ioStrictlySimple | ioPreserveCollinear);

      //C# constructor setting StrictlySimple and PreserveCollinear properties ...
      Clipper clipper = new Clipper(Clipper.ioStrictlySimple | Clipper.ioPreserveCollinear);

      //Delphi constructor setting StrictlySimple and PreserveCollinear properties ...
      clipper := TClipper.Create([ioStrictlySimple, ioPreserveCollinear]);

## See Also

PreserveCollinear, ReverseSolution, StrictlySimple, InitOptions

Copyright ©2010-2014 Angus Johnson - Clipper Ver 6.1.3 - Help file built on 20-January-2014