From be30a81ef1e81ff87772565a94391be3a17a3168 Mon Sep 17 00:00:00 2001 From: Eric Wait <eric@waitphoto.com> Date: Tue, 28 Mar 2017 19:58:31 -0400 Subject: [PATCH] The polygon maker needs to instantiate the empty struct --- src/matlab/+D3d/+Polygon/Make.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matlab/+D3d/+Polygon/Make.m b/src/matlab/+D3d/+Polygon/Make.m index 80b35e2..31efcdf 100644 --- a/src/matlab/+D3d/+Polygon/Make.m +++ b/src/matlab/+D3d/+Polygon/Make.m @@ -66,7 +66,7 @@ end norms = D3d.Polygon.CalcNorms(verts_xy,faces); -polygon.index = polyIdx; +polygon(1).index = polyIdx; polygon.frame = frame; polygon.label = label; polygon.color = color; -- GitLab