BezierSurface

References
public class BezierSurface : IDisposable
Represents a Bezier surface.

Finalizer

~BezierSurface

#
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~BezierSurface()

Properties

Dimension

#Since v7.1
Dimension of Bezier
public int Dimension { get; }

IsRational

#Since v7.1
Gets a value indicating whether or not the surface is rational. Rational surfaces have control-points with custom weights.
public bool IsRational { get; }

IsValid

#Since v7.1
Tests an object to see if it is valid.
public bool IsValid { get; }

Methods

ControlVertexCount

#Since v7.1
Number of control vertices in this surface
public int ControlVertexCount(
direction
0 for first parameter's domain, 1 for second parameter's domain.
)

CreateLoftedBezier

#Since v7.1
Loft a bezier surface through a list of bezier curves.
public static BezierSurface CreateLoftedBezier(
curves
list of curves that have the same degree
)
new bezier curve if successful

Dispose

#Since v5.0
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.
)

Domain

#Since v7.1
Gets the domain in a direction.
[ConstOperation] public Interval Domain(
direction
0 gets first parameter, 1 gets second parameter.
)
An interval value.

GetBoundingBox

#Since v7.1
Bounding box solver. Gets the world axis aligned bounding box for the surface.
[ConstOperation] public BoundingBox GetBoundingBox(
accurate
This parameter is currently ignored.
)
The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

GetControlVertex2d

#Since v7.1
Get location of a control vertex.
[ConstOperation] public Point2d GetControlVertex2d(
i,
Control vertex index (0 <= index < ControlVertexCount)
j
Control vertex index (0 <= index < ControlVertexCount)
)
If the bezier is rational, the euclidean location is returned.
ArgumentOutOfRangeExceptionwhen i or j is out of range

GetControlVertex3d

#Since v7.1
Get location of a control vertex.
[ConstOperation] public Point3d GetControlVertex3d(
i,
Control vertex index (0 <= index < ControlVertexCount)
j
Control vertex index (0 <= index < ControlVertexCount)
)
If the bezier is rational, the euclidean location is returned.
ArgumentOutOfRangeExceptionwhen i or j is out of range

GetControlVertex4d

#Since v7.1
Get location of a control vertex.
[ConstOperation] public Point4d GetControlVertex4d(
i,
Control vertex index (0 <= index < ControlVertexCount)
j
Control vertex index (0 <= index < ControlVertexCount)
)
Homogeneous value of control vertex. If the bezier is not rational, the weight is 1.
ArgumentOutOfRangeExceptionwhen index is out of range

MakeNonRational

#Since v7.1
Make bezier non-rational
public bool MakeNonRational()
true if successful

MakeRational

#Since v7.1
Make bezier rational
public bool MakeRational()
true if successful

PointAt

#Since v7.1
Evaluates point at a surface parameter.
[ConstOperation] public Point3d PointAt(
u,
evaluation parameters.
v
evaluation parameters.
)
Remarks: No error handling.
Point (location of surface at the parameter u,v).

Reverse

#Since v7.1
Reverses parameterization Domain changes from [a,b] to [-b,-a]
[ConstOperation] public BezierSurface Reverse(
direction
0 for first parameter's domain, 1 for second parameter's domain.
)
a new reversed surface on success.

Split

#Since v7.1
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
left,
right
)
true on success

ToNurbsSurface

#Since v7.1
Constructs a NURBS surface representation of this surface.
[ConstOperation] public NurbsSurface ToNurbsSurface()
NURBS representation of the surface on success, null on failure.

Transform

#Since v7.1
Transforms the surface
public bool Transform(
Transform
xform
Transformation to apply to geometry.
)
true if geometry successfully transformed.

Transpose

#Since v7.1
Transposes surface parameterization (swap U and V)
[ConstOperation] public BezierSurface Transpose()
New transposed surface on success, null on failure.