von JuergenH » 09.05.2020, 20:27
Nachfolgendes Polygon wird nicht räumlich (als Körper) erzeugt, d.h. es hat Fehler:
1) Z=10 wird wie Z=0 (keine Höhe) dargestellt
also nur als Fläche in Höhe z=10
2) die 2d Darstellung zeigt die gewünschte Farbe nicht.
Was ist falsch?
Befehle:
// faktor: Zoomfaktor für Editor, Muliplikator für Parameter
faktor 0.5,1.0
// das ist eine Polygon-Fläche, Pkt-zahl min.3, max.8 !
// poygon2d: x1,y1, x2,y2, x3,y3, x4,y4, x5,y5
polygon2d -274,-138, 214,-138, 274,-63, 274,138, -274,138
// color: Rotanteil [0...1], Grünanteil [0...1], Blauanteil [0...1], Geländefarbe
color 0.00,0.50,0.25
// polygon: x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4, x5,y5,z5
polygon -274,-138,10, 214,-138,10, 274,-63,10, 274,138,10, -274,138,10
// color: Rotanteil [0...1], Grünanteil [0...1], Blauanteil [0...1], Geländefarbe
color 0.00,0.50,0.25
//anfasser2d: Position des Anfasserrechtecks x,y
anfasser2d 100,0
Nachfolgendes Polygon wird [b]nicht räumlich[/b] (als Körper) erzeugt, d.h. es hat Fehler:
[b]1)[/b] Z=10 wird wie Z=0 (keine Höhe) dargestellt
also nur als Fläche in Höhe z=10
[b]2)[/b] die 2d Darstellung zeigt die gewünschte Farbe nicht.
Was ist falsch?
[b]Befehle:[/b]
// faktor: Zoomfaktor für Editor, Muliplikator für Parameter
faktor 0.5,1.0
// das ist eine Polygon-Fläche, Pkt-zahl min.3, max.8 !
// poygon2d: x1,y1, x2,y2, x3,y3, x4,y4, x5,y5
polygon2d -274,-138, 214,-138, 274,-63, 274,138, -274,138
// color: Rotanteil [0...1], Grünanteil [0...1], Blauanteil [0...1], Geländefarbe
color 0.00,0.50,0.25
// polygon: x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4, x5,y5,z5
polygon -274,-138,10, 214,-138,10, 274,-63,10, 274,138,10, -274,138,10
// color: Rotanteil [0...1], Grünanteil [0...1], Blauanteil [0...1], Geländefarbe
color 0.00,0.50,0.25
//anfasser2d: Position des Anfasserrechtecks x,y
anfasser2d 100,0