Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
Durwella.Unplugged.Viz.SphereGeometry Class Reference

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]
 

Detailed Description

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.

Inheritance diagram for Durwella.Unplugged.Viz.SphereGeometry:
Durwella.Unplugged.Viz.IIndexedGeometry Durwella.Unplugged.Viz.IImageMappedGeometry Durwella.Unplugged.Viz.ILitGeometry Durwella.Unplugged.Viz.IGeometry Durwella.Unplugged.Viz.ITexturedGeometry Durwella.Unplugged.Viz.IGeometry Durwella.Unplugged.Viz.IGeometry

Constructor & Destructor Documentation

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.

Parameters
segmentsThe number of individual line segments making up the circumference of the sphere. A sphere with segments = n will have n*n vertices.
radiusThe radius of the sphere.
centerThe center of the sphere.

The documentation for this class was generated from the following file: