SphereMesh

继承: PrimitiveMesh < Mesh < Resource < RefCounted < Object

表示球形PrimitiveMesh的类。

描述

表示球形PrimitiveMesh的类。

属性


属性说明

float height = 1.0 🔗

  • void set_height(value: float)

  • float get_height()

球体的全高度。


bool is_hemisphere = false 🔗

  • void set_is_hemisphere(value: bool)

  • bool get_is_hemisphere()

如果true,则创建一个半球而不是一个完整的球体。

注:要得到一个规则半球,球体的高度和半径必须相等。


int radial_segments = 64 🔗

  • void set_radial_segments(value: int)

  • int get_radial_segments()

球体上的径向节段数。


float radius = 0.5 🔗

  • void set_radius(value: float)

  • float get_radius()

球体半径。


int rings = 32 🔗

  • void set_rings(value: int)

  • int get_rings()

沿球体高度的节段数。