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

A cylindrical geometry implementing IIndexedGeometry, IImageMappedGeometry, and ILitGeometry. In this case, a cylinder is defined using a number of sides n: the shape of the cylinder is approximated as an extruded n-gon. 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

 CylinderGeometry ()
 Initializes a CylinderGeometry object with 16 sides and a radius of 1 spanning from (0,0,0) to (0,0,1). More...
 
 CylinderGeometry (int sides)
 Initializes a CylinderGeometry object with a given number of sides and a radius of 1 spanning from (0,0,0) to (0,0,1). More...
 
 CylinderGeometry (int sides, float radius)
 Initializes a CylinderGeometry object with a given number of sides and radius spanning from (0,0,0) to (0,0,1). More...
 
 CylinderGeometry (int sides, float radius, Vector3 from, Vector3 to)
 Initializes a CylinderGeometry object with a given number of sides and radius spanning between two arbitray points. 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 cylindrical geometry implementing IIndexedGeometry, IImageMappedGeometry, and ILitGeometry. In this case, a cylinder is defined using a number of sides n: the shape of the cylinder is approximated as an extruded n-gon. 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.CylinderGeometry:
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.CylinderGeometry.CylinderGeometry ( )

Initializes a CylinderGeometry object with 16 sides and a radius of 1 spanning from (0,0,0) to (0,0,1).

Durwella.Unplugged.Viz.CylinderGeometry.CylinderGeometry ( int  sides)

Initializes a CylinderGeometry object with a given number of sides and a radius of 1 spanning from (0,0,0) to (0,0,1).

Parameters
sidesThe number of sides.
Durwella.Unplugged.Viz.CylinderGeometry.CylinderGeometry ( int  sides,
float  radius 
)

Initializes a CylinderGeometry object with a given number of sides and radius spanning from (0,0,0) to (0,0,1).

Parameters
sidesThe number of sides.
radiusThe radius of the cylinder.
Durwella.Unplugged.Viz.CylinderGeometry.CylinderGeometry ( int  sides,
float  radius,
Vector3  from,
Vector3  to 
)

Initializes a CylinderGeometry object with a given number of sides and radius spanning between two arbitray points.

Parameters
sidesThe number of sides.
radiusThe radius of the cylinder.
fromThe starting point of the cylinder.
toThe ending point of the cylinder.

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