sidelength = input('Enter Side length: ');
height = input('Enter Height: ');
V=nsidedpoly(12,'Side',sidelength).Vertices;
trisurf( delaunay(V(:,1:2)), V(:,1), V(:,2), V(:,3),'FaceColor','c')
x6 = (sidelength*3.078)/2; 
a = ((2+sqrt(3))*(sidelength))/2;  
angle1 = atand(height/x6); 
b1 = (((sqrt(6)+sqrt(2))/2)*(sidelength));
c1 = ((sqrt(3)+1)*sidelength)*0.5;
c2 = -(1.902*sidelength)*0.5;
plot3([a a1], [L L12], [0 d],"m");
plot3([a a1], [L1 L123], [0 d]);
plot3([c1 c11], [c1 c11], [0 d]);
x = [c1, c11, a1, a1, a, a];
y = [c1, c11, L12, L123, L1, L];
surf2solid(x,y,z,"THICKNESS",-0.1); 
d = surf2solid(x,y,z,"THICKNESS",-0.1); 
disp('Reading stl file...');
patch(fv,'FaceColor',       [0.8 0.8 1.0], ...
         'FaceLighting',    'gouraud',     ...
         'AmbientStrength', 0.15);