예제 #1
0
 /// <summary>
 /// Returns the Euclidean length of the halfedge.
 /// </summary>
 /// <returns></returns>
 public static double GetLength <V, E>(this Halfedge <V, E> hedge, Func <V, Vec3d> getPosition)
     where V : HeVertex <V, E>
     where E : Halfedge <V, E>
 {
     return(getPosition(hedge.Start).DistanceTo(getPosition(hedge.End)));
 }
예제 #2
0
 /// <summary>
 /// Returns the Euclidean length of the halfedge.
 /// </summary>
 public static double GetLength <V, E>(this Halfedge <V, E> hedge)
     where V : HeVertex <V, E>, IPosition3d
     where E : Halfedge <V, E>
 {
     return(GetLength(hedge, IPosition3d <V> .Get));
 }