{ auto cV3D = new TCanvas("cV3D","PolyLine3D & PolyMarker3D Window",200,10,500,500); // Creating a view TView3D *view = (TView3D*) TView::CreateView(1); view->SetRange(5,5,5,25,25,25); // Create a first PolyLine3D TPolyLine3D *pl3d1 = new TPolyLine3D(6); pl3d1->SetPoint(0, 10, 20, 10); pl3d1->SetPoint(1, 15, 15, 15); pl3d1->SetPoint(2, 20, 20, 20); pl3d1->SetPoint(3, 20, 10, 20); pl3d1->SetPoint(4, 10, 10, 20); pl3d1->SetPoint(5, 10, 10, 10); // Create a first PolyMarker3D TPolyMarker3D *pm3d1 = new TPolyMarker3D(9); pm3d1->SetPoint( 0, 10, 10, 10); pm3d1->SetPoint( 1, 20, 20, 20); pm3d1->SetPoint( 2, 10, 20, 20); pm3d1->SetPoint( 3, 10, 10, 20); pm3d1->SetPoint( 4, 20, 20, 10); pm3d1->SetPoint( 5, 20, 10, 10); pm3d1->SetPoint( 6, 20, 10, 20); pm3d1->SetPoint( 7, 10, 20, 10); pm3d1->SetPoint( 8, 15, 15, 15); pm3d1->SetMarkerSize(2); pm3d1->SetMarkerColor(4); pm3d1->SetMarkerStyle(2); // Draw pl3d1->Draw(); pm3d1->Draw(); }