Given the triangular pyramid P−ABC such that AB=BC=2

						var board = JXG.JSXGraph.initBoard('box1', {
axis: true, boundingbox: [-15, 15, 15, -15], showcopyright: false,keepaspectratio: true, axis: false, zoom: false,showNavigation: false
  });
  
var p1 = board.create('point', [-11, -1],{name:'A', size: 1,face:"",fixed: true, color:'blue', label: {offset:[-5,-10], color:'blue'}} );
var p2 = board.create('point', [4, -1],{name:'B', size: 1,face:"", color:'blue', fixed: true,label: {offset:[-5,-10], color:'blue'}} );

var p3 = board.create('point', [-7, -6],{name:'C', size: 1,face:"", color:'blue',fixed: true, label: {offset:[-5,-10], color:'blue'}} );
var p4 = board.create('point', [-6, 8],{name:'P', size: 1,face:"", color:'blue',fixed: true, label: {offset:[-5,10], color:'blue'}} );

var l1 = board.create('segment', [p1, p2],{strokeWidth:2,dash:2});
var l2 = board.create('segment', [p2,p3],);
var l3 = board.create('segment', [p3,p1],);
var l4 = board.create('segment', [p4,p1],);
var l5 = board.create('segment', [p4,p2],);
var l6 = board.create('segment', [p4,p3],);

var mp1 = board.create('midpoint', [p1, p2],{face:'',});
var l7 = board.create('segment', [p4,mp1],{dash:2});
var l8 = board.create('segment', [p3,mp1],{dash:2});					

The image appears in the following posts

Triangle posted 1 year ago

Scroll to Top