# PreviewShape class

Namespace: [Grasshopper2.UI.Crystallography](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.crystallography.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class PreviewShape
```

Base class for various shapes used in material previews.

**Derived types:** [Crystal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.crystal.md)

## Constructors

- [PreviewShape](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.previewshape/ctor.md): (2 overloads) Constructor.

## Properties

- [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.previewshape/bounds.md): Gets the bounding box for this shape.

## Methods

- [CreateAngleTransform](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.previewshape/createangletransform.md): Set up a transformation from a set of angles and a target.
- [CreateCameraTransform](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.previewshape/createcameratransform.md): Set up a transformation from a camera location and display radius.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.crystallography.previewshape/store.md): This method is called whenever the instance is required to serialize itself.
