本文整理汇总了C#中System.Edge.GetEndPointReference方法的典型用法代码示例。如果您正苦于以下问题:C# Edge.GetEndPointReference方法的具体用法?C# Edge.GetEndPointReference怎么用?C# Edge.GetEndPointReference使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Edge
的用法示例。
在下文中一共展示了Edge.GetEndPointReference方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Stream
private void Stream(ArrayList data, Edge edge)
{
data.Add(new Snoop.Data.ClassSeparator(typeof(Edge)));
// Curve Type
{
string curveType = "None";
if (edge.AsCurve() != null)
{
Curve crv = edge.AsCurve();
if (crv is Arc)
curveType = "Arc";
else if (crv is CylindricalHelix)
curveType = "CylindricalHelix";
else if (crv is Ellipse)
curveType = "Ellipse";
else if (crv is HermiteSpline)
curveType = "HermiteSpline";
else if (crv is Line)
curveType = "Line";
else if (crv is NurbSpline)
curveType = "NurbSpline";
}
data.Add(new Snoop.Data.String("Curve Type", curveType));
}
try
{
data.Add(new Snoop.Data.Object("Curve", edge.AsCurve()));
}
catch (System.Exception ex)
{
data.Add(new Snoop.Data.Exception("Curve", ex));
}
try
{
data.Add(new Snoop.Data.Object("Start point reference", edge.GetEndPointReference(0)));
}
catch (System.Exception ex)
{
data.Add(new Snoop.Data.Exception("Start point reference", ex));
}
try
{
data.Add(new Snoop.Data.Object("End point reference", edge.GetEndPointReference(1)));
}
catch (System.Exception ex)
{
data.Add(new Snoop.Data.Exception("End point reference", ex));
}
data.Add(new Snoop.Data.Object("Reference", edge.Reference));
data.Add(new Snoop.Data.Double("Approximate length", edge.ApproximateLength));
data.Add(new Snoop.Data.Object("Face [0]", edge.GetFace(0)));
data.Add(new Snoop.Data.Object("Face [1]", edge.GetFace(1)));
data.Add(new Snoop.Data.CategorySeparator("Tesselated Points"));
System.Collections.Generic.IList<XYZ> pts = edge.Tessellate();
int i = 0;
foreach (XYZ pt in pts)
{
data.Add(new Snoop.Data.Xyz(string.Format("PT [{0:d}]", i++), pt));
}
// TBD: not sure how to use these yet...
// TesselateOnFace ??
}