Click or drag to resize

SurfaceCurvature Class

Maintains computed information for principal surface curvature evaluation.
Inheritance Hierarchy
SystemObject
  Rhino.GeometrySurfaceCurvature

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class SurfaceCurvature : IDisposable, 
	IEquatable<SurfaceCurvature>, IComparable<SurfaceCurvature>

The SurfaceCurvature type exposes the following members.

Constructors
  NameDescription
Public methodSurfaceCurvature
Default constructs a new surface curvature object. Both kappa1 and kappa2 are zero.
Top
Properties
  NameDescription
Public propertyGaussian
The Gaussian curvature is kappa1*kappa2.
Public propertyIsNaN
True if either of kappa1 or kappa2 is NaN.
Public propertyIsSet
True if kappa1 and kappa2 are both valid finite values.
Public propertyIsUnset
True if either of kappa1 or kappa2 is not a valid finite value.
Public propertyIsZero
True if both kappa1 and kappa2 are zero.
Public propertyMaximumPrincipalCurvature
If set, the maximum of kapp1 and kappa2 returned. Otherwise, the quiet NaN is returned.
Public propertyMaximumRadius
If a principal curvature value is zero or the principal curvatures have opposite signs, then the maximum radius of curvature is infinite RhinoMath.InfiniteRadius is returned. Otherwise the maximum radius of curvature is 1/min(fabs(kappa1),fabs(kappa2)).
Public propertyMean
The mean curvature is (kappa1+kappa2)/2.
Public propertyMinimumPrincipalCurvature
If set, the minimum of kappa1 and kappa2 returned. Otherwise, the quiet NaN is returned.
Public propertyMinimumRadius
The minimum radius of curvature is 1/max(fabs(kappa1),fabs(kappa2)). Infinite radius values are returned as RhinoMath.InfiniteRadius.
Public propertyNormal
Gets the normal direction of the surface at the u,v parameter where the surface curvature was evaluated.
Public propertyPoint
Gets the point at the u,v parameter where the surface curvature was evaluated.
Public propertyUVPoint
Gets the u,v parameter where the surface curvature was evaluated.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodStatic memberCreate
Create a SurfaceCurvature from explicit principal curvatures and the geometric frame at the evaluation point. Use this when you have already computed curvature data from a non-RhinoCommon surface representation (planes, spheres, cylinders, cones, etc.).
Public methodStatic memberCreateFromGaussianAndMeanCurvatures
Create a SurfaceCurvature from a gaussian and mean curvature values using the relationship between the principal curvatures, gaussian and mean: kappa1 = mean + sqrt(mean*mean - gaussian) kappa2 = mean - sqrt(mean*mean - gaussian) If the radicand is negative, we assume we're dealing with a bit of numerical noise or estimates and set the principal curvatures: kappa1 = kappa2 = sign(mean)*sqrt(gaussian)
Public methodStatic memberCreateFromPrincipalCurvatures
Create a SurfaceCurvature from the principal curvature values. The principal curvature values are the most fundamental curvature properties of a surface. Other curvatures are calculated from them.
Public methodStatic memberCreateFromSurface
Create a SurfaceCurvature from by evaluating surface and a u,v parameter.
Public methodDirection
Gets the principal curvature direction vector at the u,v parameter where the surface curvature was evaluated..
Public methodDispose
Actively releases the unmanaged pointer.
Public methodEquals(Object)
Indicates whether the current object is equal to another object of the same type.
(Overrides ObjectEquals(Object).)
Public methodEquals(SurfaceCurvature)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Passively releases the unmanaged pointer.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Returns a runtime-stable hash code for this object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodKappa
Gets the principal curvature values: kappa1 - Principal curvature with maximum absolute value. kappa2 - Principal curvature with minimum absolute value.
Public methodKappaValue
Calculate one of the four typical curvature values associated with the two principal curvatures and frequently used in false color curvature analysis.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOsculatingCircle
Computes the osculating circle along the given direction.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also