Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform3)

Gets the spline under a transformation.

public GeoSpline3 TransformBy(GeoTransform3 transform)

Parameters

transform GeoTransform3

The transformation to apply.

Returns

GeoSpline3

The transformed spline: the control points carried by the transformation, the weights and knots as they were.

Remarks

A NURBS is carried by any affine map by carrying its control points: a rotation, a scaling that differs between the axes, a shear and a mirror all give the spline that is the image of the old one, exactly, a circle among them, which an uneven scaling makes the ellipse it is. The matrix of a transformation holds nothing but the affine part, so there is nothing that cannot be carried but a transformation that squeezes space onto a point, which is refused.

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation carries every control point to one point.

ArgumentException

Thrown when the transformation has an entry that is not a finite number.