[IoId("00000000-3b2e-4dce-a283-5315cb5b29c6")] public class FleeField : ShapeField
A field with vectors pointing away from one or more shapes.

Constructors

FleeField

#
Create a fleeing field for various shapes.
public FleeField(
falloff,
Falloff based on distance
nearestOnly,
If true only the nearest shape is considered.
shapes
Shapes to flee.
)

FleeField

#
public FleeField(
reader
)

Properties

Count

protected int Count { get; }
inherited fromShapeField

Falloff

#
public Function Falloff { get; }

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

Name

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

NearestOnly

#
public bool NearestOnly { get; }

Type

#
public override FieldType Type { get; }
Field.Type

Methods

Distance

protected double Distance(
index,
point
)
inherited fromShapeField

Filter

Remove all shape which are of a different type.
protected int Filter(
params ShapeType[]
allowedTypes
All allowed types.
)
inherited fromShapeField
Number of shapes removed.

Format

Create a string representation of this field.
public virtual string Format()
inherited fromField

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

NearestShape

protected int NearestShape(
point,
out double
distance
)
inherited fromShapeField

NearestShape

protected int NearestShape(
point,
out Point3d
closestPoint,
closestNormal
)
inherited fromShapeField

Project

protected (Point3d point, Vector3d normal) Project(
index,
point
)
inherited fromShapeField

ScalarAt

#
public override double ScalarAt(
point
)
Field.ScalarAt

Store

#
public override void Store(
writer
)
ShapeField.Store

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 virtual Result<Field> TryModify(
text
Modifier notation.
)
inherited fromField
Result of parsing operation.

VectorAt

#
public override Vector3d VectorAt(
point
)
Field.VectorAt