gluTessNormal: Unterschied zwischen den Versionen

Aus DGL Wiki
Wechseln zu: Navigation, Suche
(Version Hochgeladen)
K ()
Zeile 26: Zeile 26:
  
 
== Beschreibung ==  
 
== Beschreibung ==  
Mit '''gluTessNormal''' definieren Sie die [[Normalen|Normale]] für ein Polygone, dass Sie definieren.<b><i>The gluTessNormal function describes a normal for a polygon that you define. All input data is projected onto a plane perpendicular to one of the three coordinate axes before tessellation, and all output triangles are oriented counterclockwise with respect to the normal. (You can obtain clockwise orientation by reversing the sign of the supplied normal). For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.</i></b>
+
Mit '''gluTessNormal''' beschreiben Sie die [[Normalen|Normale]] für ein Polygon das Sie definieren.
 +
<b><i>The gluTessNormal function describes a normal for a polygon that you define. All input data is projected onto a plane perpendicular to one of the three coordinate axes before tessellation, and all output triangles are oriented counterclockwise with respect to the normal.</i></b> (Eine Ausrichtung im Uhrzeigersinn kann erreicht werden, indem das Vorzeichen der gelieferten Normale geändert wird.)
 +
Wenn, zum Beispiel, bekannt ist, dass alle Polygone in der X-Y-Ebene liegen, ruft man '''gluTessNormal(tess, 0.0, 0.0, 1.0)''' vor dem Rendern der Polygone auf.
  
Wenn die übergebene Normale (0,0,0) ist (der Vorgabewert), wird die Normale folgendermaßen bestimmt.<b><i>The direction of the normal, up to its sign, is found by fitting a plane to the vertexes, without regard to how the vertexes are connected. It is expected that the input data lies approximately in the plane; otherwise projection perpendicular to one of the three coordinate axes can change the geometry substantially. The sign of the normal is chosen so that the sum of the signed areas of all input contours is non-negative (where a counter-clock-wise contour has positive area).</i></b>
+
Wenn die übergebene Normale (0,0,0) ist (der Vorgabewert), wird die Normale folgendermaßen bestimmt. Die Richtung der [[Normale]], im Bezug auf ihr Vorzeichen, wird gefunden in dem man eine Ebene aus den Vertexen bildet. Dabei wird die beachted wie die Vertexe miteinander verbunden sind (Reihenfolge). Es wird dabei davon ausgegangen, dass die Vertices annähernd in einer Ebene liegen. Wenn dem nicht so ist, wird <b><i>otherwise projection perpendicular to one of the three coordinate axes can change the geometry substantially. The sign of the normal is chosen so that the sum of the signed areas of all input contours is non-negative (where a counter-clock-wise contour has positive area).</i></b>
  
 
Die übergebene Normale bleibt solange gültig, bis '''gluTessNormal''' erneut aufgerufen wurde.
 
Die übergebene Normale bleibt solange gültig, bis '''gluTessNormal''' erneut aufgerufen wurde.
  
 
<br>
 
<br>
 +
 
== Siehe auch ==
 
== Siehe auch ==
 
[[gluTessBeginPolygon]], [[gluTessEndPolygon]]  
 
[[gluTessBeginPolygon]], [[gluTessEndPolygon]]  

Version vom 19. November 2004, 16:06 Uhr

Hinweis: Dieser Artikel ist noch unvollständig.
(Mehr Informationen/weitere Artikel)

{{{1}}}

Incomplete.jpg

gluTessNormal


Name

gluTessNormal - definiert die Normale für ein Polygon.


Delphi-Spezifikation

procedure gluTessNormal(tess: PGLUtesselator; x, y, z: TGLdouble);


Parameter

tess Bestimmt das Tesselierungsobjekt (erstellt mit gluNewTess).
x, y, z Bestimmt die x, y, z Komponente einer Normale.


Beschreibung

Mit gluTessNormal beschreiben Sie die Normale für ein Polygon das Sie definieren. The gluTessNormal function describes a normal for a polygon that you define. All input data is projected onto a plane perpendicular to one of the three coordinate axes before tessellation, and all output triangles are oriented counterclockwise with respect to the normal. (Eine Ausrichtung im Uhrzeigersinn kann erreicht werden, indem das Vorzeichen der gelieferten Normale geändert wird.) Wenn, zum Beispiel, bekannt ist, dass alle Polygone in der X-Y-Ebene liegen, ruft man gluTessNormal(tess, 0.0, 0.0, 1.0) vor dem Rendern der Polygone auf.

Wenn die übergebene Normale (0,0,0) ist (der Vorgabewert), wird die Normale folgendermaßen bestimmt. Die Richtung der Normale, im Bezug auf ihr Vorzeichen, wird gefunden in dem man eine Ebene aus den Vertexen bildet. Dabei wird die beachted wie die Vertexe miteinander verbunden sind (Reihenfolge). Es wird dabei davon ausgegangen, dass die Vertices annähernd in einer Ebene liegen. Wenn dem nicht so ist, wird otherwise projection perpendicular to one of the three coordinate axes can change the geometry substantially. The sign of the normal is chosen so that the sum of the signed areas of all input contours is non-negative (where a counter-clock-wise contour has positive area).

Die übergebene Normale bleibt solange gültig, bis gluTessNormal erneut aufgerufen wurde.


Siehe auch

gluTessBeginPolygon, gluTessEndPolygon

Hintergrundwissen: Tesselierung