GH_Field

References
Represents a field of forces.

Constructors

GH_Field

#
public GH_Field()
Blank constructor.

GH_Field

#
public GH_Field(GH_Field other)
Copy constructor.
other (GH_Field)Field to duplicate.

Properties

ClippingBox

#
public BoundingBox ClippingBox { get; }
ClippingBox

Elements

#
public List<IGH_FieldElement> Elements { get; }
Gets the list of elements of this field.

IsValid

#
public bool IsValid { get; }
IsValid

IsValidWhyNot

#
public string IsValidWhyNot { get; }
IsValidWhyNot

TypeDescription

#
public string TypeDescription { get; }
TypeDescription

TypeName

#
public string TypeName { get; }
TypeName

Methods

CastFrom

#
public bool CastFrom(object source)
source (object)
CastFrom

CastTo<T>

#
public bool CastTo<T>(ref T target)
target (ref T)
CastTo

CurvatureAt

#
public double CurvatureAt(Point3d location)
location (Point3d)

DrawViewportMeshes

#
public void DrawViewportMeshes(GH_PreviewMeshArgs args)
args (GH_PreviewMeshArgs)
DrawViewportMeshes

DrawViewportWires

#
public void DrawViewportWires(GH_PreviewWireArgs args)
args (GH_PreviewWireArgs)
DrawViewportWires

Duplicate

#
public IGH_Goo Duplicate()
Duplicate

EmitProxy

#
public IGH_GooProxy EmitProxy()
EmitProxy

Read

#
public bool Read(GH_IReader reader)
reader (GH_IReader)
Read

ScriptVariable

#
public object ScriptVariable()
ScriptVariable

SolveStep

#
public Vector3d SolveStep(Point3d location, double factor, GH_DifferentialSolver method)
Move a point through the field.
location (Point3d)Point to move from.
factor (double)Multiplication factor to apply to sampling. A low factor results in more accurate sampling, but smaller steps.
method (GH_DifferentialSolver)Estimator to use.
New point location.

SolveSteps

#
public Point3dList SolveSteps(Point3d location, double accuracy, int count, GH_DifferentialSolver method)
Move a point through a succession of steps.
location (Point3d)Point to move.
accuracy (double)Rough accuracy.
count (int)Number of samples to take.
method (GH_DifferentialSolver)Estimator to use.
A track (including the original location) of all the samples.

TensorAt

#
public Vector3d TensorAt(Point3d location)
Compute the field tensor at the given location as contributed by all the field elements.
location (Point3d)Location to sample field at.
The strength and direction of the field at the given location.

ToString

#
public string ToString()
ToString

Write

#
public bool Write(GH_IWriter writer)
writer (GH_IWriter)
Write