public static Mesh CalculateMesh(Mesh mesh, ushort nodeID, ushort segmentID)
 {
     if (ShouldContinueMedian(nodeID, segmentID))
     {
         NetInfo netInfo = segmentID.ToSegment().Info;
         mesh = MaterialUtils.ContinuesMedian(mesh, netInfo, false);
     }
     return(mesh);
 }
 public static Material CalculateMaterial(Material material, ushort nodeID, ushort segmentID)
 {
     if (ShouldContinueMedian(nodeID, segmentID))
     {
         NetInfo netInfo = segmentID.ToSegment().Info;
         material = MaterialUtils.ContinuesMedian(material, netInfo, false);
         //todo use datamatrix for direct connect.
     }
     return(material);
 }