class_csgmesh.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CSGMesh.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSGMesh:
  6. CSGMesh
  7. =======
  8. **Inherits:** :ref:`CSGPrimitive<class_CSGPrimitive>` **<** :ref:`CSGShape<class_CSGShape>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A CSG Mesh shape that uses a mesh resource.
  13. Properties
  14. ----------
  15. +-------------------------+------------------------------------------+
  16. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_CSGMesh_property_mesh>` |
  17. +-------------------------+------------------------------------------+
  18. Description
  19. -----------
  20. This CSG node allows you to use any mesh resource as a CSG shape, provided it is closed, does not self-intersect, does not contain internal faces and has no edges that connect to more then two faces.
  21. Property Descriptions
  22. ---------------------
  23. .. _class_CSGMesh_property_mesh:
  24. - :ref:`Mesh<class_Mesh>` **mesh**
  25. +----------+-----------------+
  26. | *Setter* | set_mesh(value) |
  27. +----------+-----------------+
  28. | *Getter* | get_mesh() |
  29. +----------+-----------------+
  30. The mesh resource to use as a CSG shape.