Cessna 172R Flap and Aileron


Polygon Crest is a fre and open-source program.  Therefore, you can use it for free of charge.  However, I appreciate if you donate some money for supporting the development.  For making donation, please send some money via PayPal using the following button.

I will use the donated money for upgrading my developing environment, buying books for learning new programming techniques, maintaining and adding contents in YSFLIGHT.COM.  Thank you for your support!


In this example, you can cut out a flap and an aileron from the main wing created in the previous tutorial.

An aircraft flap is typically retracted underneath the main wing, and extended when the pilot moves the flap lever.  When extended, the flaps effectively increase the area of the wing.  For making a part for the flap, it is possible to use a boolean operation to separate a volume for a flap from the main wing.  But, making a volume for cutting out may not be straight forward.  In this case, it is easier to directly splitting some polygons, cut them out to the new shell, and directly manipulate the shape.

The overview of the steps are as follows.

  1. Split some polygons to cut out.
  2. Cut & paste some polygons to a new shell and do some manipulation in the new shell to create a flap.
  3. Copy & paste some polygons of the new shell back to the original shell to close opening of the main wing.
  4. Do similar operation for an aileron.
  5. Fill the opening of the main wing to make it closed.

Download Sample Wing Model

C172R_mainwing.srf

If you open this sample model, you will see:

Splitting Polygons that becomes a Flap and Aileron

  1. Press F2 key, or click on "Bottom" button on the view-control dialog to look at the wing from the bottom.
  2. Press V key, or select [Edit]->[Insert]->[Vertes] to enter vertex-insertion mode.
  3. Move the cursor close to X=-0.44, Z=1.05 with the mouse left button.
  4. Press F1 key, or click on "Front" button on the view-control dialog to look at the wing from the front.
  5. Use mouse right button to move the cursor close to Y=0.4, and press space or click on [Insert] button.  You get a new vertex.
  6. Keep the viewpoint as is, and use mouse right button to move the cursor close to Y=1.25, and press space or click on [Insert] button to get the second vertex.
  7. Press Shift+V key, or select [Selection] -> [Pick] -> [Vertex] and select the two vertices that you created, and then select [Edit] -> [Create] -> [Parallelogram from Two Selected Vertices].
  8. From the front view (if the view rotated, press F1 again) use mouse left button to move the cursor close to X=-2.7.
  9. Press Space key, or click on [OK] button.
  10. Press T key, or select [Select] -> [Unselect] -> [Unselect All] to unselect the two vertices.
  11. Press Shift+F key, or select [Select] -> [Pick] -> [Polygon], and click on the new polygon created in steps 6 through 9.
  12. Select [Edit] -> [Intersection] -> [Cut by Plane].
  13. Press Delete key, or select [Edit] ->[Delete] -> [All Selection] to delete the polygon.  (This polygon is no longer needed.)
  14. Press F2 key, or click on "Bottom" button on the view-control dialog to look at the wing from the bottom.
  15. Press V key, or select [Edit]->[Insert]->[Vertes] to enter vertex-insertion mode.
  16. Use mouse left button to move the cursor close to X=-5.45, Z=1.225.
  17. Press F1 key, or click on "Front" button on the view-control dialog to look at the wing from the front.
  18. Use mouse right button to move the cursor close to Y=0.4, and press space or click on [Insert] button to create a new vertex.
  19. Move the cursor close to Y=1.25, and press space or click on [Insert] button to create a new vertex.
  20. Select the new vertex underneath the wing, and then the one above the wing.
  21. Rotate the view so that the upper side of the wing is visible, and select a vertex created in Step 7 (as shown below)
  22. Rotate the view so that the under side of the wing is visible, and select the vertex shown in the next picture.
  23. Press F key, or select [Edit] -> [Insert] -> [Polygon] to create a polygon.
  24. Select the polygon created in step 23, and then select [Edit] -> [Intersection] -> [Cut by Plane].
  25. Press Delete key, or select [Edit] ->[Delete] -> [All Selection] to delete the polygon.  (This polygon is no longer needed.)

