IDataAccess

References
public interface IDataAccess
Interface used for accessing input and output data from within Component.Process methods.

Properties

Callstack

#
Gets the call stack leading up to this component.
CallStack Callstack { get; }

CountIn

#
Gets the number of input parameters whose data can be harvested.
int CountIn { get; }

CountOut

#
Gets the number of output parameters whose data can be assigned.
int CountOut { get; }

CustomData

#
Gets the custom data where you can put values which are supposed to end up in the SolutionData.CustomData storage.
FleetingCustomData CustomData { get; }

Index

#
Gets the iteration of this access.
int Index { get; }

Iterations

#
Gets the total number of iterations in this computation.
int Iterations { get; }

Solution

#
Gets the solution that is the context of this iteration.
Solution Solution { get; }

Methods

AccessIn

#
Gets the access associated with the specified input parameter.
Access AccessIn(
index
Index of input parameter.
)
Access of input parameter.

AccessOut

#
Gets the access associated with the specified output parameter.
Access AccessOut(
index
Index of output parameter.
)
Access of output parameter.

AddError

#
Add an error message to the object solution.
void AddError(
text,
Error message.
details,
In depth explanation.
params MessageAction[]
actions
Available actions for this message.
)

AddError

#
Add an error message to the object solution.
void AddError(
text,
Error message.
details,
In depth explanation.
params MessageDelegate[]
actions
Available actions for this message.
)

AddError

#
Add an error message to the object solution.
void AddError(
text,
Error message.
details
In depth explanation.
)

AddMessage

#
Add a constructed message to the object solution.
void AddMessage(
message
Message to add.
)

AddRemark

#
Add a remark to the object solution.
void AddRemark(
text,
Remark message.
details,
In depth explanation.
params MessageAction[]
actions
Available actions for this message.
)

AddRemark

#
Add a remark to the object solution.
void AddRemark(
text,
Remark message.
details,
In depth explanation.
params MessageDelegate[]
actions
Available actions for this message.
)

AddRemark

#
Add a remark to the object solution.
void AddRemark(
text,
Remark message.
details
In depth explanation.
)

AddWarning

#
Add a warning message to the object solution.
void AddWarning(
text,
Warning message.
details,
In depth explanation.
params MessageAction[]
actions
Available actions for this message.
)

AddWarning

#
Add a warning message to the object solution.
void AddWarning(
text,
Warning message.
details,
In depth explanation.
params MessageDelegate[]
actions
Available actions for this message.
)

AddWarning

#
Add a warning message to the object solution.
void AddWarning(
text,
Warning message.
details
In depth explanation.
)

CoverageIn

#
Gets the coverage for the given input associated with this iteration.
Coverage CoverageIn(
index
)

CoverageOut

#
Gets the coverage for the given output associated with this iteration.
Coverage CoverageOut(
index
)

GetCurve

#
Gets a pairing of an item and its associated curve assistant. If no assistant is available, this method will append an error message and throw.
bool GetCurve(
index,
Index of parameter.
out ICurve
curve
Curve+Assistant pair will be returned here.
)
Always true.

GetIndex

#
Gets an integer describing the index within a collection.
bool GetIndex(
indexParameter,
Index of integer parameter containing the hinting index.
limit,
Exclusive upper limit of valid index range. This is usually the twig length.
out int
index
Index into twig.
)

GetIndexing

#
Gets the indexing modifier associated with the specified input parameter. For this request to work, the input must be of type IntegerParameter and the IntegerParameter.IsIndex property must be set to true. If that's not the case an exception will be thrown.
IndexModifier GetIndexing(
index
)

GetIndices

#
Gets a collection of integers describing the indices within a collection.
bool GetIndices(
indexParameter,
Index of integer parameter containing the hinting indices.
limit,
Exclusive upper limit of valid index range. This is usually the twig length.
out Twig<int>
indices
Indices into the twig.
)

GetIPear

#
Gets the item+meta data IPear from the specified input parameter. For this method to not throw exceptions the IParameter.Access of the associated parameter must be set to Access.Item.
bool GetIPear(
index,
Index of parameter.
out IPear
pear
Pear containing item value and meta data will be returned here. This is a reference to the actual item, do not modify it unless you know exactly what you are doing.
)
True if item and/or data are not null.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Item.

GetIPears

