Skip to content
0.2.0-dev Download ZIP
42 lines ·2.7 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="RibbonTrailMesh" 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 ribbon-shaped [PrimitiveMesh] with variable width.
5 </brief_description>
6 <description>
7 [RibbonTrailMesh] represents a straight ribbon-shaped mesh with variable width. The ribbon is composed of a number of flat or cross-shaped sections, each with the same [member section_length] and number of [member section_segments]. A [member curve] is sampled along the total length of the ribbon, meaning that the curve determines the size of the ribbon 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="curve" type="Curve" setter="set_curve" getter="get_curve">
16 Determines the size of the ribbon along its length. The size of a particular section segment is obtained by multiplying the baseline [member size] 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].
17 </member>
18 <member name="section_length" type="float" setter="set_section_length" getter="get_section_length" default="0.2">
19 The length of a section of the ribbon.
20 </member>
21 <member name="section_segments" type="int" setter="set_section_segments" getter="get_section_segments" default="3">
22 The number of segments in a section. The [member curve] is sampled on each segment to determine its size. Higher values result in a more detailed ribbon at the cost of performance.
23 </member>
24 <member name="sections" type="int" setter="set_sections" getter="get_sections" default="5">
25 The total number of sections on the ribbon.
26 </member>
27 <member name="shape" type="int" setter="set_shape" getter="get_shape" enum="RibbonTrailMesh.Shape" default="1">
28 Determines the shape of the ribbon.
29 </member>
30 <member name="size" type="float" setter="set_size" getter="get_size" default="1.0">
31 The baseline size of the ribbon. The size of a particular section segment is obtained by multiplying this size by the value of the [member curve] at the given distance.
32 </member>
33 </members>
34 <constants>
35 <constant name="SHAPE_FLAT" value="0" enum="Shape">
36 Gives the mesh a single flat face.
37 </constant>
38 <constant name="SHAPE_CROSS" value="1" enum="Shape">
39 Gives the mesh two perpendicular flat faces, making a cross shape.
40 </constant>
41 </constants>
42</class>