1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96:
| unit Anzeige;
interface Procedure Daten_Darstellen( da, df, mn: Double; anzZFF, anzZEV, z1: Integer; dBDurchmesser, dBPositio, anzZDicke, elemdicke1, elemdicke2: Double);
implementation Uses Main, Math, Zahnfuss, mathe, Konturberechnung;
Type TPN = ^TDataFieldN; TDataN = record Konten: Longint; x,y,z: Extended; Count: Integer; End; TDAtafieldN = array [1..500000] of TDataN;
Type TPE = ^TDatafieldE; TDataE = Record Element: Longint; Knoten: array [1..8] of Longint End; TDataFieldE = array [1..500000] of TDataE;
TDarstellen = Object Knoten: TPN; Elemente: TPE; MerkenP, MerkenE: Longint; Allredyloaded, FirstP, FirstE: Boolean; Winkel_Pro_Zahn: Extended; constructor create; destructor done; Function Punkte_Zahnkranz(z1, mn, df: Double; anzZFF: Integer; anzDicke: Double):Boolean; Function ClearPoints: Boolean; Function ClearPointPosition: Boolean; Function ShowPoints(Anzahl: Longint): Boolean; Function AddPoints(x, y, z: Extended): Boolean; Function PointsToElement(Elem, Pkt, PktAkt: Longint): Boolean; End;
Var Darstellen: TDarstellen; pN: TPN; PE: TPE;
Function TDarstellen.Punkte_Zahnkranz(z1, mn, df: Double; anzZFF: Integer; anzDicke: Double):Boolean;
Var i11, i21, i22: Extended; i12: Integer;
Begin i11:= df / 2 - (mn * anzDicke);
i12:= Round(i11 + ((anzDicke - 1) * mn));
i21:= abs(360 / z1);
i22:= i21 / (2 * anzZFF); End;
Procedure Daten_Darstellen( da, df, mn: Double; anzZFF, anzZEV, z1: Integer; dBDurchmesser, dBPositio, anzZDicke, elemdicke1, elemdicke2: Double); Begin
GetMem(pN, SizeOf(TDAtaN) * 500000); GetMem(pE, SizeOf(TDAtaE) * 500000);
Darstellen.FirstP:= True; Darstellen.FirstE:= True; Darstellen.ClearPoints; Darstellen.ClearPointPosition; Darstellen.Punkte_Zahnkranz(z1, mn, df, anzZFF, anzZDicke); End;
usw... |