/// <summary> /// Comparable for two cells /// </summary> /// <param name="other"></param> /// <returns></returns> public bool CompareTo(AttCoordCell other) { //check x if (coords.x == other.coords.x) { //if x is equal check y if (coords.y == other.coords.y) { //if y is equal, return the compare of z return(coords.z == other.coords.z); } //otherwise fall through } //otherwise return this return(false); }
public static void WriteCell(BinaryWriter writer, AttCoordCell cell) { FieldCell.WriteCell(writer, cell.fieldCell); Point.WritePoint(writer, cell.coords); }
/// <summary> /// Inserts point into the PointCloud array to be mapped. /// </summary> /// <param name="p">VertexPoint that holds the x, y and z coordinate of the original model data.</param> public void insertPoint(AttCoordCell p) { insertPoint(p.fieldCell.cellNum, p.coords.x, p.coords.y, p.coords.z); }