SurfaceTool

Inherits: RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Methods

void

add_index ( int index )

void

add_triangle_fan ( PackedVector3Array vertices, PackedVector2Array uvs=PackedVector2Array(), PackedColorArray colors=PackedColorArray(), PackedVector2Array uv2s=PackedVector2Array(), PackedVector3Array normals=PackedVector3Array(), Plane[] tangents=[] )

void

add_vertex ( Vector3 vertex )

void

append_from ( Mesh existing, int surface, Transform3D transform )

void

begin ( PrimitiveType primitive )

void

clear ( )

ArrayMesh

commit ( ArrayMesh existing=null, int flags=0 )

Array

commit_to_arrays ( )

void

create_from ( Mesh existing, int surface )

void

create_from_arrays ( Array arrays, PrimitiveType primitive_type=3 )

void

create_from_blend_shape ( Mesh existing, int surface, String blend_shape )

void

deindex ( )

PackedInt32Array

generate_lod ( float nd_threshold, int target_index_count=3 )

void

generate_normals ( bool flip=false )

void

generate_tangents ( )

AABB

get_aabb ( ) const

CustomFormat

get_custom_format ( int channel_index ) const

PrimitiveType

get_primitive_type ( ) const

SkinWeightCount

get_skin_weight_count ( ) const

void

index ( )

void

optimize_indices_for_cache ( )

void

set_bones ( PackedInt32Array bones )

void

set_color ( Color color )

void

set_custom ( int channel_index, Color custom_color )

void

set_custom_format ( int channel_index, CustomFormat format )

void

set_material ( Material material )

void

set_normal ( Vector3 normal )

void

set_skin_weight_count ( SkinWeightCount count )

void

set_smooth_group ( int index )

void

set_tangent ( Plane tangent )

void

set_uv ( Vector2 uv )

void

set_uv2 ( Vector2 uv2 )

void

set_weights ( PackedFloat32Array weights )


Enumerations

enum CustomFormat:

CustomFormat CUSTOM_RGBA8_UNORM = 0

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RGBA8_SNORM = 1

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RG_HALF = 2

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RGBA_HALF = 3

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_R_FLOAT = 4

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RG_FLOAT = 5

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RGB_FLOAT = 6

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_RGBA_FLOAT = 7

There is currently no description for this enum. Please help us by contributing one!

CustomFormat CUSTOM_MAX = 8

There is currently no description for this enum. Please help us by contributing one!


enum SkinWeightCount:

SkinWeightCount SKIN_4_WEIGHTS = 0

There is currently no description for this enum. Please help us by contributing one!

SkinWeightCount SKIN_8_WEIGHTS = 1

There is currently no description for this enum. Please help us by contributing one!


Method Descriptions

void add_index ( int index )

There is currently no description for this method. Please help us by contributing one!


void add_triangle_fan ( PackedVector3Array vertices, PackedVector2Array uvs=PackedVector2Array(), PackedColorArray colors=PackedColorArray(), PackedVector2Array uv2s=PackedVector2Array(), PackedVector3Array normals=PackedVector3Array(), Plane[] tangents=[] )

There is currently no description for this method. Please help us by contributing one!


void add_vertex ( Vector3 vertex )

There is currently no description for this method. Please help us by contributing one!


void append_from ( Mesh existing, int surface, Transform3D transform )

There is currently no description for this method. Please help us by contributing one!


void begin ( PrimitiveType primitive )

There is currently no description for this method. Please help us by contributing one!


void clear ( )

There is currently no description for this method. Please help us by contributing one!


ArrayMesh commit ( ArrayMesh existing=null, int flags=0 )

There is currently no description for this method. Please help us by contributing one!


Array commit_to_arrays ( )

There is currently no description for this method. Please help us by contributing one!


void create_from ( Mesh existing, int surface )

There is currently no description for this method. Please help us by contributing one!


void create_from_arrays ( Array arrays, PrimitiveType primitive_type=3 )

There is currently no description for this method. Please help us by contributing one!


void create_from_blend_shape ( Mesh existing, int surface, String blend_shape )

There is currently no description for this method. Please help us by contributing one!


void deindex ( )

There is currently no description for this method. Please help us by contributing one!


PackedInt32Array generate_lod ( float nd_threshold, int target_index_count=3 )

There is currently no description for this method. Please help us by contributing one!


void generate_normals ( bool flip=false )

There is currently no description for this method. Please help us by contributing one!


void generate_tangents ( )

There is currently no description for this method. Please help us by contributing one!


AABB get_aabb ( ) const

There is currently no description for this method. Please help us by contributing one!


CustomFormat get_custom_format ( int channel_index ) const

There is currently no description for this method. Please help us by contributing one!


PrimitiveType get_primitive_type ( ) const

There is currently no description for this method. Please help us by contributing one!


SkinWeightCount get_skin_weight_count ( ) const

There is currently no description for this method. Please help us by contributing one!


void index ( )

There is currently no description for this method. Please help us by contributing one!


void optimize_indices_for_cache ( )

There is currently no description for this method. Please help us by contributing one!


void set_bones ( PackedInt32Array bones )

There is currently no description for this method. Please help us by contributing one!


void set_color ( Color color )

There is currently no description for this method. Please help us by contributing one!


void set_custom ( int channel_index, Color custom_color )

There is currently no description for this method. Please help us by contributing one!


void set_custom_format ( int channel_index, CustomFormat format )

There is currently no description for this method. Please help us by contributing one!


void set_material ( Material material )

There is currently no description for this method. Please help us by contributing one!


void set_normal ( Vector3 normal )

There is currently no description for this method. Please help us by contributing one!


void set_skin_weight_count ( SkinWeightCount count )

There is currently no description for this method. Please help us by contributing one!


void set_smooth_group ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_tangent ( Plane tangent )

There is currently no description for this method. Please help us by contributing one!


void set_uv ( Vector2 uv )

There is currently no description for this method. Please help us by contributing one!


void set_uv2 ( Vector2 uv2 )

There is currently no description for this method. Please help us by contributing one!


void set_weights ( PackedFloat32Array weights )

There is currently no description for this method. Please help us by contributing one!