#
Gets an array of IPear instances from the specified input. This method works both when the IParameter.Access of the parameter is set to Access.Item or Access.Twig.
bool GetIPears(
index,
Index of parameter.
out IPear[]
pears
Array of pears, including nulls. May be an empty array.
)
Always true.

GetIPears

#
Get pears out of every specified input. This requires that each specified input has Access.Item access.
void GetIPears(
out IPear[]
pears,
Array of pears, including null pears. However, missing pears will not be included.
out int[]
indexMap,
For each returned pear, specifies which input it came from
params int[]
inputs
Array of input indices.
)

GetIPears

#
Get pears out of every input. This requires that each input has Access.Item access.
void GetIPears(
out IPear[]
pears,
Array of pears, including null pears. However, missing pears will not be included.
out int[]
indexMap
For each returned pear, specifies which input it came from
)

GetIPearWithCurveAssistant

#
Gets the item+meta data IPear and its associated curve assistant. If no assistant is available, this method will append an error message and throw.
bool GetIPearWithCurveAssistant(
index,
Index of parameter.
out IPear
pear,
Pear will be return here.
assistant
Assistant associated with item type.
)
True if the item is not null and an assistant could be found.

GetIPearWithSurfaceAssistant

#
Gets the item+meta data IPear and its associated surface assistant. If no assistant is available, this method will append an error message and throw.
bool GetIPearWithSurfaceAssistant(
index,
Index of parameter.
out IPear
pear,
Pear will be return here.
assistant
Assistant associated with item type.
)
True if the item is not null and an assistant could be found.

GetIPearWithTypeAssistant

#
Gets the item+meta data IPear and its associated type assistant. If no assistant is available, this method will append an error message and throw.
bool GetIPearWithTypeAssistant(
index,
Index of parameter.
out IPear
pear,
Pear will be return here.
assistant
Assistant associated with item type.
)
True if the item is not null and an assistant could be found.

GetItem<T>

#
Gets the item from the specified pin.
bool GetItem<T>(
pinId,
TypeId of pin.
out T
value
Pin value will be returned here. This is a reference to the actual item, do not modify it unless you know exactly what you are doing.
)
True if pin of the given type was attached and it had a value.
AccessExceptionThrown if the IParameter.Access of the pin is not Access.Item.

GetItem<T>

#
Gets the item from the specified input parameter.
bool GetItem<T>(
index,
Index of parameter.
out T
value
Item value will be returned here. This is a reference to the actual item, do not modify it unless you know exactly what you are doing.
)
True if item is not null.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Item.

GetItemArray<T>

#
Gets the item array from the specified input parameter.
bool GetItemArray<T>(
index,
Index of parameter.
out T[]
items
Array of all items (including all nulls) will be returned here. These are references to the actual items, do not modify them unless you know exactly what you are doing.
)
True if array is not empty.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Twig.

GetItemWithCurveAssistant

#
Gets an item and its associated curve assistant. If no assistant is available, this method will append an error message and throw.
bool GetItemWithCurveAssistant(
index,
Index of parameter.
out object
value,
Item value will be return here.
assistant
Assistant associated with item type.
)
Always true.

GetItemWithSurfaceAssistant

#
Gets an item and its associated surface assistant. If no assistant is available, this method will append an error message and throw.
bool GetItemWithSurfaceAssistant(
index,
Index of parameter.
out object
value,
Item value will be return here.
assistant
Assistant associated with item type.
)
Always true.

GetItemWithTypeAssistant

#
Gets an item and its associated type assistant. If no assistant is available, this method will append an error message and throw.
bool GetItemWithTypeAssistant(
index,
Index of parameter.
out object
value,
Item value will be return here.
assistant
Assistant associated with item type.
)
Always true.

GetITree

#
Gets the data tree from the specified input parameter.
bool GetITree(
index,
Index of parameter.
out ITree
tree
Tree will be returned here.
)
True if a tree was available.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Tree.

GetITwig

#
Gets the tree twig from the specified input parameter.
bool GetITwig(
index,
Index of parameter.
out ITwig
twig
Twig will be returned here. This is a reference to the actual twig, do not modify it unless you know exactly what you are doing.
)
True if twig is not empty.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Twig.

GetLanguage

