Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
|
A spherical geometry implementing IIndexedGeometry, IImageMappedGeometry, and ILitGeometry. Note that no attributes are applied to this class; it is intended only as input to appropriate model class. The vertices are constructed using indexing, and intended for drawing using PrimitiveType.TriangleStrip. More...
Public Member Functions | |
SphereGeometry () | |
Initializes a SphereGeometry object comprised of 16 segments, with radius 1, centered at (0,0,0). More... | |
SphereGeometry (int segments=16, float radius=1, Vector3 center=default(Vector3)) | |
Initializes a SphereGeometry object. More... | |
Additional Inherited Members | |
Properties inherited from Durwella.Unplugged.Viz.IIndexedGeometry | |
int[] | Indices [get] |
Properties inherited from Durwella.Unplugged.Viz.IGeometry | |
Array | Vertices [get] |
Properties inherited from Durwella.Unplugged.Viz.IImageMappedGeometry | |
object | Image [get] |
If Image is a string, it will be treated as the path to in image file. IMAGE RESOLUTIONS MUST BE POWERS OF TWO. More... | |
Properties inherited from Durwella.Unplugged.Viz.ITexturedGeometry | |
Array | TextureCoordinates [get] |
Properties inherited from Durwella.Unplugged.Viz.ILitGeometry | |
float[,] | Normals [get] |
float[] | LightPosition [get] |
A spherical geometry implementing IIndexedGeometry, IImageMappedGeometry, and ILitGeometry. Note that no attributes are applied to this class; it is intended only as input to appropriate model class. The vertices are constructed using indexing, and intended for drawing using PrimitiveType.TriangleStrip.
Durwella.Unplugged.Viz.SphereGeometry.SphereGeometry | ( | ) |
Initializes a SphereGeometry object comprised of 16 segments, with radius 1, centered at (0,0,0).
Durwella.Unplugged.Viz.SphereGeometry.SphereGeometry | ( | int | segments = 16 , |
float | radius = 1 , |
||
Vector3 | center = default(Vector3) |
||
) |
Initializes a SphereGeometry object.
segments | The number of individual line segments making up the circumference of the sphere. A sphere with segments = n will have n*n vertices. |
radius | The radius of the sphere. |
center | The center of the sphere. |