From 7e805a61aa0fae323e4a9e072bf18647d6fe766c Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 10 Feb 2005 23:16:10 +0000 Subject: [PATCH] Improve VRML output. Specifically, point nodes are drawn as filled spheres, and line segment edges are drawn as cylinders. In this case, handle arrowheads as cones correctly. Needed to expose the wind function from pathplan. --- lib/pathplan/pathutil.h | 3 +++ lib/pathplan/visibility.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pathplan/pathutil.h b/lib/pathplan/pathutil.h index f8898b7bd..58fae3ca1 100644 --- a/lib/pathplan/pathutil.h +++ b/lib/pathplan/pathutil.h @@ -24,7 +24,9 @@ extern "C" { #endif +#ifndef NOT #define NOT(x) (!(x)) +#endif #ifndef FALSE #define FALSE 0 #define TRUE (NOT(FALSE)) @@ -32,6 +34,7 @@ extern "C" { typedef double COORD; extern COORD area2(Ppoint_t, Ppoint_t, Ppoint_t); + extern int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c); extern COORD dist2(Ppoint_t, Ppoint_t); extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d); diff --git a/lib/pathplan/visibility.c b/lib/pathplan/visibility.c index 891e12da9..3137f3b53 100644 --- a/lib/pathplan/visibility.c +++ b/lib/pathplan/visibility.c @@ -67,7 +67,7 @@ COORD area2(Ppoint_t a, Ppoint_t b, Ppoint_t c) * Returns 1, 0, -1 if the points abc are counterclockwise, * collinear, or clockwise. */ -static int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c) +int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c) { COORD w; -- 2.40.0