geom2d.h File Reference

#include <mi32/stddefns.h>
#include <mi32/point.h>
#include <mi32/simplear.h>
#include <mi32/rect.h>

Include dependency graph for geom2d.h:

Include dependency graph

Go to the source code of this file.

Classes

struct  CONICARC
 Definitions used in FindDistTo...() (Conic functions). More...
struct  CONICEARC
struct  CONICELLIPSE
struct  VORONOI_DIAGRAM
struct  VORONOI_EDGE
struct  VORONOI_NODE
 Definitions used in VoronoiProc(). More...
struct  VORONOI_POLY

Defines

#define CONIC_ARC   3
#define CONIC_ARCCHORD   4
#define CONIC_ARCWEDGE   14
#define CONIC_EARC   12
#define CONIC_EARCCHORD   16
#define CONIC_EARCWEDGE   15
#define CONIC_ELLIPSE   11
#define GEOMLIBEXPORT   MI_DLLIMPORT
#define RGN_CompWithin   1
#define RGN_CompWithout   3
#define RGN_NullRegion   0
#define RGN_PartWithin   2
#define RGN_PartWithout   4
#define SPLINE_DontMoveEnds   0x0004
#define SPLINE_TreatAsClosed   0x0002
#define SPLINE_UseMinDistance   0x0001
#define SPLINETYPE_Bezier   3
#define SPLINETYPE_Cubic   1
#define SPLINETYPE_None   0
#define SPLINETYPE_Quad   2

Functions

GEOMLIBEXPORT int ArcFrom3Pts (const DPOINT2D *p1, const DPOINT2D *p2, const DPOINT2D *p3, double *cx, double *cy, double *r, double *sang, double *eang)
GEOMLIBEXPORT int CheckPointD (const DPOINT2D *start, const DPOINT2D *end, const DPOINT2D *point)
int CheckPointL (const LPOINT2D *start, const LPOINT2D *end, const LPOINT2D *point)
GEOMLIBEXPORT int CircleFrom2Pts (const DPOINT2D *p1, const DPOINT2D *p2, double *cx, double *cy, double *r)
GEOMLIBEXPORT int CircleFrom3Pts (const DPOINT2D *T1, const DPOINT2D *T2, const DPOINT2D *T3, double *center_x, double *center_y, double *radius)
int ClipLineD (const DRECT2D *cliprect, DPOINT2D *start, DPOINT2D *end)
int ComputeDPolygonsFromSelectedVoronoi (DPOLYGON **Dpolys, INT32 *NumDpolys, VORONOI_DIAGRAM *vdiagram)
ERRVALUE ComputeSimpleBufferL (const LPOINT2D *ipointlist, int inumpoints, double bufdist, int joinstyle, LPOINT2D **rpointlist, int *rnumpoints)
GEOMLIBEXPORT double DistPointLineSegD (const DPOINT2D *start, const DPOINT2D *end, const DPOINT2D *point, DPOINT2D *closest)
double DistPointLineSegW (const WPOINT2D *start, const WPOINT2D *end, const WPOINT2D *point, DPOINT2D *closest)
GEOMLIBEXPORT double DistPointRectD (const DRECT2D *rect, const DPOINT2D *point, DPOINT2D *closest)
void DoneVoronoiDiagram (VORONOI_DIAGRAM *vdiagram)
int ExtendLineToRectD (DPOINT2D *ip1, DPOINT2D *ip2, DRECT2D *rect, DPOINT2D *op1, DPOINT2D *op2)
double FindDistToArc (const CONICARC *arc, const DPOINT2D *point, int type)
double FindDistToEArc (const CONICEARC *earc, double x, double y, int type)
double FindDistToEllipse (const CONICELLIPSE *elp, double x, double y)
GEOMLIBEXPORT int FindLineInt (const DPOINT2D *line1pt1, const DPOINT2D *line1pt2, const DPOINT2D *line2pt1, const DPOINT2D *line2pt2, DPOINT2D *intpoint)
void InitVoronoiDiagram (VORONOI_DIAGRAM *vdiagram)
GEOMLIBEXPORT ERRVALUE LineFromConic (const CADEARC &earc, SIMPLE_ARRAY< DPOINT2D > &PointList, TRANS2D_AFFINE *ArcToPixel, bool IsChord, bool IsWedge)
INT32 MfitBSplineMovePoint (DPOINT2D *In, DPOINT2D **Out, INT32 NumPts, INT32 EditPoint, int F, double Tolerance, UINT32 Flags)
INT32 MfitPointsBezier (DPOINT2D *In, DPOINT2D **Out, INT32 NumPts, INT32 NumOut, double Tolerance, UINT32 Flags)
INT32 MfitPointsBSpline (DPOINT2D *In, DPOINT2D **Out, INT32 NumPts, int F, double Tolerance, UINT32 Flags)
INT32 MfitPointsBSplineQuadratic (DPOINT2D *In, DPOINT2D **Out, INT32 NumPts, int F, double Tolerance, UINT32 Flags)
INT32 MfitPointsSpline3D (DPOINT3D *In, DPOINT3D **Out, INT32 NumPts, INT32 F, double Tolerance, int SplineType, UINT32 Flags)
GEOMLIBEXPORT int PointInPolyD (const DPOLYGON *polygon, const DPOINT2D *point)
int PointInPolyL (const LPOLYGON *polygon, const LPOINT2D *point)
GEOMLIBEXPORT int PolyStatsD (const DPOLYGON *polygon, double *area, double *centx, double *centy, int *orient)
GEOMLIBEXPORT INT32 RemoveDupPts (DPOINT2D *pts, INT32 num)
GEOMLIBEXPORT INT32 RemoveDupPts3D (DPOINT3D *pts, INT32 num)
GEOMLIBEXPORT INT32 RemoveDupPtsT (DPOINT2D *pts, INT32 num, double thresh)
GEOMLIBEXPORT INT32 RemoveDupPtsT3D (DPOINT3D *pts, INT32 num, double thresh)
GEOMLIBEXPORT int SolveLinear (int n, double *A, double *b, double *x)
int SolveLinearSVD (int n, double *A, double *B, double *X)
int VoronoiProc (DPOINT3D **Points, INT32 *NumPoints, VORONOI_DIAGRAM *vdiagram, double ExtFactor)


