GetShape
(
IVertex oVertex
)
{
Debug.Assert(oVertex != null);
AssertValid();
// Start with the default shape.
VertexShape eShape = m_eShape;
Object oPerVertexShapeAsObject;
// Check for a per-vertex shape.
if ( oVertex.TryGetValue(ReservedMetadataKeys.PerVertexShape,
typeof(VertexShape), out oPerVertexShapeAsObject) )
{
eShape = (VertexShape)oPerVertexShapeAsObject;
}
return (eShape);
}