Making a Flap

  1. Rotate the view so that you look at the top-side of the main wing and select the polygons highlighted below.
  2. Rotate the view  so that you look at the bottom-side of the main wing and select the following polygons.
  3. Press Ctrl+C key or select [Edit] -> [Copy]
  4. Press Delete key or select [Edit] -> [Delete] -> [All Selection]
  5. Select [File] -> [New]
  6. Press Ctrl+V key or select [Edit] -> [Paste]
  7. Press T key or select [Select] -> [Unselect] -> [Unselect All]
  8. Select the following two vertices.
  9. Press F3 key or click on the [Left] button on the view-control dialog.
  10. Select [Edit]->[Create]->[Parallelogram from Two Selected Vertices].
  11. Move the cursor by left-button drag to about the location that matches the front-most vertex and press Space key or click on the [OK] button.
  12. Press T key or select [Select]->[Unselect]->[Unselect All]
  13. Select the following 4 vertices, and press F key or select [Edit]->[Insert]->[Polygon]
  14. Select the two vertices as shown below and select [Edit]->[Round]->[Along Selected Const-Edge or Vertex Sequence]
  15. Set the radius to 0.07 by the slider, and press Space key or click on [OK] button.
  16. Select the following polygons and press Ctrl+C key or select [Edit]->[Copy]
  17. Press Ctrl+Tab key to switch to the main-wing model.
  18. Press Ctrl+V key or select [Edit]->[Paste]
  19. [Global]->[Merge Vertices at the Same Location], and click on [OK] button on the dialog.
  20. Press Ctrl+Tab key to go back to the flap model.
  21. Press T key or select [Select]->[Unselect]->[Unselect All]
  22. Select two vertices as shown below.
  23. Select [Edit]->[Round]->[Along Selected Const-Edge or Vertex Sequence]
  24. Set radius to 0.05 by the slider and press Space key or click on [OK] button.
  25. Press T key or select [Select]->[Unselect]->[Unselect All]
  26. Select the following vertices, and then press X key or select [Select]->[Vertex]->[Follow Single Use Edge Loop] multiple times until all vertices on the side of the flap are selected.
  27. Press F key or select [Edit]->[Insert]->[Polygon]
  28. Do the same thing (steps 26-27) for the other side of the flap.
  29. [Global]->[Recalculate Polygon Orientation]
  30. Flap is complete.

Making an Aileron

  1. Press Ctrl+Tab to switch to the main-wing model.
  2. Press T key or select [Select]->[Unselect]->[Unselect All]
  3. Rotate the view point so that the upper-side of the wing is visible, and then select the polygons below.
  4. Rotate the view point so that the bottom-side of the wing is visible, and then select the polygons below.
  5. Press Ctrl+C key or select [Edit]->[Copy]
  6. Press Delete key or select [Edit]->[Delete]->[All Selection]
  7. Select [File]->[New]
  8. Press Ctrl+V key or select [Edit]->[Paste]
  9. Press T key or select [Select]->[Unselect]->[Unselect All]
  10. Select the following vertex (1) and then (2).
  11. Press X key or select [Select]->[Vertex]->[Follow Single-Use Edge] 3 times.
  12. Press F key or select [Edit]->[Insert]->[Polygon]
  13. Rotate the view so that the other side is visible, and then select the following vertex (1) and then (2).
  14. Press X key or select [Select]->[Vertex]->[Follow Single-Use Edge] 3 times.
  15. Press F key or select [Edit]->[Insert]->[Polygon]
  16. Select the vertex as shown below and then press X key or select [Select]->[Vertex]->[Follow Single-Use Edge] 5 times.
  17. Press F key or select [Edit]->[Insert]->[Polygon]
  18. 「全体処理」-> 「全ポリゴンの巻き方向を再計算」を選ぶ。
  19. エルロン完成。

主翼本体のポリゴン欠落部分を埋める

  1. Ctrl+Tabキーで、主翼のモデルに切り替える。
  2. Tキーを押す、または、「選択」-> 「選択解除」-> 「選択解除」を選んで選択解除。
  3. 翼の付け根側のポリゴン欠落部分の1頂点を以下の図のように選択。
  4. 欠落部分の頂点一周分が選択されるまで、Xキーを押すか、「選択」-> 「頂点」-> 「バウンダリに沿って選択」を選ぶ。
  5. Fキーを押すか、「編集」-> 「頂点」-> 「ポリゴン」で、ポリゴンを作成。
  6. 翼端側、欠落部分の2頂点を(1)、(2)の順で以下の図のように選ぶ。
  7. Xキーを3度押すか、「選択」-> 「頂点」-> 「バウンダリに沿って選択」を3度選ぶ。
  8. Fキーを押すか、「編集」-> 「追加」-> 「ポリゴン」で、ポリゴンを作成。
  9. 翼中央付近、次の図の2頂点を、(1)、(2)の順に選択。
  10. 図の頂点(3)が選択されるまで、Xキーを押すか、「選択」-> 「頂点」-> 「バウンダリに沿って選択」を選ぶ。
  11. Fキーを押すか、「編集」-> 「追加」-> 「ポリゴン」で、ポリゴンを作成。
  12. 上の図の頂点(1)を選択。
  13. 残りの欠落部分の頂点がすべて選択されるまで、Xキーを押すか、「選択」-> 「頂点」-> 「バウンダリに沿って選択」を選ぶ。
  14. Fキーを押すか、「編集」-> 「追加」-> 「ポリゴン」で、ポリゴンを作成。
  15. 「全体処理」-> 「全ポリゴンの巻き方向を再計算」を選ぶ。
  16. 主翼完成。

主翼、フラップ、エルロンは、後でDNM形式ファイルにまとめるために、それぞれ別の.SRFファイルとして保存しておく。