Finalizer
~BezierSurface
#Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~BezierSurface()
Properties
Gets a value indicating whether or not the surface is rational. Rational surfaces have control-points with custom weights.
Methods
Number of control vertices in this surface
Loft a bezier surface through a list of bezier curves.
Returns: new bezier curve if successful
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()
Dispose
#For derived class implementers.
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.
You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.
Also, you must call the base virtual method within your overriding method.
protected virtual void Dispose()
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
Gets the domain in a direction.
Returns: An interval value.
Bounding box solver. Gets the world axis aligned bounding box for the surface.
Returns: The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.
Get location of a control vertex.
Returns: If the bezier is rational, the euclidean location is returned.
Exceptions:
| ArgumentOutOfRangeException | when i or j is out of range |
Get location of a control vertex.
Returns: If the bezier is rational, the euclidean location is returned.
Exceptions:
| ArgumentOutOfRangeException | when i or j is out of range |
Get location of a control vertex.
Returns: Homogeneous value of control vertex. If the bezier is not rational, the weight is 1.
Exceptions:
| ArgumentOutOfRangeException | when index is out of range |
Make bezier non-rational
Returns: true if successful
Evaluates point at a surface parameter.
Remarks: No error handling.
Returns: Point (location of surface at the parameter u,v).
Reverses parameterization Domain changes from [a,b] to [-b,-a]
Returns: a new reversed surface on success.
Divides the Bezier surface at the specified parameter.
[ConstOperation]
public bool Split()
direction,
0 is split along u and 1 is split along v
t,
parameter must satisfy 0 < t < 1
out BezierSurface
left,
out BezierSurface
right
Returns: true on success
Constructs a NURBS surface representation of this surface.
Returns: NURBS representation of the surface on success, null on failure.
Transforms the surface
Returns: true if geometry successfully transformed.
Transposes surface parameterization (swap U and V)
Returns: New transposed surface on success, null on failure.