#
Gets the language locale for this component. This will either harvest the data from an attached LinguisticCulturePin or it will return Language.Invariant.
bool GetLanguage(
out Language
language
)
True if the language is specified via a pin.

GetMeta

#
Gets the meta data (if any) associated with the item. You could access the data using GetPear<T>(int, Pear<T>), which has meta data embedded.
MetaData GetMeta(
index
Index of parameter.
)
True if item is not null.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Item.

GetMetaArray

#
Gets the meta data array from the specified input parameter.
bool GetMetaArray(
index,
Index of parameter.
out MetaData[]
metas
Array of meta data associated with each item.
)
True if array is not empty.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Twig.

GetNull

#
Gets whether the item is considered a null value. If you are accessing the items using GetItem<T>(int, T), and T is a value type, you must check for null this way. Or you could access the data using GetPear<T>(int, Pear<T>), which has null state embedded.
bool GetNull(
index
Index of parameter.
)
True if item is not null.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Item.

GetNullArray

#
Gets the null array from the specified input parameter.
bool GetNullArray(
index,
Index of parameter.
out bool[]
nulls
Array of booleans indicating whether each item is assumed to be null. This is only meaningful if the data consists of value types.
)
True if array is not empty.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Twig.

GetPear<T>

#
Gets the item+meta data pear from the specified input parameter. For this method to not throw exceptions the Access of the associated parameter must be set to Item.
bool GetPear<T>(
index,
Index of parameter.
out Pear<T>
pear
Pear containing item value and meta data will be returned here. This is a reference to the actual item, do not modify it unless you know exactly what you are doing.
)
True if item and/or data are not null.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Item.

GetPears<T>

#
Gets an array of Pear<T> instances from the specified input. This method works both when the IParameter.Access of the parameter is set to Access.Item or Access.Twig.
bool GetPears<T>(
index,
Index of parameter.
out Pear<T>[]
pears
Array of pears, including nulls. May be an empty array.
)
Always true.

GetPointsInPlane

#
Gets a set of three dimensional points and their projection onto a two-dimensional plane.
bool GetPointsInPlane(
planeParameter,
Index of plane parameter. Parameter IParameter.Requirement may be any Requirement. If no plane was provided, a plane will be fitted to the 3d points.
pointParameter,
Index of point parameter. This must be a twig parameter.
out Plane
plane,
Plane, harvested or fitted.
out Point3d[]
points3,
Three dimensional points without any nulls.
out Point2d[]
points2
Projections of three dimensional points onto plane.
)
True on success, false on failure.

GetQuaternion

#
Gets the quaternion stored in the specified input parameter. If the value is not a quaternion based transformation an error will be appended and false will be returned.
bool GetQuaternion(
index,
quaternion
)

GetSingularTreeValue<T>

#
Gets the one and only non-null value out of an input tree. If the tree contains zero or more-than-one non-null values, an error will be added.
bool GetSingularTreeValue<T>(
parameter,
Tree input parameter.
name,
Name of value to retrieve.
out T
value
Value if found.
)
True on success, false on failure.

GetTolerance

#
Gets the angular tolerance for this iteration. This will either harvest the data from an attached AngularTolerancePin or it will retrieve the angular tolerance of the current Rhino document.
bool GetTolerance(
out Angle
angularTolerance
)
True if tolerance was reliably retrieved, false if it's a fallback value.

GetTolerance

#
Gets the absolute tolerance for this iteration. This will either harvest the data from an attached AbsoluteTolerancePin or it will retrieve the absolute tolerance of the current Rhino document.
bool GetTolerance(
out double
absoluteTolerance,
out double
relativeTolerance
)
True if tolerance was reliably retrieved, false if it's a fallback value.

GetTolerance

#
Gets the absolute tolerance for this iteration. This will either harvest the data from an attached AbsoluteTolerancePin or it will retrieve the absolute tolerance of the current Rhino document.
bool GetTolerance(
out double
absoluteTolerance
Absolute tolerance.
)
True if tolerance was reliably retrieved, false if it's a fallback value.

GetTransform

#
Gets the proper transformation stored in the specified input parameter. Use this method if you do not wish to have to check whether the stored transformation represents a quaternion.
bool GetTransform(
index,
transform
)

GetTree<T>

