CrystalEdge

References
public class CrystalEdge : IStorable
Immutable edge of a material thumbnail gem.

Constructors

CrystalEdge

#
public CrystalEdge(IReader reader)
Deserialize a shape from an archive.
reader (IReader)

CrystalEdge

#
public CrystalEdge(Locus point0, Locus point1, Locus normal0, Locus normal1)
Create a new crystal edge.
point0 (Locus)Start of edge.
point1 (Locus)End of edge.
normal0 (Locus)Normal of first adjacent face.
normal1 (Locus)Normal of second adjacent face.

Properties

Normal0

#
public Locus Normal0 { get; }
Gets the plane of the first adjacent face to this edge.

Normal1

#
public Locus Normal1 { get; }
Gets the plane of the second adjacent face to this edge.

Point0

#
public Locus Point0 { get; }
Gets the start point of the edge.

Point1

#
public Locus Point1 { get; }
Gets the end point of the edge.

Visibility

#
public CrystalVisibility Visibility { get; }
Gets the visibility of this edge.

Methods

Render

#
public void Render(Graphics graphics, GuiseCurve guise)
Render this edge to a graphics context.
graphics (Graphics)
guise (GuiseCurve)

Store

#
public void Store(IWriter writer)
Serialize this shape.
writer (IWriter)
Store

Transform

#
public CrystalEdge Transform(Transform transform)
Transform this edge.
transform (Transform)Tranformation.
Transformed edge.