Skip to content
0.2.0-dev Download ZIP
40 lines ·3.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="TubeTrailMesh" inherits="PrimitiveMesh" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Represents a straight tube-shaped [PrimitiveMesh] with variable width.
5 </brief_description>
6 <description>
7 [TubeTrailMesh] represents a straight tube-shaped mesh with variable width. The tube is composed of a number of cylindrical sections, each with the same [member section_length] and number of [member section_rings]. A [member curve] is sampled along the total length of the tube, meaning that the curve determines the radius of the tube along its length.
8 This primitive mesh is usually used for particle trails.
9 </description>
10 <tutorials>
11 <link title="3D Particle trails">$DOCS_URL/tutorials/3d/particles/trails.html</link>
12 <link title="Particle systems (3D)">$DOCS_URL/tutorials/3d/particles/index.html</link>
13 </tutorials>
14 <members>
15 <member name="cap_bottom" type="bool" setter="set_cap_bottom" getter="is_cap_bottom" default="true">
16 If [code]true[/code], generates a cap at the bottom of the tube. This can be set to [code]false[/code] to speed up generation and rendering when the cap is never seen by the camera.
17 </member>
18 <member name="cap_top" type="bool" setter="set_cap_top" getter="is_cap_top" default="true">
19 If [code]true[/code], generates a cap at the top of the tube. This can be set to [code]false[/code] to speed up generation and rendering when the cap is never seen by the camera.
20 </member>
21 <member name="curve" type="Curve" setter="set_curve" getter="get_curve">
22 Determines the radius of the tube along its length. The radius of a particular section ring is obtained by multiplying the baseline [member radius] by the value of this curve at the given distance. For values smaller than [code]0[/code], the faces will be inverted. Should be a unit [Curve].
23 </member>
24 <member name="radial_steps" type="int" setter="set_radial_steps" getter="get_radial_steps" default="8">
25 The number of sides on the tube. For example, a value of [code]5[/code] means the tube will be pentagonal. Higher values result in a more detailed tube at the cost of performance.
26 </member>
27 <member name="radius" type="float" setter="set_radius" getter="get_radius" default="0.5">
28 The baseline radius of the tube. The radius of a particular section ring is obtained by multiplying this radius by the value of the [member curve] at the given distance.
29 </member>
30 <member name="section_length" type="float" setter="set_section_length" getter="get_section_length" default="0.2">
31 The length of a section of the tube.
32 </member>
33 <member name="section_rings" type="int" setter="set_section_rings" getter="get_section_rings" default="3">
34 The number of rings in a section. The [member curve] is sampled on each ring to determine its radius. Higher values result in a more detailed tube at the cost of performance.
35 </member>
36 <member name="sections" type="int" setter="set_sections" getter="get_sections" default="5">
37 The total number of sections on the tube.
38 </member>
39 </members>
40</class>