#
Gets the data tree from the specified input parameter. For this method to not throw exceptions the Access of the associated parameter must be set to Tree.
bool GetTree<T>(
index,
Index of parameter.
out Tree<T>
tree
Tree will be returned here. This is a reference to the actual tree, do not modify it unless you know exactly what you are doing.
)
True is a tree was available.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Tree.

GetTwig<T>

#
Gets the tree twig from the specified input parameter. For this method to not throw exceptions the Access of the associated parameter must be set to Twig.
bool GetTwig<T>(
index,
Index of parameter.
out Twig<T>
twig
Twig will be returned here. This is a reference to the actual twig, do not modify it unless you know exactly what you are doing.
)
True if twig is not empty.
AccessExceptionThrown if the IParameter.Access of the input parameter is not Access.Twig.

GetUnitScaling

#
Gets the unit system scaling factor for this iteration.
bool GetUnitScaling(
out double
unitSystemScaling
The scaling factor required to convert shapes specified in the associated unit system to the Rhino document unit system.
)
True if there is an associated unit system pin.

GetUnitScaling

#
Gets the unit system scaling factor for this iteration.
bool GetUnitScaling(
baseSystem,
The input unit system.
out double
unitSystemScaling
The scaling factor required to go from your base system to the document system.
)
True if a non-unit scaling factor is required.

GetUnitSystem

#
Gets the unit system for this iteration. This will either harvest the data from an attached UnitSystemPin or it will retrieve the unit system of the current Rhino document.
bool GetUnitSystem(
unitSystem
)
True if the unit system came from a pin override.

HasInputChanged

#
Gets whether the specified input contains different data from the previous time this component was run. Note that it does not perform a value comparison, it only checks to see whether the volatile data inside the input parameter is the exact same Tree instance as it is now.
bool HasInputChanged(
index
Index of input to check.
)
True is the input now contains a different data tree than during the previous solution.

NameIn

#
Gets the IDocumentObject.DisplayName of the indicated input parameter.
string NameIn(
index
)

NameOut

#
Gets the IDocumentObject.DisplayName of the indicated output parameter.
string NameOut(
index
)

Rectify<T>

#
Make sure a value is repaired if it fails a test. This will automatically log a warning.
void Rectify<T>(
ref T
value,
Value to test.
Func<T, bool>
check,
Validity delegate.
Func<T, T>
repair,
Repair delegate.
text,
Warning message in case of invalid data.
details = null
Warning explanation in case of invalid data.
)
True if value did not need repairing.

RectifyDomain

#
Make sure a number is within some domain.
void RectifyDomain(
ref double
value,
Value to test.
(double min, double max)
interval,
Allowed domain.
name
Parameter name.
)
True if value did not need repairing.

RectifyDomain

#
Make sure an integer is within some domain.
void RectifyDomain(
ref int
value,
Value to test.
(int min, int max)
interval,
Allowed domain (inclusive lower and upper limits).
name
Parameter name.
)
True if value did not need repairing.

RectifyEnum<T>

#
Test an integer to see if it is part of an enum.
void RectifyEnum<T>(
ref int
value,
Value to check.
T
fallback,
Fallback value to assign.
name,
Name of parameter.
kind
Name of enum.
)
obsoleteConsider just using GetItem with the Enum type as constraint.

RectifyLessThan

#
Make sure a number is less than another number.
void RectifyLessThan(
ref double
a,
Number to rectify.
b,
Limit.
nameA,
Name of first number.
nameB
Name of second number.
)

RectifyLessThan

#
Make sure a number is less than another number.
void RectifyLessThan(
ref int
a,
Number to rectify.
b,
Limit.
nameA,
Name of first number.
nameB
Name of second number.
)

RectifyLessThanOrEqualTo

#
Make sure a number is less than or equal to another number.
void RectifyLessThanOrEqualTo(
ref double
a,
Number to rectify.
b,
Limit.
nameA,
Name of first number.
nameB
Name of second number.
)

RectifyLessThanOrEqualTo

#
Make sure a number is less than or equal to another number.
void RectifyLessThanOrEqualTo(
ref int
a,
Number to rectify.
b,
Limit.
nameA,
Name of first number.
nameB
Name of second number.
)

RectifyNonNegative

#
Make sure a number is at least zero.
void RectifyNonNegative(
ref double
t,
Number to repair.
name
Parameter name.
)
True if value did not need repairing.

RectifyNonNegative

