class_csgpolygon3d.rst 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/csg/doc_classes/CSGPolygon3D.xml.
  6. .. _class_CSGPolygon3D:
  7. CSGPolygon3D
  8. ============
  9. **Inherits:** :ref:`CSGPrimitive3D<class_CSGPrimitive3D>` **<** :ref:`CSGShape3D<class_CSGShape3D>` **<** :ref:`GeometryInstance3D<class_GeometryInstance3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Extrudes a 2D polygon shape to create a 3D mesh.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. An array of 2D points is extruded to quickly and easily create a variety of 3D meshes. See also :ref:`CSGMesh3D<class_CSGMesh3D>` for using 3D meshes as CSG nodes.
  15. \ **Note:** CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a :ref:`MeshInstance3D<class_MeshInstance3D>` with a :ref:`PrimitiveMesh<class_PrimitiveMesh>`. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Prototyping levels with CSG <../tutorials/3d/csg_tools>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  26. | :ref:`float<class_float>` | :ref:`depth<class_CSGPolygon3D_property_depth>` | ``1.0`` |
  27. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  28. | :ref:`Material<class_Material>` | :ref:`material<class_CSGPolygon3D_property_material>` | |
  29. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  30. | :ref:`Mode<enum_CSGPolygon3D_Mode>` | :ref:`mode<class_CSGPolygon3D_property_mode>` | ``0`` |
  31. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`path_continuous_u<class_CSGPolygon3D_property_path_continuous_u>` | |
  33. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`path_interval<class_CSGPolygon3D_property_path_interval>` | |
  35. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  36. | :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>` | :ref:`path_interval_type<class_CSGPolygon3D_property_path_interval_type>` | |
  37. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  38. | :ref:`bool<class_bool>` | :ref:`path_joined<class_CSGPolygon3D_property_path_joined>` | |
  39. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  40. | :ref:`bool<class_bool>` | :ref:`path_local<class_CSGPolygon3D_property_path_local>` | |
  41. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  42. | :ref:`NodePath<class_NodePath>` | :ref:`path_node<class_CSGPolygon3D_property_path_node>` | |
  43. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  44. | :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` | :ref:`path_rotation<class_CSGPolygon3D_property_path_rotation>` | |
  45. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  46. | :ref:`bool<class_bool>` | :ref:`path_rotation_accurate<class_CSGPolygon3D_property_path_rotation_accurate>` | |
  47. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`path_simplify_angle<class_CSGPolygon3D_property_path_simplify_angle>` | |
  49. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`path_u_distance<class_CSGPolygon3D_property_path_u_distance>` | |
  51. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  52. | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`polygon<class_CSGPolygon3D_property_polygon>` | ``PackedVector2Array(0, 0, 0, 1, 1, 1, 1, 0)`` |
  53. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  54. | :ref:`bool<class_bool>` | :ref:`smooth_faces<class_CSGPolygon3D_property_smooth_faces>` | ``false`` |
  55. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  56. | :ref:`float<class_float>` | :ref:`spin_degrees<class_CSGPolygon3D_property_spin_degrees>` | |
  57. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  58. | :ref:`int<class_int>` | :ref:`spin_sides<class_CSGPolygon3D_property_spin_sides>` | |
  59. +-------------------------------------------------------------+-----------------------------------------------------------------------------------+------------------------------------------------+
  60. .. rst-class:: classref-section-separator
  61. ----
  62. .. rst-class:: classref-descriptions-group
  63. Enumerations
  64. ------------
  65. .. _enum_CSGPolygon3D_Mode:
  66. .. rst-class:: classref-enumeration
  67. enum **Mode**: :ref:`🔗<enum_CSGPolygon3D_Mode>`
  68. .. _class_CSGPolygon3D_constant_MODE_DEPTH:
  69. .. rst-class:: classref-enumeration-constant
  70. :ref:`Mode<enum_CSGPolygon3D_Mode>` **MODE_DEPTH** = ``0``
  71. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape is extruded along the negative Z axis.
  72. .. _class_CSGPolygon3D_constant_MODE_SPIN:
  73. .. rst-class:: classref-enumeration-constant
  74. :ref:`Mode<enum_CSGPolygon3D_Mode>` **MODE_SPIN** = ``1``
  75. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape is extruded by rotating it around the Y axis.
  76. .. _class_CSGPolygon3D_constant_MODE_PATH:
  77. .. rst-class:: classref-enumeration-constant
  78. :ref:`Mode<enum_CSGPolygon3D_Mode>` **MODE_PATH** = ``2``
  79. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape is extruded along the :ref:`Path3D<class_Path3D>` specified in :ref:`path_node<class_CSGPolygon3D_property_path_node>`.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _enum_CSGPolygon3D_PathRotation:
  83. .. rst-class:: classref-enumeration
  84. enum **PathRotation**: :ref:`🔗<enum_CSGPolygon3D_PathRotation>`
  85. .. _class_CSGPolygon3D_constant_PATH_ROTATION_POLYGON:
  86. .. rst-class:: classref-enumeration-constant
  87. :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` **PATH_ROTATION_POLYGON** = ``0``
  88. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape is not rotated.
  89. \ **Note:** Requires the path Z coordinates to continually decrease to ensure viable shapes.
  90. .. _class_CSGPolygon3D_constant_PATH_ROTATION_PATH:
  91. .. rst-class:: classref-enumeration-constant
  92. :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` **PATH_ROTATION_PATH** = ``1``
  93. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape is rotated along the path, but it is not rotated around the path axis.
  94. \ **Note:** Requires the path Z coordinates to continually decrease to ensure viable shapes.
  95. .. _class_CSGPolygon3D_constant_PATH_ROTATION_PATH_FOLLOW:
  96. .. rst-class:: classref-enumeration-constant
  97. :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` **PATH_ROTATION_PATH_FOLLOW** = ``2``
  98. The :ref:`polygon<class_CSGPolygon3D_property_polygon>` shape follows the path and its rotations around the path axis.
  99. .. rst-class:: classref-item-separator
  100. ----
  101. .. _enum_CSGPolygon3D_PathIntervalType:
  102. .. rst-class:: classref-enumeration
  103. enum **PathIntervalType**: :ref:`🔗<enum_CSGPolygon3D_PathIntervalType>`
  104. .. _class_CSGPolygon3D_constant_PATH_INTERVAL_DISTANCE:
  105. .. rst-class:: classref-enumeration-constant
  106. :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>` **PATH_INTERVAL_DISTANCE** = ``0``
  107. When :ref:`mode<class_CSGPolygon3D_property_mode>` is set to :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, :ref:`path_interval<class_CSGPolygon3D_property_path_interval>` will determine the distance, in meters, each interval of the path will extrude.
  108. .. _class_CSGPolygon3D_constant_PATH_INTERVAL_SUBDIVIDE:
  109. .. rst-class:: classref-enumeration-constant
  110. :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>` **PATH_INTERVAL_SUBDIVIDE** = ``1``
  111. When :ref:`mode<class_CSGPolygon3D_property_mode>` is set to :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, :ref:`path_interval<class_CSGPolygon3D_property_path_interval>` will subdivide the polygons along the path.
  112. .. rst-class:: classref-section-separator
  113. ----
  114. .. rst-class:: classref-descriptions-group
  115. Property Descriptions
  116. ---------------------
  117. .. _class_CSGPolygon3D_property_depth:
  118. .. rst-class:: classref-property
  119. :ref:`float<class_float>` **depth** = ``1.0`` :ref:`🔗<class_CSGPolygon3D_property_depth>`
  120. .. rst-class:: classref-property-setget
  121. - |void| **set_depth**\ (\ value\: :ref:`float<class_float>`\ )
  122. - :ref:`float<class_float>` **get_depth**\ (\ )
  123. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_DEPTH<class_CSGPolygon3D_constant_MODE_DEPTH>`, the depth of the extrusion.
  124. .. rst-class:: classref-item-separator
  125. ----
  126. .. _class_CSGPolygon3D_property_material:
  127. .. rst-class:: classref-property
  128. :ref:`Material<class_Material>` **material** :ref:`🔗<class_CSGPolygon3D_property_material>`
  129. .. rst-class:: classref-property-setget
  130. - |void| **set_material**\ (\ value\: :ref:`Material<class_Material>`\ )
  131. - :ref:`Material<class_Material>` **get_material**\ (\ )
  132. Material to use for the resulting mesh. The UV maps the top half of the material to the extruded shape (U along the length of the extrusions and V around the outline of the :ref:`polygon<class_CSGPolygon3D_property_polygon>`), the bottom-left quarter to the front end face, and the bottom-right quarter to the back end face.
  133. .. rst-class:: classref-item-separator
  134. ----
  135. .. _class_CSGPolygon3D_property_mode:
  136. .. rst-class:: classref-property
  137. :ref:`Mode<enum_CSGPolygon3D_Mode>` **mode** = ``0`` :ref:`🔗<class_CSGPolygon3D_property_mode>`
  138. .. rst-class:: classref-property-setget
  139. - |void| **set_mode**\ (\ value\: :ref:`Mode<enum_CSGPolygon3D_Mode>`\ )
  140. - :ref:`Mode<enum_CSGPolygon3D_Mode>` **get_mode**\ (\ )
  141. The :ref:`mode<class_CSGPolygon3D_property_mode>` used to extrude the :ref:`polygon<class_CSGPolygon3D_property_polygon>`.
  142. .. rst-class:: classref-item-separator
  143. ----
  144. .. _class_CSGPolygon3D_property_path_continuous_u:
  145. .. rst-class:: classref-property
  146. :ref:`bool<class_bool>` **path_continuous_u** :ref:`🔗<class_CSGPolygon3D_property_path_continuous_u>`
  147. .. rst-class:: classref-property-setget
  148. - |void| **set_path_continuous_u**\ (\ value\: :ref:`bool<class_bool>`\ )
  149. - :ref:`bool<class_bool>` **is_path_continuous_u**\ (\ )
  150. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, by default, the top half of the :ref:`material<class_CSGPolygon3D_property_material>` is stretched along the entire length of the extruded shape. If ``false`` the top half of the material is repeated every step of the extrusion.
  151. .. rst-class:: classref-item-separator
  152. ----
  153. .. _class_CSGPolygon3D_property_path_interval:
  154. .. rst-class:: classref-property
  155. :ref:`float<class_float>` **path_interval** :ref:`🔗<class_CSGPolygon3D_property_path_interval>`
  156. .. rst-class:: classref-property-setget
  157. - |void| **set_path_interval**\ (\ value\: :ref:`float<class_float>`\ )
  158. - :ref:`float<class_float>` **get_path_interval**\ (\ )
  159. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, the path interval or ratio of path points to extrusions.
  160. .. rst-class:: classref-item-separator
  161. ----
  162. .. _class_CSGPolygon3D_property_path_interval_type:
  163. .. rst-class:: classref-property
  164. :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>` **path_interval_type** :ref:`🔗<class_CSGPolygon3D_property_path_interval_type>`
  165. .. rst-class:: classref-property-setget
  166. - |void| **set_path_interval_type**\ (\ value\: :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>`\ )
  167. - :ref:`PathIntervalType<enum_CSGPolygon3D_PathIntervalType>` **get_path_interval_type**\ (\ )
  168. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, this will determine if the interval should be by distance (:ref:`PATH_INTERVAL_DISTANCE<class_CSGPolygon3D_constant_PATH_INTERVAL_DISTANCE>`) or subdivision fractions (:ref:`PATH_INTERVAL_SUBDIVIDE<class_CSGPolygon3D_constant_PATH_INTERVAL_SUBDIVIDE>`).
  169. .. rst-class:: classref-item-separator
  170. ----
  171. .. _class_CSGPolygon3D_property_path_joined:
  172. .. rst-class:: classref-property
  173. :ref:`bool<class_bool>` **path_joined** :ref:`🔗<class_CSGPolygon3D_property_path_joined>`
  174. .. rst-class:: classref-property-setget
  175. - |void| **set_path_joined**\ (\ value\: :ref:`bool<class_bool>`\ )
  176. - :ref:`bool<class_bool>` **is_path_joined**\ (\ )
  177. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, if ``true`` the ends of the path are joined, by adding an extrusion between the last and first points of the path.
  178. .. rst-class:: classref-item-separator
  179. ----
  180. .. _class_CSGPolygon3D_property_path_local:
  181. .. rst-class:: classref-property
  182. :ref:`bool<class_bool>` **path_local** :ref:`🔗<class_CSGPolygon3D_property_path_local>`
  183. .. rst-class:: classref-property-setget
  184. - |void| **set_path_local**\ (\ value\: :ref:`bool<class_bool>`\ )
  185. - :ref:`bool<class_bool>` **is_path_local**\ (\ )
  186. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, if ``true`` the :ref:`Transform3D<class_Transform3D>` of the **CSGPolygon3D** is used as the starting point for the extrusions, not the :ref:`Transform3D<class_Transform3D>` of the :ref:`path_node<class_CSGPolygon3D_property_path_node>`.
  187. .. rst-class:: classref-item-separator
  188. ----
  189. .. _class_CSGPolygon3D_property_path_node:
  190. .. rst-class:: classref-property
  191. :ref:`NodePath<class_NodePath>` **path_node** :ref:`🔗<class_CSGPolygon3D_property_path_node>`
  192. .. rst-class:: classref-property-setget
  193. - |void| **set_path_node**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  194. - :ref:`NodePath<class_NodePath>` **get_path_node**\ (\ )
  195. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, the location of the :ref:`Path3D<class_Path3D>` object used to extrude the :ref:`polygon<class_CSGPolygon3D_property_polygon>`.
  196. .. rst-class:: classref-item-separator
  197. ----
  198. .. _class_CSGPolygon3D_property_path_rotation:
  199. .. rst-class:: classref-property
  200. :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` **path_rotation** :ref:`🔗<class_CSGPolygon3D_property_path_rotation>`
  201. .. rst-class:: classref-property-setget
  202. - |void| **set_path_rotation**\ (\ value\: :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>`\ )
  203. - :ref:`PathRotation<enum_CSGPolygon3D_PathRotation>` **get_path_rotation**\ (\ )
  204. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, the path rotation method used to rotate the :ref:`polygon<class_CSGPolygon3D_property_polygon>` as it is extruded.
  205. .. rst-class:: classref-item-separator
  206. ----
  207. .. _class_CSGPolygon3D_property_path_rotation_accurate:
  208. .. rst-class:: classref-property
  209. :ref:`bool<class_bool>` **path_rotation_accurate** :ref:`🔗<class_CSGPolygon3D_property_path_rotation_accurate>`
  210. .. rst-class:: classref-property-setget
  211. - |void| **set_path_rotation_accurate**\ (\ value\: :ref:`bool<class_bool>`\ )
  212. - :ref:`bool<class_bool>` **get_path_rotation_accurate**\ (\ )
  213. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, if ``true`` the polygon will be rotated according to the proper tangent of the path at the sampled points. If ``false`` an approximation is used, which decreases in accuracy as the number of subdivisions decreases.
  214. .. rst-class:: classref-item-separator
  215. ----
  216. .. _class_CSGPolygon3D_property_path_simplify_angle:
  217. .. rst-class:: classref-property
  218. :ref:`float<class_float>` **path_simplify_angle** :ref:`🔗<class_CSGPolygon3D_property_path_simplify_angle>`
  219. .. rst-class:: classref-property-setget
  220. - |void| **set_path_simplify_angle**\ (\ value\: :ref:`float<class_float>`\ )
  221. - :ref:`float<class_float>` **get_path_simplify_angle**\ (\ )
  222. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, extrusions that are less than this angle, will be merged together to reduce polygon count.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_CSGPolygon3D_property_path_u_distance:
  226. .. rst-class:: classref-property
  227. :ref:`float<class_float>` **path_u_distance** :ref:`🔗<class_CSGPolygon3D_property_path_u_distance>`
  228. .. rst-class:: classref-property-setget
  229. - |void| **set_path_u_distance**\ (\ value\: :ref:`float<class_float>`\ )
  230. - :ref:`float<class_float>` **get_path_u_distance**\ (\ )
  231. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_PATH<class_CSGPolygon3D_constant_MODE_PATH>`, this is the distance along the path, in meters, the texture coordinates will tile. When set to 0, texture coordinates will match geometry exactly with no tiling.
  232. .. rst-class:: classref-item-separator
  233. ----
  234. .. _class_CSGPolygon3D_property_polygon:
  235. .. rst-class:: classref-property
  236. :ref:`PackedVector2Array<class_PackedVector2Array>` **polygon** = ``PackedVector2Array(0, 0, 0, 1, 1, 1, 1, 0)`` :ref:`🔗<class_CSGPolygon3D_property_polygon>`
  237. .. rst-class:: classref-property-setget
  238. - |void| **set_polygon**\ (\ value\: :ref:`PackedVector2Array<class_PackedVector2Array>`\ )
  239. - :ref:`PackedVector2Array<class_PackedVector2Array>` **get_polygon**\ (\ )
  240. The point array that defines the 2D polygon that is extruded. This can be a convex or concave polygon with 3 or more points. The polygon must *not* have any intersecting edges. Otherwise, triangulation will fail and no mesh will be generated.
  241. \ **Note:** If only 1 or 2 points are defined in :ref:`polygon<class_CSGPolygon3D_property_polygon>`, no mesh will be generated.
  242. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector2Array<class_PackedVector2Array>` for more details.
  243. .. rst-class:: classref-item-separator
  244. ----
  245. .. _class_CSGPolygon3D_property_smooth_faces:
  246. .. rst-class:: classref-property
  247. :ref:`bool<class_bool>` **smooth_faces** = ``false`` :ref:`🔗<class_CSGPolygon3D_property_smooth_faces>`
  248. .. rst-class:: classref-property-setget
  249. - |void| **set_smooth_faces**\ (\ value\: :ref:`bool<class_bool>`\ )
  250. - :ref:`bool<class_bool>` **get_smooth_faces**\ (\ )
  251. If ``true``, applies smooth shading to the extrusions.
  252. .. rst-class:: classref-item-separator
  253. ----
  254. .. _class_CSGPolygon3D_property_spin_degrees:
  255. .. rst-class:: classref-property
  256. :ref:`float<class_float>` **spin_degrees** :ref:`🔗<class_CSGPolygon3D_property_spin_degrees>`
  257. .. rst-class:: classref-property-setget
  258. - |void| **set_spin_degrees**\ (\ value\: :ref:`float<class_float>`\ )
  259. - :ref:`float<class_float>` **get_spin_degrees**\ (\ )
  260. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_SPIN<class_CSGPolygon3D_constant_MODE_SPIN>`, the total number of degrees the :ref:`polygon<class_CSGPolygon3D_property_polygon>` is rotated when extruding.
  261. .. rst-class:: classref-item-separator
  262. ----
  263. .. _class_CSGPolygon3D_property_spin_sides:
  264. .. rst-class:: classref-property
  265. :ref:`int<class_int>` **spin_sides** :ref:`🔗<class_CSGPolygon3D_property_spin_sides>`
  266. .. rst-class:: classref-property-setget
  267. - |void| **set_spin_sides**\ (\ value\: :ref:`int<class_int>`\ )
  268. - :ref:`int<class_int>` **get_spin_sides**\ (\ )
  269. When :ref:`mode<class_CSGPolygon3D_property_mode>` is :ref:`MODE_SPIN<class_CSGPolygon3D_constant_MODE_SPIN>`, the number of extrusions made.
  270. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  271. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  272. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  273. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  274. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  275. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  276. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  277. .. |void| replace:: :abbr:`void (No return value.)`