SphereMesh.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="SphereMesh" inherits="PrimitiveMesh" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Class representing a spherical [PrimitiveMesh].
  5. </brief_description>
  6. <description>
  7. Class representing a spherical [PrimitiveMesh].
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="height" type="float" setter="set_height" getter="get_height" default="2.0">
  15. Full height of the sphere.
  16. </member>
  17. <member name="is_hemisphere" type="bool" setter="set_is_hemisphere" getter="get_is_hemisphere" default="false">
  18. If [code]true[/code], a hemisphere is created rather than a full sphere.
  19. [b]Note:[/b] To get a regular hemisphere, the height and radius of the sphere must be equal.
  20. </member>
  21. <member name="radial_segments" type="int" setter="set_radial_segments" getter="get_radial_segments" default="64">
  22. Number of radial segments on the sphere.
  23. </member>
  24. <member name="radius" type="float" setter="set_radius" getter="get_radius" default="1.0">
  25. Radius of sphere.
  26. </member>
  27. <member name="rings" type="int" setter="set_rings" getter="get_rings" default="32">
  28. Number of segments along the height of the sphere.
  29. </member>
  30. </members>
  31. <constants>
  32. </constants>
  33. </class>