#
Make sure an integer is at least zero.
void RectifyNonNegative(
ref int
t,
Number to repair.
name
Parameter name.
)
True if value did not need repairing.

RectifyPositive

#
Make sure a number is at least somewhat positive.
void RectifyPositive(
ref double
t,
Number to repair.
limit,
The smallest number considered positive.
name
Parameter name.
)
True if value did not need repairing.

RectifyPositive

#
Make sure a number is at least somewhat positive. Hard-cutoff in this method is 1e-6
void RectifyPositive(
ref double
t,
Number to repair.
name
Parameter name.
)
True if value did not need repairing.

RectifyPositive

#
Make sure an integer is at least one.
void RectifyPositive(
ref int
t,
Number to repair.
name
Parameter name.
)
True if value did not need repairing.

SetItem

#
Sets an item with some meta data to the specified output parameter.
void SetItem(
index,
Index of parameter.
value,
Value to assign.
meta
Meta data to include.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Item.

SetItem

#
Sets the item to the specified output parameter.
void SetItem(
index,
Index of parameter.
value
Value to assign.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Item.

SetPear

#
Sets the item+meta data pear to the specified output parameter.
void SetPear(
index,
Index of parameter.
pear
Pear to assign.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Item.

SetProgress

#
Typically the component progress just counts how many iterations have been completed out of the total set. However it is possible to provide more fine-grained progress feedback using this method. This is typically only sensible if the component performs a potentially long running process in each iteration such as brep solid operations or quad-remeshing, which is able to synchronously report on its own progress.
void SetProgress(
percentage
A value between zero and one-hundred indicating the progress for this iteration.
)

SetTree

#
Sets the data tree to the specified output parameter. It is the responsibility of the caller to ensure that multiple assigned trees are not inadvertendly merged. A tree prefix can be obtained from this IDataAccess instance to avoid that.
void SetTree(
index,
Index of parameter.
tree
Tree to assign.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Tree.

SetTwig

#
Sets the twig to the specified output parameter.
void SetTwig(
index,
Index of parameter.
twig
Twig to assign.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Twig.

SetTwig<T>

#
Sets the twig to the specified output parameter.
void SetTwig<T>(
index,
Index of parameter.
T[]
values,
Value to store in the twig.
metas = null,
Optional meta data per item.
bool[]
nulls = null
Optional null states per item.
)
AccessExceptionThrown if the IParameter.Access of the output parameter is not Access.Twig.

TryTransform

#
Try and apply a squishy deformation to the item and meta data inside a pear. This method calls GetTolerance(double) as part of its process, so the component that calls this should probably be a IPinCushion component which supports AbsoluteTolerancePin.
IPear TryTransform(
pear,
Pear to transform.
deformation
Deformation to apply.
)
Pear with transformed item and meta data, or the original pear if the value does not support transformation.

TryTransform

#
Try and apply a linear transformation to the item and meta data inside a pear.
IPear TryTransform(
value,
Value to transform.
transformation
Transformation to apply.
)
Pear with transformed item and meta data, or the original pear if the value does not support transformation.

Verify<T>

#
Apply a test to a value. This will automatically throw an exception if it doesn't pass.
void Verify<T>(
T
value,
Value to test.
Func<T, bool>
check,
Validity delegate.
text,
Error message in case of invalid data.
details = null
Error explanation in case of invalid data.
)

VerifyAssistant

#
Verify that a type assistant is available for a given value. If no assistant is available this method will throw.
void VerifyAssistant(
value,
Value to assist.
assistant
Assistant for value, if any.
)

VerifyCurveAssistant

#
Verify that a curve assistant is available for a given value. If no assistant is available this method will throw.
void VerifyCurveAssistant(
value,
Value to assist.
assistant
Assistant for value, if any.
)

VerifyDomain

#
Make sure a number is within some domain. This will automatically throw an exception if it isn't.
void VerifyDomain(
value,
Value to test.
(double min, double max)
interval,
Allowed domain.
name
Parameter name.
)

VerifyDomain

#
Make sure an integer is within some domain. This will automatically throw an exception if it isn't.
void VerifyDomain(
value,
Value to test.
(int min, int max)
interval,
Allowed domain (inclusive lower and upper bounds).
name
Parameter name.
)

VerifyEqualTwigItemCount

#
Verify that two twigs have the same number of non-null values.
void VerifyEqualTwigItemCount(
a,
First twig.
b,
Second twig.
nameA,
Name of first twig.
nameB
Name of second twig.
)

VerifyEqualTwigLeafCount

#
Verify that two twigs have the same length.
void VerifyEqualTwigLeafCount(
a,
First twig.
b,
Second twig.
nameA,
Name of first twig.
nameB
Name of second twig.
)

VerifyNonCoincident

#
Verify two points are not coincident.
void VerifyNonCoincident(
a,
First point.
b,
Second point.
tolerance,
Tolerance distance for coincident.
nameA,
Name of first point.
nameB
Name of second point.
)

VerifyNonCoincident

#
Verify two points are not coincident.
void VerifyNonCoincident(
a,
First point.
b,
Second point.
nameA,
Name of first point.
nameB
Name of second point.
)

VerifyNonCoincident

#
Verify two points are not coincident.
void VerifyNonCoincident(
a,
First point.
b,
Second point.
tolerance,
Tolerance distance for coincident.
nameA,
Name of first point.
nameB
Name of second point.
)

VerifyNonCoincident

#
Verify two points are not coincident.
void VerifyNonCoincident(
a,
First point.
b,
Second point.
nameA,
Name of first point.
nameB
Name of second point.
)

VerifyNonColinear

#
Verify three points are not coincident or collinear.
void VerifyNonColinear(
a,
First point.
b,
Second point.
c,
Third point.
tolerance,
Tolerance distance for coincident.
nameA,
Name of first point.
nameB,
Name of second point.
nameC
Name of third point.
)

VerifyNonColinear

#
Verify three points are not coincident or collinear.
void VerifyNonColinear(
a,
First point.
b,
Second point.
c,
Third point.
nameA,
Name of first point.
nameB,
Name of second point.
nameC
Name of third point.
)

VerifyNonEmpty

#
Verify an array is not null or empty.
void VerifyNonEmpty(
array,
name
)

VerifyNonEmpty

#
Verify a string is not null or empty.
void VerifyNonEmpty(
text,
name
)

VerifyNonEqual

#
Verify two numbers are not identical. This will automatically throw an exception if they aren't.
void VerifyNonEqual(
a,
First number.
b,
Second number.
delta,
Difference tolerance.
nameA,
Name of first parameter.
nameB
Name of second parameter.
)

VerifyNonEqual

#
Verify two numbers are not identical. This will automatically throw an exception if they aren't.
void VerifyNonEqual(
a,
First number.
b,
Second number.
nameA,
Name of first parameter.
nameB
Name of second parameter.
)

VerifyNonEqual

#
Verify two numbers are not identical. This will automatically throw an exception if they aren't.
void VerifyNonEqual(
a,
First number.
b,
Second number.
nameA,
Name of first parameter.
nameB
Name of second parameter.
)

VerifyNonParallel

#
Verify two vectors are not parallel or anti-parallel.
void VerifyNonParallel(
a,
First vector.
b,
Second vector.
tolerance,
Angle tolerance, in radians.
nameA,
Name of first vector argument.
nameB
Name of second vector argument.
)

VerifyNonZeroVector

#
Verify a vector does not have zero length.
void VerifyNonZeroVector(
vector,
Vector to test.
name
Name of vector argument.
)

VerifySurfaceAssistant

#
Verify that a surface assistant is available for a given value. If no assistant is available this method will throw.
void VerifySurfaceAssistant(
value,
Value to assist.
assistant
Assistant for value, if any.
)

VerifyTwigItemCount

#
Verify that a twig contains a specific number of non-null values.
void VerifyTwigItemCount(
twig,
Twig to check.
minimum,
Lowest acceptable amount.
maximum,
Highest acceptable amount.
name,
Twig identifier.
details = null
Fault explanation.
)

VerifyTwigLeafCount

#
Verify that a twig contains a specific number of values (both nulls and non-nulls).
void VerifyTwigLeafCount(
twig,
Twig to check.
minimum,
Lowest acceptable amount.
maximum,
Highest acceptable amount.
name,
Twig identifier.
details = null
Fault explanation.
)

VerifyUnitVector

#
Ensure a vector has unit length.
void VerifyUnitVector(
value,
Vector to unitise.
name
Name of vector.
)
True if vector was or could be unitised, false if not.