Geometry::CutElem
Makes pieces of a 2D primitive which are inside the cutting polygon.
void CutElem (
const Polygon2DData* pCutPoly,
short typ,
const Sector* pSector,
const GenArc* pGenArc,
long nCoords,
const Coord* pCoords,
const DirType* pDirs,
const unsigned long* pVertInds,
long nArcs,
const PolyArcRec* pArcs,
const Polygon2DData* pPoly,
PieceFunc* StorePiece,
const void* userData
);
Parameters
- pCutPoly
- Pointer to the cutting polygon.
- typ
- elem's type (see Curve2DData.h). {CURVE2D_Sector, CURVE2D_GenArc, CURVE2D_PolyLine, CURVE2D_Polygon, CURVE2D_Spline}.
- pSector
- Pointer to the sector or NULL.
- pGenArc
- Pointer to the GenArc or NULL.
- nCoords
- Number of the polyline/spline Coords or 0.
- pCoords
- Pointer to the polyline/spline Coords or NULL.
- pDirs
- Pointer to the spline directions or NULL.
- pVertInds
- Pointer to the polyline vertex indices or NULL.
- nArcs
- Number of the polyline arcs or 0.
- pArcs
- Pointer to the polyline arcs or NULL.
- pPoly
- Pointer to the elem polygon (2D shape).
- StorePiece
- Callback function to store the piece.
- userData
- Pointer to custom data (for callback function).
Return Values
Nothing.
Requirements
-
Version: 1.0 or later
- Header: CutElems.h
- Import Library: GeometryImp.lib [Win]
- Module: Geometry.dll [WIN] GeometryLib [Mac]
- Header: CutElems.h