title: Drawing simple 90degrees triangle in javaFX
body: <p>we started to learn javafx 3d and using TriangleMesh.
  i am trying to draw a simple right(90 degree) triangle.(0,0),(0,50),(50,0)
  whats wrong with my code?please</p>
  
  <pre><code>public class TT extends Application{
  
  
  
  public void start(Stage primaryStage){
              TriangleMesh sqMesh=new TriangleMesh();
  
              sqMesh.getPoints().addAll(
                  0.0f,0.0f,0.0f,  //1top
                  0.0f,50.0f,0.0f,  //1left
                  50.0f,0.0f,0.0f  //1right
  
              );
  
              sqMesh.getTexCoords().addAll(
                      0,0
                      );
              sqMesh.getFaces().addAll(
                  0,0, 1,0, 2,0
  
              );
  
              Group group=new Group();
              MeshView sq=new MeshView();
              sq.setMesh(sqMesh);
              sq.setTranslateX(200);
              sq.setTranslateY(100);
              sq.setTranslateZ(0);
              group.getChildren().add(sq);
              StackPane root=new StackPane();
              Scene scene=new Scene(root,900,600);
              primaryStage.setScene(scene);
              primaryStage.show();
  }
  
  public static void main(String[] args) {
          launch(args);
  }
  </code></pre>
  
  <p>}</p>