import javax.media.j3d.*; import javax.vecmath.*; public class SuurL extends Shape3D{ Point3d p1=new Point3d(0, 0, 0), p2=new Point3d(0, 1, 0), p3=new Point3d(0.5, 0, 0); Point3d[] jooned={ p1, p2, p1, p3 }; public SuurL(){ LineArray joonemassiiv=new LineArray(4, LineArray.COORDINATES); joonemassiiv.setCoordinates(0, jooned); setGeometry(joonemassiiv); setAppearance(new Appearance()); } }