# Hatch class

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[Serializable]
public class Hatch : GeometryBase
```

Represents a hatch in planar boundary loop or loops. This is a 2d entity with a plane defining a local coordinate system. The loops, patterns, angles, etc are all in this local coordinate system. The Hatch object manages the plane and loop array Fill definitions are in the HatchPattern or class derived from HatchPattern Hatch has an index to get the pattern definition from the pattern table.

## Constructors

- [Hatch](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/ctor.md): Protected constructor for internal use.

## Properties

- [BasePoint](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/basepoint.md): Gets or sets the hatch pattern base point
- [PatternIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/patternindex.md): Gets or sets the index of the pattern in the document hatch pattern table.
- [PatternRotation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/patternrotation.md): Gets or sets the relative rotation of the pattern.
- [PatternScale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/patternscale.md): Gets or sets the scaling factor of the pattern.
- [Plane](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/plane.md): Gets or sets the hatch plane

## Methods

- [Create](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/create.md): (5 overloads, static) Create a hatch with a given set of outer and inner loops
- [CreateDisplayGeometry](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/createdisplaygeometry.md): Generate geometry that would be used to draw the hatch with a given hatch pattern
- [CreateFromBrep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/createfrombrep.md): (static) Create a hatch from a planar face of a Brep
- [Explode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/explode.md): Decomposes the hatch pattern into an array of geometry.
- [Get2dCurves](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/get2dcurves.md): Gets 2d curves that define the boundaries of the hatch
- [Get3dCurves](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/get3dcurves.md): Gets 3d curves that define the boundaries of the hatch
- [GetGradientFill](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/getgradientfill.md): Get gradient fill information for this hatch. If the "GradientType" for the fill is None, then this hatch doesn't have any gradient fill.
- [ScalePattern](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/scalepattern.md): Scale the hatch's pattern
- [SetGradientFill](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/setgradientfill.md)
- [ToBrep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.hatch/tobrep.md): Constructs a Brep representation of this hatch.

## Inherited Members

- From [GeometryBase](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase.md): [HasBrepForm](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/hasbrepform.md), [IsDeformable](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/isdeformable.md), [IsDocumentControlled](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/isdocumentcontrolled.md), [IsShallowDuplicate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/isshallowduplicate.md), [ObjectType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/objecttype.md), [UserStringCount](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/userstringcount.md), [ComponentIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/componentindex.md), [DataCRC](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/datacrc.md), [DeleteAllUserStrings](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/deletealluserstrings.md), [DeleteUserString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/deleteuserstring.md), [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/dispose.md), [Duplicate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/duplicate.md), [DuplicateShallow](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/duplicateshallow.md), [GetBoundingBox](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/getboundingbox.md), [GetUserString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/getuserstring.md), [GetUserStrings](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/getuserstrings.md), [MakeDeformable](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/makedeformable.md), [MemoryEstimate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/memoryestimate.md), [NonConstOperation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/nonconstoperation.md), [OnSwitchToNonConst](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/onswitchtononconst.md), [Rotate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/rotate.md), [Scale](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/scale.md), [SetUserString](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/setuserstring.md), [Transform](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/transform.md), [Translate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.geometrybase/translate.md)
- From [CommonObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject.md): [Disposed](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/disposed.md), [HasUserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/hasuserdata.md), [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalid.md), [UserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdata.md), [UserDictionary](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdictionary.md), [ConstructConstObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/constructconstobject.md), [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/dispose.md), [EnsurePrivateCopy](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/ensureprivatecopy.md), [GetObjectData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/getobjectdata.md), [IsValidWithLog](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalidwithlog.md), [ToJSON](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/tojson.md)
