dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
759 stars 299 forks source link

Get the vertices of the Sphere primitive, and control their position #197

Open moroz69off opened 3 years ago

moroz69off commented 3 years ago

Hello dear friends! Can you please tell me if I can get the vertices of the "Sphere" primitive and control their position in space? If this is possible, how?

        private void LoadSphere()
        {
            Sphere sphere = new Sphere(); // this sphere needs to control the position of individual vertices or quads
            sphere.QuadricDrawStyle = DrawStyle.Line;
            sphere.Transformation.ScaleX = 4f;
            sphere.Transformation.ScaleY = 4f;
            sphere.Transformation.ScaleZ = 6f;
            sphere.AddEffect(arcBallEffect);
            //int stacks = sphere.Stacks;
            //sphere.Material = aMaterial;
            sceneControl.Scene.SceneContainer.AddChild(sphere);
        }