Skip to content
Snippets Groups Projects
Commit 54402eac authored by Eric Wait's avatar Eric Wait
Browse files

Making empty poly structs will not return an empty struct

parent 58568100
Branches
No related tags found
No related merge requests found
function [ poly ] = MakeEmptyStruct() function [ poly ] = MakeEmptyStruct()
%[ poly ] = D3d.Polygon.MakeEmptyStruct() %[ poly ] = D3d.Polygon.MakeEmptyStruct()
poly = struct('index',{0}, 'frame',{0}, 'label',{''}, 'color',{[0,0,0]}, 'faces',{[]}, 'verts',{[]}, 'norms',{[]}, 'CenterOfMass',{[0,0,0]}); poly = struct('index',{}, 'frame',{}, 'label',{}, 'color',{}, 'faces',{}, 'verts',{}, 'norms',{}, 'CenterOfMass',{});
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment