private void CreateKnot8(DrawMode dm)
 {
     myScene.ClearGeometries();
     myKnot = new Knot8Geometry(60, 480, 8, 32)
     {
         Position            = new Vector3D(0, 0, 0),
         InitialRotationAxis = new Vector3D(0, 0, 0),
         RotationAxis        = new Vector3D(0, 1, 0),
         RotationSpeed       = rotationSpeed,
         DrawMode            = dm,
         TextureScaleX       = 1,
         TextureScaleY       = 30
     };
     ((Knot8Geometry)myKnot).SetParameters(settingForm);
     SetKnotColor(ShowTexture);
     myScene.AddGeometry(myKnot);
     Title = "3D Knot #8";
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a GLGeometry to the Scene.
 /// <para>All the geometries in the scene are re-created at the next render pass.</para>
 /// </summary>
 /// <param name="geo">A Geometry derived from GLGeometry.</param>
 public void AddGeometry(GLGeometry geo)
 {
     my_Geometries.Add(geo);
     my_GenerateGeometries = true;
 }