From 91d1203c3a1c43ee10f3ad662edaf21a351316b3 Mon Sep 17 00:00:00 2001 From: Mason Green Date: Wed, 1 May 2013 21:46:31 -0400 Subject: [PATCH] fixed SweepContext ctor --- poly2tri/sweep/sweep_context.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/poly2tri/sweep/sweep_context.cc b/poly2tri/sweep/sweep_context.cc index 1ec9aed..150f1a0 100644 --- a/poly2tri/sweep/sweep_context.cc +++ b/poly2tri/sweep/sweep_context.cc @@ -34,7 +34,13 @@ namespace p2t { -SweepContext::SweepContext(std::vector polyline) : points_(polyline) +SweepContext::SweepContext(std::vector polyline) : points_(polyline), + front_(0), + head_(0), + tail_(0), + af_head_(0), + af_middle_(0), + af_tail_(0) { InitEdges(points_); }