#include "mfcpch.h"
#include <stdio.h>
#include "polyaprx.h"
#include "tessclas.h"
#include "poutline.h"
#include "coutln.h"
#include "varable.h"
#include "tprintf.h"
Defines | |
#define | FASTEDGELENGTH 256 |
#define | EXTERN |
#define | CONVEX 1 |
#define | CONCAVE 2 |
#define | FIXED 4 |
#define | ONHULL 8 |
#define | RUNLENGTH 1 |
#define | DIR 2 |
#define | CORRECTION 3 |
#define | FLAGS 0 |
#define | fixed_dist 20 |
#define | approx_dist 15 |
#define | point_diff(p, p1, p2) (p).x = (p1).x - (p2).x ; (p).y = (p1).y - (p2).y |
#define | CROSS(a, b) ((a).x * (b).y - (a).y * (b).x) |
#define | LENGTH(a) ((a).x * (a).x + (a).y * (a).y) |
#define | DISTANCE(a, b) |
Functions | |
OUTLINE * | tesspoly_outline (C_OUTLINE *c_outline, float) |
EDGEPT * | edgesteps_to_edgepts (C_OUTLINE *c_outline, EDGEPT edgepts[]) |
void | fix2 (EDGEPT *start, int area) |
EDGEPT * | poly2 (EDGEPT *startpt, int area) |
void | cutline (EDGEPT *first, EDGEPT *last, int area) |
Variables | |
EXTERN bool | poly_debug = FALSE |
EXTERN bool | poly_wide_objects_better = TRUE |
#define approx_dist 15 |
#define CONCAVE 2 |
#define CONVEX 1 |
#define CORRECTION 3 |
#define CROSS | ( | a, | |||
b | ) | ((a).x * (b).y - (a).y * (b).x) |
#define DIR 2 |
#define DISTANCE | ( | a, | |||
b | ) |
(((b).x-(a).x) * ((b).x-(a).x) \ + ((b).y-(a).y) * ((b).y-(a).y))
#define EXTERN |
#define FASTEDGELENGTH 256 |
#define FIXED 4 |
#define fixed_dist 20 |
#define FLAGS 0 |
#define LENGTH | ( | a | ) | ((a).x * (a).x + (a).y * (a).y) |
#define ONHULL 8 |
#define point_diff | ( | p, | |||
p1, | |||||
p2 | ) | (p).x = (p1).x - (p2).x ; (p).y = (p1).y - (p2).y |
#define RUNLENGTH 1 |
void fix2 | ( | EDGEPT * | start, | |
int | area | |||
) |
EXTERN bool poly_debug = FALSE |
"Debug old poly"
EXTERN bool poly_wide_objects_better = TRUE |
"More accurate approx on wide things"