PreviewShape

References
public abstract class PreviewShape
Base class for various shapes used in material previews.

Constructors

PreviewShape

#
Constructor.
protected PreviewShape(
bounds
Bounds of shape.
)

PreviewShape

#
Deserialisation constructor.
protected PreviewShape(
reader
)

Properties

Bounds

#
Gets the bounding box for this shape.
public BoundingBox Bounds { get; }

Methods

CreateAngleTransform

#
Set up a transformation from a set of angles and a target.
public Transform CreateAngleTransform(
angleXy,
angleYz,
perspective,
target
)

CreateCameraTransform

#
Set up a transformation from a camera location and display radius.
public Transform CreateCameraTransform(
camera,
radius
)

Store

#
This method is called whenever the instance is required to serialize itself.
public virtual void Store(
writer
Writer object to serialize with.
)