From f06ccc34941845bfc5fff56b49eb479dca1ac335 Mon Sep 17 00:00:00 2001
From: Eric Wait <eric@waitphoto.com>
Date: Thu, 19 Jul 2018 23:06:03 -0400
Subject: [PATCH] Fixed bug in plane creation function

---
 src/matlab/+D3d/+Polygon/MakePlaneBetween.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/matlab/+D3d/+Polygon/MakePlaneBetween.m b/src/matlab/+D3d/+Polygon/MakePlaneBetween.m
index 7dd6033..babf5c4 100644
--- a/src/matlab/+D3d/+Polygon/MakePlaneBetween.m
+++ b/src/matlab/+D3d/+Polygon/MakePlaneBetween.m
@@ -13,7 +13,7 @@ function [polygon] = MakePlaneBetween(pt1_xy,pt2_xy,polygonListIndex,strLabel,fr
 
 	[ inds, verts] = D3d.Polygon.CreatePlane(normVec, centerPoint, sideLength, sideLength);
 
-	polygon.faces = inds;
+	polygon(1).faces = inds;
 	polygon.verts = verts;
 	polygon.norms = repmat(normVec,size(verts,1),1);
 
-- 
GitLab