Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moroz69off opened this issue Feb 17, 2021 · 0 comments
Open

Comments

@moroz69off
Copy link

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);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant