SurfaceTool

Inherits: Reference < Object

Category: Core

Brief Description

Helper tool to create geometry.

Member Functions

void add_bones ( IntArray bones )
void add_color ( Color color )
void add_index ( int index )
void add_normal ( Vector3 normal )
void add_smooth_group ( bool smooth )
void add_tangent ( Plane tangent )
void add_triangle_fan ( Vector3Array vertexes, Vector2Array uvs=Vector2Array([]), ColorArray colors=ColorArray([ColorArray]), Vector2Array uv2s=Vector2Array([]), Vector3Array normals=Vector3Array([]), Array tangents=Array() )
void add_uv ( Vector2 uv )
void add_uv2 ( Vector2 uv2 )
void add_vertex ( Vector3 vertex )
void add_weights ( RealArray weights )
void begin ( int primitive )
void clear ( )
Mesh commit ( Mesh existing=NULL )
void deindex ( )
void generate_normals ( )
void index ( )
void set_material ( Material material )

Description

Helper tool to create geometry.

Member Function Description

  • void add_color ( Color color )
  • void add_index ( int index )
  • void add_normal ( Vector3 normal )
  • void add_smooth_group ( bool smooth )
  • void add_tangent ( Plane tangent )
  • void add_vertex ( Vector3 vertex )
  • void begin ( int primitive )
  • void clear ( )
  • void deindex ( )
  • void generate_normals ( )
  • void index ( )
  • void set_material ( Material material )