## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# igeom/clip2d.h File Reference

2D clipping interface More...

`#include "csutil/scf_interface.h"`

Go to the source code of this file.

## Classes

struct | csVertexStatus
| The clipper can output additional information about each vertex in output polygon. More...
struct | iClipper2D
| This interfaces represents a 2D clipper for polygons. More...

## Clipper return codes

The clipper routines return one of `CS_CLIP_OUTSIDE`, `CS_CLIP_INSIDE`, `CS_CLIP_CLIPPED` so that we can distinguish between the cases when input polygon is completely outside the clipping polygon (thus it is not visible), completely inside the clipping polygon (thus it has not changed) and partially outside, partially inside (thus it was clipped).
enum | { CS_CLIP_OUTSIDE = 0, CS_CLIP_CLIPPED = 1, CS_CLIP_INSIDE = 2 }

## Additional vertex informations

enum | { CS_VERTEX_ORIGINAL = 0, CS_VERTEX_ONEDGE = 1, CS_VERTEX_INSIDE = 2 }
| Clipped vertex type. More...

## Defines

#define | MAX_OUTPUT_VERTICES 64
| Maximal number of vertices in output (clipped) polygons.

## Detailed Description

2D clipping interface

Definition in file clip2d.h.