class_csgmesh.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:`GeometryInstance<class_GeometryInstance>` **<** :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:`Material<class_Material>` | :ref:`material<class_CSGMesh_property_material>` |
  17. +---------------------------------+--------------------------------------------------+
  18. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_CSGMesh_property_mesh>` |
  19. +---------------------------------+--------------------------------------------------+
  20. Description
  21. -----------
  22. 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.
  23. Property Descriptions
  24. ---------------------
  25. .. _class_CSGMesh_property_material:
  26. - :ref:`Material<class_Material>` **material**
  27. +----------+---------------------+
  28. | *Setter* | set_material(value) |
  29. +----------+---------------------+
  30. | *Getter* | get_material() |
  31. +----------+---------------------+
  32. .. _class_CSGMesh_property_mesh:
  33. - :ref:`Mesh<class_Mesh>` **mesh**
  34. +----------+-----------------+
  35. | *Setter* | set_mesh(value) |
  36. +----------+-----------------+
  37. | *Getter* | get_mesh() |
  38. +----------+-----------------+
  39. The mesh resource to use as a CSG shape.