2018-05-12 09:38:00 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 12:33:56 +02:00
<class name= "CSGPolygon" inherits= "CSGPrimitive" category= "Core" version= "3.2" >
2018-05-12 09:38:00 +02:00
<brief_description >
2018-07-19 11:31:12 +02:00
Extrudes a 2D polygon shape to create a 3D mesh.
2018-05-12 09:38:00 +02:00
</brief_description>
<description >
2018-07-03 13:21:36 +02:00
This node takes a 2D polygon shape and extrudes it to create a 3D mesh.
2018-05-12 09:38:00 +02:00
</description>
<tutorials >
</tutorials>
<methods >
</methods>
<members >
2019-06-29 12:38:01 +02:00
<member name= "depth" type= "float" setter= "set_depth" getter= "get_depth" default= "1.0" >
2018-07-19 11:31:12 +02:00
Extrusion depth when [member mode] is [constant MODE_DEPTH].
2018-05-12 09:38:00 +02:00
</member>
2019-07-15 20:42:47 +02:00
<member name= "material" type= "Material" setter= "set_material" getter= "get_material" >
2018-07-19 11:31:12 +02:00
Material to use for the resulting mesh.
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "mode" type= "int" setter= "set_mode" getter= "get_mode" enum= "CSGPolygon.Mode" default= "0" >
2018-07-19 11:31:12 +02:00
Extrusion mode.
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_continuous_u" type= "bool" setter= "set_path_continuous_u" getter= "is_path_continuous_u" >
2019-04-17 13:42:56 +02:00
If [code]true[/code] the u component of our uv will continuously increase in unison with the distance traveled along our path when [member mode] is [constant MODE_PATH].
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_interval" type= "float" setter= "set_path_interval" getter= "get_path_interval" >
2018-07-19 11:31:12 +02:00
Interval at which a new extrusion slice is added along the path when [member mode] is [constant MODE_PATH].
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_joined" type= "bool" setter= "set_path_joined" getter= "is_path_joined" >
2019-04-17 13:42:56 +02:00
If [code]true[/code] the start and end of our path are joined together ensuring there is no seam when [member mode] is [constant MODE_PATH].
2018-07-03 13:21:36 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_local" type= "bool" setter= "set_path_local" getter= "is_path_local" >
2019-04-17 13:42:56 +02:00
If [code]false[/code] we extrude centered on our path, if [code]true[/code] we extrude in relation to the position of our CSGPolygon when [member mode] is [constant MODE_PATH].
2018-07-03 13:21:36 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_node" type= "NodePath" setter= "set_path_node" getter= "get_path_node" >
2018-07-19 11:31:12 +02:00
The [Shape] object containing the path along which we extrude when [member mode] is [constant MODE_PATH].
2018-07-03 13:21:36 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "path_rotation" type= "int" setter= "set_path_rotation" getter= "get_path_rotation" enum= "CSGPolygon.PathRotation" >
2018-07-19 11:31:12 +02:00
The method by which each slice is rotated along the path when [member mode] is [constant MODE_PATH].
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "polygon" type= "PoolVector2Array" setter= "set_polygon" getter= "get_polygon" default= "PoolVector2Array( 0, 0, 0, 1, 1, 1, 1, 0 )" >
2018-07-19 11:31:12 +02:00
Point array that defines the shape that we'll extrude.
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "smooth_faces" type= "bool" setter= "set_smooth_faces" getter= "get_smooth_faces" default= "false" >
2018-07-19 11:31:12 +02:00
Generates smooth normals so smooth shading is applied to our mesh.
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "spin_degrees" type= "float" setter= "set_spin_degrees" getter= "get_spin_degrees" >
2018-07-19 11:31:12 +02:00
Degrees to rotate our extrusion for each slice when [member mode] is [constant MODE_SPIN].
2018-05-12 09:38:00 +02:00
</member>
2019-06-29 21:22:15 +02:00
<member name= "spin_sides" type= "int" setter= "set_spin_sides" getter= "get_spin_sides" >
2018-07-19 11:31:12 +02:00
Number of extrusion when [member mode] is [constant MODE_SPIN].
2018-05-12 09:38:00 +02:00
</member>
</members>
<constants >
<constant name= "MODE_DEPTH" value= "0" enum= "Mode" >
2018-07-19 11:31:12 +02:00
Shape is extruded to [member depth].
2018-05-12 09:38:00 +02:00
</constant>
<constant name= "MODE_SPIN" value= "1" enum= "Mode" >
2018-07-19 11:31:12 +02:00
Shape is extruded by rotating it around an axis.
2018-05-12 09:38:00 +02:00
</constant>
<constant name= "MODE_PATH" value= "2" enum= "Mode" >
2018-07-19 11:31:12 +02:00
Shape is extruded along a path set by a [Shape] set in [member path_node].
2018-05-12 09:38:00 +02:00
</constant>
<constant name= "PATH_ROTATION_POLYGON" value= "0" enum= "PathRotation" >
2018-07-19 11:31:12 +02:00
Slice is not rotated.
2018-05-12 09:38:00 +02:00
</constant>
<constant name= "PATH_ROTATION_PATH" value= "1" enum= "PathRotation" >
2018-07-19 11:31:12 +02:00
Slice is rotated around the up vector of the path.
2018-05-12 09:38:00 +02:00
</constant>
<constant name= "PATH_ROTATION_PATH_FOLLOW" value= "2" enum= "PathRotation" >
2018-07-19 11:31:12 +02:00
Slice is rotate to match the path exactly.
2018-05-12 09:38:00 +02:00
</constant>
</constants>
</class>