Immutable collection of faces and edges of a material thumbnail gem.
Constructors
Crystal
#Create a new shape.
public Crystal()
name,
Crystal name.
info,
Crystal description, may be null.
edges,
Collection of shape edges.
facets
Collection of shape faces.
Properties
CrystalNames
#Enumerate over all defined crystals. Note that the crystals are stored as files on the disk and may thus be deleted or renamed at any time.
Methods
CreateCameraTransform
Set up a transformation from a camera location and display radius.
LoadFromFile
#Load a crystal from a 3dm file. This method will throw whenever something's not correct. The file must contain a single Brep object, and that brep must be closed and contain only planar faces and linear edges. Breps that are not fully convex will not show correctly, but they will load.
Returns: Loaded crystal.