本文整理汇总了C#中System.Point.SetSuccess方法的典型用法代码示例。如果您正苦于以下问题:C# Point.SetSuccess方法的具体用法?C# Point.SetSuccess怎么用?C# Point.SetSuccess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Point
的用法示例。
在下文中一共展示了Point.SetSuccess方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Point
public bool ClosestPointOnSurf
(
FeatureUpdateContext updateContext,
[DefaultExpression("baseCS")] CoordinateSystem cs,
[Replicatable] IPoint point,
[Replicatable] BSplineSurface surf,
[DefaultValue(0.01)] double tol,
[Out] ref Point CPpoint,
[Out] ref double Dist,
[Out] ref DVector3d Normal
)
{
this.LetConstituentFeaturesBeDirectlyIndexible();
this.DeleteConstituentFeatures(updateContext);
Point2d tempPt;
DPoint3d dp = CerverFunctions.closestPointOnSurf(point.DPoint3d, surf, tol, out Dist, out tempPt, out Normal);
Point outPt = new Point(this);
outPt.FromDPoint3d(updateContext, cs, dp);
outPt.SetSuccess(true);
AddConstituentFeature(outPt);
CPpoint = outPt;
return true;
}
示例2: foreach
public bool MeshConnectedVerticies
(
FeatureUpdateContext updateContext,
[DefaultExpression("baseCS")] CoordinateSystem cs,
Mesh mesh,
[Replicatable] IPoint SearchPoint,
[DefaultValue(false)] bool generatePoints,
[Out] ref int[] ConnectedVtxID,
[Out] ref Point[] ConnectedVtx,
[Out] ref DPoint3d[] DConnectedVtx
)
{
this.LetConstituentFeaturesBeDirectlyIndexible();
this.DeleteConstituentFeatures(updateContext);
//System.Diagnostics.Stopwatch stp = new Stopwatch();
// stp.Start();
DPoint3d[] cntVtx = mesh.ConnectedVtx(SearchPoint.DPoint3d, out ConnectedVtxID);
DConnectedVtx = cntVtx;
// Feature.Print("area 1 " + stp.ElapsedMilliseconds.ToString());
// stp.Reset();
if (generatePoints)
{
List<Point> vtx = new List<Point>(cntVtx.Length);
foreach (var v in cntVtx)
{
Point p = new Point(this);
p.FromDPoint3d(updateContext, cs, v);
p.SetSuccess(true);
vtx.Add(p);
}
this.AddReplicatedChildFeatures(ConnectedVtx);
ConnectedVtx = vtx.ToArray();
}
// Feature.Print("area 2 " + stp.ElapsedMilliseconds.ToString());
// stp.Stop();
return true;
}