# PolygonShape 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 PolygonShape : Shape
```

Represents an n-gon for ray intersections. Shape may have concave portions, although self-intersections are ill-advised.

## Constructors

- [PolygonShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/ctor.md): (4 overloads) Create a new n-gon.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/bounds.md): Gets the bounding box for this shape.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/count.md): Gets the number of corners.
- [IsEmpty](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/isempty.md): Gets whether this polygon is considered empty (i.e. zero area).

## Methods

- [Corner](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/corner.md): Gets the corner at the specified index.
- [IsCoincident](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/iscoincident.md): Test whether a specific coordinate is coincident with this obstacle.
- [Overlap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shapes.polygonshape/overlap.md): Determine the overlap between this shape and a box.
