TubeTrailMesh
继承: PrimitiveMesh
< Mesh
< Resource
< RefCounted
< Object
Represents a straight tube-shaped PrimitiveMesh
with variable width.
描述
TubeTrailMesh represents a straight tube-shaped mesh with variable width. The tube is composed of a number of cylindrical sections, each with the same section_length
and number of section_rings
. A curve
is sampled along the total length of the tube, meaning that the curve determines the radius of the tube along its length.
This primitive mesh is usually used for particle trails.
属性
bool | cap_bottom |
bool | cap_top |
Curve | curve |
int | radial_steps |
float | radius |
float | section_length |
int | section_rings |
int | sections |
属性说明
bool
cap_bottom = true
If true
, generates a cap at the bottom of the tube. This can be set to false
to speed up generation and rendering when the cap is never seen by the camera.
bool
cap_top = true
If true
, generates a cap at the top of the tube. This can be set to false
to speed up generation and rendering when the cap is never seen by the camera.
Curve
curve
Determines the radius of the tube along its length. The radius of a particular section ring is obtained by multiplying the baseline radius
by the value of this curve at the given distance. For values smaller than 0
, the faces will be inverted.
int
radial_steps = 8
The number of sides on the tube. For example, a value of 5
means the tube will be pentagonal. Higher values result in a more detailed tube at the cost of performance.
float
radius = 0.5
The baseline radius of the tube. The radius of a particular section ring is obtained by multiplying this radius by the value of the curve
at the given distance.
float
section_length = 0.2
The length of a section of the tube.
int
section_rings = 3
The number of rings in a section. The curve
is sampled on each ring to determine its radius. Higher values result in a more detailed tube at the cost of performance.
int
sections = 5
The total number of sections on the tube.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。