2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2018-02-24 18:59:38 +01:00
<class name= "Mesh" inherits= "Resource" category= "Core" version= "3.0.1" >
2017-09-12 22:42:36 +02:00
<brief_description >
A [Resource] that contains vertex-array based geometry.
</brief_description>
<description >
Mesh is a type of [Resource] that contains vertex-array based geometry, divided in [i]surfaces[/i]. Each surface contains a completely separate array and a material used to draw it. Design wise, a mesh with multiple surfaces is preferred to a single surface, because objects created in 3D editing software commonly contain multiple materials.
</description>
<tutorials >
</tutorials>
<demos >
</demos>
<methods >
<method name= "create_convex_shape" qualifiers= "const" >
<return type= "Shape" >
</return>
<description >
Calculate a [ConvexPolygonShape] from the mesh.
</description>
</method>
<method name= "create_outline" qualifiers= "const" >
<return type= "Mesh" >
</return>
<argument index= "0" name= "margin" type= "float" >
</argument>
<description >
Calculate an outline mesh at a defined offset (margin) from the original mesh. Note: Typically returns the vertices in reverse order (e.g. clockwise to anti-clockwise).
</description>
</method>
<method name= "create_trimesh_shape" qualifiers= "const" >
<return type= "Shape" >
</return>
<description >
Calculate a [ConcavePolygonShape] from the mesh.
</description>
</method>
<method name= "generate_triangle_mesh" qualifiers= "const" >
<return type= "TriangleMesh" >
</return>
<description >
Generate a [TriangleMesh] from the mesh.
</description>
</method>
<method name= "get_faces" qualifiers= "const" >
<return type= "PoolVector3Array" >
</return>
<description >
Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle.
</description>
</method>
</methods>
2017-12-10 00:43:30 +01:00
<members >
<member name= "lightmap_size_hint" type= "Vector2" setter= "set_lightmap_size_hint" getter= "get_lightmap_size_hint" >
</member>
</members>
2017-09-12 22:42:36 +02:00
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_POINTS" value= "0" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as points (one vertex equals one point).
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINES" value= "1" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as lines (every two vertices a line is created).
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINE_STRIP" value= "2" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as line strip.
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINE_LOOP" value= "3" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as line loop (like line strip, but closed).
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLES" value= "4" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as triangles (every three vertices a triangle is created).
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLE_STRIP" value= "5" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as triangle strips.
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLE_FAN" value= "6" enum= "PrimitiveType" >
2017-09-12 22:42:36 +02:00
Render array as triangle fans.
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_SHAPE_MODE_NORMALIZED" value= "0" enum= "BlendShapeMode" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_SHAPE_MODE_RELATIVE" value= "1" enum= "BlendShapeMode" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_VERTEX" value= "1" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_NORMAL" value= "2" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TANGENT" value= "4" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_COLOR" value= "8" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TEX_UV" value= "16" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TEX_UV2" value= "32" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_BONES" value= "64" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_WEIGHTS" value= "128" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_INDEX" value= "256" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_BASE" value= "9" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_VERTEX" value= "512" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_NORMAL" value= "1024" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TANGENT" value= "2048" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_COLOR" value= "4096" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TEX_UV" value= "8192" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TEX_UV2" value= "16384" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_BONES" value= "32768" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_WEIGHTS" value= "65536" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_INDEX" value= "131072" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FLAG_USE_2D_VERTICES" value= "262144" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FLAG_USE_16_BIT_BONES" value= "524288" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_DEFAULT" value= "97792" enum= "ArrayFormat" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_VERTEX" value= "0" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_NORMAL" value= "1" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TANGENT" value= "2" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COLOR" value= "3" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TEX_UV" value= "4" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TEX_UV2" value= "5" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_BONES" value= "6" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_WEIGHTS" value= "7" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_INDEX" value= "8" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_MAX" value= "9" enum= "ArrayType" >
2017-09-16 01:46:14 +02:00
</constant>
2017-09-12 22:42:36 +02:00
</constants>
</class>