Define Documentation

#define CONIC_ARC   3
 

Definition at line 108 of file geom2d.h.

#define CONIC_ARCCHORD   4
 

Definition at line 109 of file geom2d.h.

#define CONIC_ARCWEDGE   14
 

Definition at line 110 of file geom2d.h.

#define CONIC_EARC   12
 

These defines match the defines in rvccad.c. Do not change them.

Definition at line 104 of file geom2d.h.

#define CONIC_EARCCHORD   16
 

Definition at line 106 of file geom2d.h.

#define CONIC_EARCWEDGE   15
 

Definition at line 105 of file geom2d.h.

#define CONIC_ELLIPSE   11
 

Definition at line 107 of file geom2d.h.

#define GEOMLIBEXPORT   MI_DLLIMPORT
 

geom2d - Functions for 2-D geometry

Definition at line 63 of file geom2d.h.

#define RGN_CompWithin   1
 

Definition at line 117 of file geom2d.h.

#define RGN_CompWithout   3
 

Definition at line 119 of file geom2d.h.

#define RGN_NullRegion   0
 

Definitions used in Is...InRegion().

Definition at line 116 of file geom2d.h.

#define RGN_PartWithin   2
 

Definition at line 118 of file geom2d.h.

#define RGN_PartWithout   4
 

Definition at line 120 of file geom2d.h.

#define SPLINE_DontMoveEnds   0x0004
 

Definition at line 128 of file geom2d.h.

#define SPLINE_TreatAsClosed   0x0002
 

Definition at line 127 of file geom2d.h.

#define SPLINE_UseMinDistance   0x0001
 

Spline function flags.

Definition at line 126 of file geom2d.h.

#define SPLINETYPE_Bezier   3
 

Definition at line 133 of file geom2d.h.

#define SPLINETYPE_Cubic   1
 

Definition at line 131 of file geom2d.h.

#define SPLINETYPE_None   0
 

Definition at line 130 of file geom2d.h.

#define SPLINETYPE_Quad   2
 

Definition at line 132 of file geom2d.h.


Generated on Tue Dec 14 13:19:02 2004 for TNTsdk by  doxygen 1.3.8-20040913