소스 검색

expand on comment

David Rose 22 년 전
부모
커밋
56f64fd217
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      panda/src/egg/eggPolygon.cxx

+ 3 - 1
panda/src/egg/eggPolygon.cxx

@@ -62,7 +62,9 @@ calculate_normal(Normald &result, CoordinateSystem cs) const {
 
   // Project the polygon into each of the three major planes and
   // calculate the area of each 2-d projection.  This becomes the
-  // polygon normal.
+  // polygon normal.  This works because the ratio between these
+  // different areas corresponds to the angle at which the polygon is
+  // tilted toward each plane.
   size_t num_verts = size();
   for (size_t i = 0; i < num_verts; i++) {
     Vertexd p0 = get_vertex(i)->get_pos3();