本文整理汇总了C#中PathInfo.GetSections方法的典型用法代码示例。如果您正苦于以下问题:C# PathInfo.GetSections方法的具体用法?C# PathInfo.GetSections怎么用?C# PathInfo.GetSections使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PathInfo
的用法示例。
在下文中一共展示了PathInfo.GetSections方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetCurrentFace
void SetCurrentFace(int faceIndex)
{
// Do nothing if the leg is unchanged
if (faceIndex == m_CurFaceIndex)
return;
if (faceIndex < 0 || faceIndex >= m_Faces.Count)
throw new IndexOutOfRangeException();
// Remember the new leg
m_CurFaceIndex = faceIndex;
// Calculate the rotation and scaling
PathInfo path = new PathInfo(m_pop.StartPoint, m_pop.EndPoint, GetLegs());
// Obtain the spans on the current face
m_FaceSections = path.GetSections(CurrentFace);
}
示例2: Rework
/// <summary>
/// Recalculates the path after some sort of change, and erases painting so that it can
/// be redrawn in idle time.
/// </summary>
void Rework()
{
// Rework the geometry for the sections on the current leg
var path = new PathInfo(m_pop.StartPoint, m_pop.EndPoint, GetLegs());
m_FaceSections = path.GetSections(CurrentFace);
ShowPrecision(path);
m_UpdCmd.ErasePainting();
}