# DistanceField class

Namespace: [Grasshopper2.Types.Fields.Standard](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.fields.standard.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-3b11-446b-8d90-c64fa8ca199d")]
public class DistanceField : ShapeField
```

A field with distance-to-shape scalars.

## Constructors

- [DistanceField](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/ctor.md): (2 overloads) Create a distance field for various shapes.

## Properties

- [Falloff](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/falloff.md)
- [Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/name.md)
- [NearestOnly](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/nearestonly.md)
- [Type](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/type.md)

## Methods

- [Format](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/format.md)
- [ScalarAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/scalarat.md)
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/store.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/tostring.md)
- [TryModify](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/trymodify.md): 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()](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/format.md) writes, so a value can be edited by changing the text it is displayed as. [Field.ModifierArguments(string)](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/modifierarguments.md) deals with the label in front of the arguments.
- [VectorAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.distancefield/vectorat.md)

## Inherited Members

- From [ShapeField](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield.md): [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield/count.md), [Distance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield/distance.md), [Filter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield/filter.md), [NearestShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield/nearestshape.md), [Project](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.standard.shapefield/project.md)
- From [Field](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field.md): [FormatLabel](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/formatlabel.md), [ModifierArguments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/modifierarguments.md), [Trace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.fields.field/trace.md)
