Drawing3d documented Class Library

BSpline3d Members

BSpline3d overview

Public Instance Constructors

BSpline3d Constructor Initializes a new instance of the BSpline3d class.

Public Instance Fields

OnChanged (inherited from Curve3D) This event is fired by the method Changed
Tag (inherited from Curve3D) Tag is a free programmable property

Public Instance Properties

A (inherited from Curve3D) Gets the starting point of the curve by calling getA.
Atang (inherited from Curve3D) Returns and sets the start tangent. See getAtang and Btang
B (inherited from Curve3D) Gets the endpoint of the curve by calling getB.
Btang (inherited from Curve3D) Returns and sets the end tangent. See getBtang and Atang.
Closed (inherited from Curve3D) Gets and sets the information, that the curve is closed, ie A = B.
ControlPoints This array contains the control points of a BSpliner curve. The array is initialized by four points, which indicate the curve as cubic bezier.
You can set any array of control points.
CurveLength (inherited from Curve3D) Retrieves the length of the curve.
Degree The Degree of the BSpline.
fromParam (inherited from Curve3D) Retrieves and sets the starting parameter. All parameters are within the interval [fromParam, toParam]. Initial value is 0;
Knots Gets and sets the Knots of the BSpline
Maxrect (inherited from Curve3D) A property, which calls GetMaxrect
Neighbors (inherited from Curve3D) If a Curve3D is a contur curve of a Face this array contains both Neighbors. In generally this are two.
Resolution (inherited from Curve3D) Retrieves and sets the resolution of the curve. The default value is 20.
toParam (inherited from Curve3D) Retrieves and sets the end parameter. All parameters are within the interval [fromParam, toParam]. Initialvalue is 1;
Visible (inherited from Curve3D) Several classes use this property and hide a curve, where visible is false.

Public Instance Methods

Changed (inherited from Curve3D) This method is called, when the curve is changed. It fires the event OnChanged
Clone (inherited from Curve3D) Produces an exact copy of the curve by using the BinaryFormatter. So you have to mark a new instance of Curve with the attribute [Serializable].
Close Closes the Bspline by changing some Controlpoints and Knots.
Copy (inherited from Curve3D) Copy the Curve. Some instances override this method.
DefaultKnots Gets the DefaultKnots.
Derivation Overrides the Derivationfunction Derivation of the curve class and retrieves the derivation of the Bezierfunction of t, depending on the controlpoints ControlPoints
Distance (inherited from Curve3D)Overloaded. This method calculates the distance of a LineType to a Curve only in case, when the distance is smaller then MaxDist, otherwise big will be returned. You can imagine a cylinders with radius MaxDist around the Curve. If the line goes through the "curved" cylinder, then the distance will be calculated and returned.
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetMaxrect (inherited from Curve3D)Overloaded. Gets a minimal Box, which contains a curve, transformed by a transformation.
GetType (inherited from Object) 
InsertPoint (inherited from Curve3D) Inserts a point at the position, which is given by Param.
Invert (inherited from Curve3D) Inverts the orientation of a curve. The base-method is empty. You should override it in a derived class.
LengthToParam (inherited from Curve3D) Converts a length to a param, which can be used in the method Value.
NormalCross (inherited from Curve3D) Calculates a point of a Curve, which is nearest to "Point"
ParamToLength (inherited from Curve3D) Calculates the length of a part of the curve, which is given from 0 to the value param.
SetBorder (inherited from Curve3D) Restricts the Curve to the startpoint A and the endpoint B. The method works regular only if A and B are "close to the curve".
Slice Overrides the Slice-method.
ToArray (inherited from Curve3D) This method fills values, calculated by the function Value in an array, starting at index.
ToString (inherited from Object) 
ToxyzArray (inherited from Curve3D) Gets an array of Resolution+1 interpolationpoints.
Transform Overrides the Transform-method, whitch transforms the ControlControlPoints.
UniformKnots Gets the UniformKnots
Value Overrides the abstract Value function Valueof the curve class and retrieves the Bezierfunction of t depending on the ControlPoints. It call the funBSpline3d-method.

Protected Instance Methods

Finalize (inherited from Object) 
getA (inherited from Curve3D) This is the virtual Get-Method of A. By default it calls 'Value(fromParam)'.
getAtang Overrides the getAtang and returns Points[1] - Points[0].
getB (inherited from Curve3D) This is the virtual Get-Method of B. By default, it provides 'Value(toParam)'.
getBtang Overrides the getAtang and returns Points[3] - Points[2].
GetMaxrect (inherited from Curve3D)Overloaded. Gets the smaller rectangle, which contains the curve.
getVisible (inherited from Curve3D) virtual getmethod of the property Visible
MemberwiseClone (inherited from Object) 
setA Overrides the method setA by setting the value of the Point[0];
setAtang Overrides the abstract getA-method and returns the point[0]. Overrides the setAtang-method
setB Overrides the setA-method by setting the endpoint to Points[3].
setBtang Overrides the setBtang by setting Points[2] to Points[3] - value;
SetClosed (inherited from Curve3D) Virtual Settermethod of Closed-property
SetControlPoints The virtual setmethod of the property ControlPoints. If Knots are null then Knots ar initialized by DefaultKnots.
setVisible (inherited from Curve3D) Virtual setmethod of the property Visible

See Also

BSpline3d Class | Drawing3d.Curves Namespace