Sign In
Sketch a regular hexagonal pyramid.
Example Net:
Example Pyramid:
We are asked to sketch a hexagonal pyramid and its net. We will sketch a regular hexagonal pyramid, but keep in mind there are other possibilities.
|
Regular Pyramid |
|
A regular pyramid has a base that is a regular polygon and the altitude has an endpoint at the center of the base. All the lateral edges are congruent and all faces are congruent isosceles triangles. |
Now, let's sketch the pyramid in three dimensions.
<jsxgpre id="Solution41696_2" static=1>
var b = mlg.board([-5.5, 5.5, 5.5, -5.5], {desktopSize:'medium', style:'usa'});
/* %% Length of a Vector - Array */
function myLength(vec){
return Math.sqrt(vec[0]*vec[0]+vec[1]*vec[1]);
}
/* Crearing a right angle from three points - in Perspective Geometry is helpful*/
function myRightAngle(p_1,p_2,p_3,len){
var temp1X = p_2.X() + len*(p_1.X()-p_2.X())/myLength([p_2.X()-p_1.X(),p_2.Y()-p_1.Y()]);
var temp1Y = p_2.Y() + len*(p_1.Y()-p_2.Y())/myLength([p_2.X()-p_1.X(),p_2.Y()-p_1.Y()]);
var temp3X = p_2.X() + len*(p_3.X()-p_2.X())/myLength([p_2.X()-p_3.X(),p_2.Y()-p_3.Y()]);
var temp3Y = p_2.Y() + len*(p_3.Y()-p_2.Y())/myLength([p_2.X()-p_3.X(),p_2.Y()-p_3.Y()]);
var temp2X = temp1X+temp3X-p_2.X();
var temp2Y = temp1Y+temp3Y-p_2.Y();
var node_temp1 = b.node(temp1X,temp1Y);
var node_temp3 = b.node(temp3X,temp3Y);
var node_temp2 = b.node(temp2X,temp2Y);
b.segment(node_temp1,node_temp2,{strokeColor:'red',strokeWidth:1});
b.segment(node_temp3,node_temp2,{strokeColor:'red',strokeWidth:1});
} /* %% My ellipse pt, returns a table %%*/ function myEllipsePt(x0,y0,a,b,t){ return [x0+a*Math.cos(t*Math.PI/180), y0+b*Math.sin(t*Math.PI/180)]; } /* %%%%% create a segment between two points, type=0 gives a solid one, type=1 a dashed usual one (Zwierz) %%%% */ function mySegment(p_1,p_2,type){ if(type==0){ return b.segment(p_1,p_2,{strokeWidth:1.5,dash:0});}
if(type==1){ return b.segment(p_1,p_2,{strokeWidth:1,dash:2});}
}
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%% START %%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */
var r1=4;
var r2=5;
var scale=3.5;
var n=6;
var h=5;
var shift=0;
var p=[];
var segp=[];
var net_vertices = [];
for(var i=0; i<n; i++){
p[i] = b.node( myEllipsePt(0,0,r1,r1/scale,shift+i*360/n)[0],
myEllipsePt(0,0,r1,r1/scale,shift+i*360/n)[1] );
} var q = b.node(0,h); for(var i=0; i<n; i++){ segp[i] = mySegment(p[i],p[(i+1)%n],1);
b.hatch(segp[i],1); segp[i+n] = mySegment(p[i],q,1); b.hatch(segp[i+n],2);
}
mySegment(p[3],p[4],0);
mySegment(p[4],p[5],0);
mySegment(p[5],p[0],0);
mySegment(p[3],q,0);
mySegment(p[4],q,0);
mySegment(p[5],q,0);
mySegment(p[0],q,0);
var left_face = b.polygon([p[3],p[4],q],{fillColor:'#b3f0cb',layer:0,borders:{visible:false}});
var middle_face = b.polygon([p[4],p[5],q],{fillColor:'#b3f0cb',layer:0,borders:{visible:false}});
var right_face = b.polygon([p[5],p[0],q],{fillColor:'#b3f0cb',layer:0,borders:{visible:false}});
b.gradient(left_face,{color:[mlg.tikzColor('darkorange!30'),"darkorange"],radial:true,cx:10,cy:10,r:100});
b.gradient(right_face,{color:[mlg.tikzColor('darkorange!30'),"darkorange"],radial:true,cx:10,cy:10,r:100});
b.gradient(middle_face,{color:[mlg.tikzColor('darkorange!30'),"darkorange"],radial:true,cx:10,cy:10,r:100});
var r = b.point(0,0,{size:0.2,fillColor:'black'});
b.segment(r,q,{strokeWidth:1,strokeColor:'red',dash:0});
myRightAngle(q,r,p[0],0.3);
b.trim(); </jsxgpre>