Drawing3d documented Class Library

Surface Members

Surface overview

Public Instance Constructors

Surface Constructor A construcor without parameter.

Public Instance Fields

Bounds Holds the Raster for BoundedCurves. This field will be calculated automatically by a call of new Raster(value.getxyArray(),new xy(0,0), 1 / (float)UResolution, 1 / (float)VResolution);
UPeriodicity Some surfaces are periodically in the parameters. For example a Cone has a periode of 2*PI for the u-parameter. The UPeriodicity gets and sets this priodicity. If the value is 0 no periodicity is assumed.
VPeriodicity Some surfaces are periodically in the parameters. For example a Cone has a periode of 2*PI for the u-parameter. The VPeriodicity gets and sets this priodicity. If the value is 0 no periodicity is assumed.

Public Instance Properties

Base Gets and sets a base for the surface.
BoundedCurves Defines a enclosing curve list. If this value is different from null, only the part inside the curves will be drawn by drawSurface.
DisplayList Holds a displaylist, which was generated by Compile
TextureOffset Sets or gets an offset for a texture
UFactor The Ufactor normalizes the u parameter to [0,1]. This must be respected, when you define a Value, uDerivation or vDerivation. For example the Cone has a UFactor 2*PI. in the Value method we have
double x = System.Math.Cos(u * UFactor);
double y = System.Math.Sin(u * UFactor);
double z = v * VFactor;
UResolution Defines a Resolution for the u parameter Default is 20;
VFactor The Vfactor normalizes the v parameter to [0,1]. This must be respected, when you define a Value, uDerivation or vDerivation. For example the Cone has a UFactor 2*PI. in the Value method we have
double x = System.Math.Cos(u * UFactor);
double y = System.Math.Sin(u * UFactor);
double z = v * VFactor;
VResolution Defines a Resolution for the v parameter Default is 20;

Public Instance Methods

Compile Create a DisplayList in a MNDevice.
Copy Makes a copy of the surface and returns it.
CreateDisplayList Create a displayList like Compile, but it doesnt stores it to DisplayList
Equals (inherited from Object) 
getCross This method calculates a crosspoint of a LineType with the surface, if this exists. In that case the crosspoint is given by the values u and v and can be calculated with the Value-function
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
getULength Calculates the real length on the surface for an u, when v=const.
getVLength Calculates the real length on the surface for an v, when u=const.
Normal Returns the normal at point u, v, which is calculated as th crossproduct of uDerivation and vDerivation.
ProjectPoint Gets a point in the u,v parameter room, which is near to the giving Point after transforming with Value.
To2dCurve Erzeugt zu einer 3D-Kurve eine Kurve im Parameterraum, sodass der Abbildung mit Value wieder die 3D-Kurve ergibt.
To3dCurve Creates a 3D-Curve which belongs to the curve which is given by the ParamCurve transformed to the surface
ToString (inherited from Object) 
uDerivation uDerivation returns the partial uderivation.
Value Value returns a xyz-Point which is depending on the parameters u and v. This 3-Dim-function defines a twodimensional area.
vDerivation vDerivation returns the partial vderivation.

Protected Instance Methods

Finalize (inherited from Object) 
getUResolution Is the virtual getfunction fo the property UResolution
getVResolution Is the virtual getfunction fo the property VResolution
MemberwiseClone (inherited from Object) 
setUResolution Is the virtual set-function fo the property UResolution
setVResolution Is the virtual set-function fo the property VResolution

See Also

Surface Class | Drawing3d.Surfaces Namespace | Sphere | BezierSurface | PlaneSurface | Cone | Cylinder | NurbsSurface