# PathShape class

Namespace: [Grasshopper2.Imaging.Raycasting.Shapes](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.shapes.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class PathShape : Shape
```

Represents a collection of potentially non-consecutive segments.

## Properties

- [ArcCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/arccount.md): Gets the total number of arc segments.
- [BezierCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/beziercount.md): Gets the total number of bezier segments.
- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/bounds.md): Gets the bounding box for this shape.
- [Empty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/empty.md): (static) Gets the empty path with zero width.
- [IsClosed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/isclosed.md): Gets whether this path is closed. Paths that are nearly closed are also considered truly closed.
- [LineCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/linecount.md): Gets the total number of line segments.
- [SegmentCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/segmentcount.md): Gets the total number of segments.
- [Width](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/width.md): Gets the width of this path.

## Methods

- [AddSegment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/addsegment.md): (4 overloads) Add an arc segment to this path.
- [Close](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/close.md): Close this path with a linear segment.
- [CreateEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/createempty.md): (static) Create an empty path shape with a specific width.
- [CreateFromSegments](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/createfromsegments.md): (static) Create a path from individual segments.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/iscoincident.md): Test whether a specific coordinate is coincident with this obstacle.
- [ModifyWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/modifywidth.md): Modify the width of this shape.
- [Overlap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/overlap.md): Determine the overlap between this shape and a box.
- [SegmentEnd](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/segmentend.md): Gets the end point of the segment at the given index.
- [SegmentStart](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.pathshape/segmentstart.md): Gets the start point of the segment at the given index.
