access to EXTRUSION info ?

2 views
Skip to first unread message

EDUCATIA SUPERLATIV

unread,
4:38 PM (3 hours ago) 4:38 PM
to Glowscript Users
Hi,

I want to have access to the extrusion details.
My code:
let scaleT1234 = 2
let a0 = 3/scaleT1234; let b0 = 4/scaleT1234; let c0 = 5/scaleT1234;
let Tshape = [ [0,0], [a0,0], [0,b0], [0,0] ]
let Tpath = [ vec(0,0,0.2), vec(0,0,0) ]
let Qshape = [ [0,0], [c0,0], [c0,c0], [0,c0], [0,0]]
let Q2 = extrusion( {shape:Qshape, path:Tpath, color:color.red ,opacity:0.5, visible:false} )

alert('Alertă aici = ' +  Q2.shape[0])  ??? !!! error here

How to extract extrusion information(point coordinates)?
What is the right form?

Best regards
Ciprian
Reply all
Reply to author
Forward
0 new messages