SimplexScalarField

ScalarFieldField
[IoId("00000000-e73b-4f33-8902-2092d9a63a11")] public class SimplexScalarField : ScalarField
Implements a three-dimensional simplex scalar noise field.

Constructors

SimplexScalarField

#
Create a default three dimensional simplex field.
public SimplexScalarField()

SimplexScalarField

#
Create a scalar noise field within a specific range.
public SimplexScalarField(
minimum,
maximum,
wavelength
)

SimplexScalarField

#
public SimplexScalarField(
reader
)

SimplexScalarField

#
Create a new simplex noise field.
public SimplexScalarField(Plane plane, int layers, double minimum, double maximum, double Δφ, double λ, double Δλ)
plane (Plane)Origin and orientation of noise.
layers (int)Number of noise layers (or 'octaves').
minimum (double)Minimum value.
maximum (double)Maximum value.
Δφ (double)Amplitude decay for every subsequent layer.
λ (double)Wavelength for top-most layer.
Δλ (double)Wavelength decay for every subsequent layer.

Properties

FormatLabel

Gets the name of this field condensed into a single word, which is how the name appears in formatted values.
protected string FormatLabel { get; }
inherited fromField

Maximum

#
public double Maximum { get; }

Minimum

#
public double Minimum { get; }

Name

#
public override string Name { get; }
Field.Name

Type

public override FieldType Type { get; }
inherited fromScalarField
Field.Type

Methods

AnalyticalGradientAt

public virtual Vector3d AnalyticalGradientAt(
point
)
inherited fromScalarField

Format

#
public override string Format()
Field.Format

ModifierArguments

Reduce modifier notation to just the arguments. The labelled form written by Field.Format() ("ScalarNoise min:0 max:1"), the bracketed form ("Scalar Noise (0, 1)") and a bare list of arguments ("0, 1") are all accepted, so that a displayed value can be edited by changing only the parts which matter.
protected Fragments ModifierArguments(
text
Modifier notation.
)
inherited fromField

ScalarAt

#
public override double ScalarAt(
point
)
Field.ScalarAt

Store

#
public override void Store(
writer
)
Field.Store

ToString

#
public override string ToString()
Object.ToString

Trace

Approximate a trajectory through a vector field.
public IEnumerable<Point3d> Trace(
start,
Start point of trajectory.
maximumAngle,
Maximum allowed kink angle between segments.
solver
Differential interpolation scheme to use.
)
inherited fromField
Points along the trajectory.

Trace

Approximate a trajectory through a vector field.
public IEnumerable<Point3d> Trace(
start,
Start point of trajectory.
stepSize,
Size of intermediate steps.
solver
Differential interpolation scheme to use.
)
inherited fromField
Points along the trajectory.

Trace

Approximate a trajectory through a vector field.
public Polyline Trace(
start,
Start point of trajectory.
accuracy,
Accuracy of intermediate steps. When negative, trajectory is traced backwards.
targetLength,
Length of trajectory.
solver
Differential interpolation scheme to use.
)
inherited fromField
Point at end of trajectory.

TryModify

#
Try and create a new field based on this field and modifier notation.

Only the salient properties of a field are exposed to text, the rest are copied from this instance. That is why there is no way to write a field of a specific type from nothing; there has to be one already to serve as the template. Constant scalar and vector fields are the exception, they are entirely described by a number or a vector.

Implementations are expected to accept whatever their Field.Format() writes, so a value can be edited by changing the text it is displayed as. Field.ModifierArguments(string) deals with the label in front of the arguments.

public override Result<Field> TryModify(
text
Modifier notation.
)
Result of parsing operation.
Field.TryModify

VectorAt

Evaluate the field vector component at a specific point in space. If this is a scalar-field, the returned value is *probably* a vector in the form (0,0,scalar), but this is not guaranteed.
public override Vector3d VectorAt(
point
The point at which to evaluate the field.
)
inherited fromScalarField
The vector value at the given coordinate
Field.VectorAt