dwmkerr / dwmkerr/sharpgl

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

Open
#197 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
804
Forks
294
Avg merge
3d 23h
Merged PRs (30d)
1

Description

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);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.