PreviewShape

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

Constructors

PreviewShape

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

PreviewShape

#
protected PreviewShape(IReader reader)
Deserialisation constructor.
reader (IReader)

Properties

Bounds

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

Methods

CreateAngleTransform

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

CreateCameraTransform

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

Store

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