Constructor

The Clipper Library

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