Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";
/** bpy_extras.mesh_utils */
export interface Api {
/**
* @returns list of face users for each item in mesh.edges.
* @param mesh The mesh to count edges for.
*/
edge_face_count(mesh: R.Mesh): H.Ref<number[]>;
/**
* @returns list of face users for each item in mesh.edges.
* @param mesh The mesh to count edges for.
*/
edge_face_count(kw: {
/** The mesh to count edges for. */
mesh: R.Mesh;
}): H.Ref<number[]>;
/**
* @returns Dictionary of edge keys with their value set to the number of faces using each edge.
* @param mesh The mesh to count edges for.
*/
edge_face_count_dict(mesh: R.Mesh): H.Ref<Map<[number, number], number>>;
/**
* @returns Dictionary of edge keys with their value set to the number of faces using each edge.
* @param mesh The mesh to count edges for.
*/
edge_face_count_dict(kw: {
/** The mesh to count edges for. */
mesh: R.Mesh;
}): H.Ref<Map<[number, number], number>>;
/**
* Edge loops defined by edges.
*
* Takes mesh.edges or a list of edges and returns the edge loops
* as a list of vertex indices.
* Closed loops have matching start and end values.
* @returns A list of edge loops, each a list of vertex indices.
* @param mesh The mesh to extract edge loops from.
* @param edges Edges to use, or None to use all edges in the mesh.
*/
edge_loops_from_edges(mesh: R.Mesh, edges?: H.In<readonly R.MeshEdge[] | null>): H.Ref<number[][]>;
/**
* Edge loops defined by edges.
*
* Takes mesh.edges or a list of edges and returns the edge loops
* as a list of vertex indices.
* Closed loops have matching start and end values.
* @returns A list of edge loops, each a list of vertex indices.
* @param mesh The mesh to extract edge loops from.
* @param edges Edges to use, or None to use all edges in the mesh.
*/
edge_loops_from_edges(mesh: R.Mesh, kw: {
/** Edges to use, or None to use all edges in the mesh. */
edges?: H.In<readonly R.MeshEdge[] | null>;
}): H.Ref<number[][]>;
/**
* Edge loops defined by edges.
*
* Takes mesh.edges or a list of edges and returns the edge loops
* as a list of vertex indices.
* Closed loops have matching start and end values.
* @returns A list of edge loops, each a list of vertex indices.
* @param mesh The mesh to extract edge loops from.
* @param edges Edges to use, or None to use all edges in the mesh.
*/
edge_loops_from_edges(kw: {
/** The mesh to extract edge loops from. */
mesh: R.Mesh;
/** Edges to use, or None to use all edges in the mesh. */
edges?: H.In<readonly R.MeshEdge[] | null>;
}): H.Ref<number[][]>;
/**
* Splits the mesh into connected triangles, use this for separating cubes from
* other mesh elements within 1 mesh data-block.
* @returns Lists of lists containing triangles.
* @param mesh the mesh used to group with.
*/
mesh_linked_triangles(mesh: R.Mesh): H.Ref<R.MeshLoopTriangle[][]>;
/**
* Splits the mesh into connected triangles, use this for separating cubes from
* other mesh elements within 1 mesh data-block.
* @returns Lists of lists containing triangles.
* @param mesh the mesh used to group with.
*/
mesh_linked_triangles(kw: {
/** the mesh used to group with. */
mesh: R.Mesh;
}): H.Ref<R.MeshLoopTriangle[][]>;
/**
* Returns lists of polygon indices connected by UV islands.
* @returns list of lists containing polygon indices
* @param mesh the mesh used to group with.
*/
mesh_linked_uv_islands(mesh: R.Mesh): H.Ref<number[][]>;
/**
* Returns lists of polygon indices connected by UV islands.
* @returns list of lists containing polygon indices
* @param mesh the mesh used to group with.
*/
mesh_linked_uv_islands(kw: {
/** the mesh used to group with. */
mesh: R.Mesh;
}): H.Ref<number[][]>;
/**
* Takes a poly-line of indices (ngon) and returns a list of face
* index lists. Designed to be used for importers that need indices for an
* ngon to create from existing verts.
* @returns Tessellated faces as a list of triangle index tuples.
* @param from_data Either a mesh, or a list/tuple of 3D vectors.
* @param indices a list of indices to use. This list is the ordered closed poly-line to fill, and can be a subset of the data given.
* @param fix_loops If this is enabled poly-lines that use loops to make multiple poly-lines are dealt with correctly.
* @param debug_print Print debug information to the console.
*/
ngon_tessellate(from_data: H.In<R.Mesh | readonly (readonly number[])[] | readonly [readonly number[]]>, indices: H.In<readonly number[]>, fix_loops?: H.In<boolean>, debug_print?: H.In<boolean>): H.Ref<[number, number, number][]>;
/**
* Takes a poly-line of indices (ngon) and returns a list of face
* index lists. Designed to be used for importers that need indices for an
* ngon to create from existing verts.
* @returns Tessellated faces as a list of triangle index tuples.
* @param from_data Either a mesh, or a list/tuple of 3D vectors.
* @param indices a list of indices to use. This list is the ordered closed poly-line to fill, and can be a subset of the data given.
* @param fix_loops If this is enabled poly-lines that use loops to make multiple poly-lines are dealt with correctly.
* @param debug_print Print debug information to the console.
*/
ngon_tessellate(from_data: H.In<R.Mesh | readonly (readonly number[])[] | readonly [readonly number[]]>, indices: H.In<readonly number[]>, kw: {
/**
* If this is enabled poly-lines
* that use loops to make multiple
* poly-lines are dealt with correctly.
*/
fix_loops?: H.In<boolean>;
/** Print debug information to the console. */
debug_print?: H.In<boolean>;
}): H.Ref<[number, number, number][]>;
/**
* Takes a poly-line of indices (ngon) and returns a list of face
* index lists. Designed to be used for importers that need indices for an
* ngon to create from existing verts.
* @returns Tessellated faces as a list of triangle index tuples.
* @param from_data Either a mesh, or a list/tuple of 3D vectors.
* @param indices a list of indices to use. This list is the ordered closed poly-line to fill, and can be a subset of the data given.
* @param fix_loops If this is enabled poly-lines that use loops to make multiple poly-lines are dealt with correctly.
* @param debug_print Print debug information to the console.
*/
ngon_tessellate(kw: {
/** Either a mesh, or a list/tuple of 3D vectors. */
from_data: H.In<R.Mesh | readonly (readonly number[])[] | readonly [readonly number[]]>;
/**
* a list of indices to use.
* This list is the ordered closed poly-line to fill, and can be a subset of the data given.
*/
indices: H.In<readonly number[]>;
/**
* If this is enabled poly-lines
* that use loops to make multiple
* poly-lines are dealt with correctly.
*/
fix_loops?: H.In<boolean>;
/** Print debug information to the console. */
debug_print?: H.In<boolean>;
}): H.Ref<[number, number, number][]>;
/**
* Generates a list of random points over mesh loop triangles.
* @returns List of random points over all triangles.
* @param num_points The number of random points to generate on each triangle.
* @param loop_triangles Sequence of the triangles to generate points on.
*/
triangle_random_points(num_points: H.In<number>, loop_triangles: H.In<readonly R.MeshLoopTriangle[]>): H.Ref<M.Vector[]>;
/**
* Generates a list of random points over mesh loop triangles.
* @returns List of random points over all triangles.
* @param num_points The number of random points to generate on each triangle.
* @param loop_triangles Sequence of the triangles to generate points on.
*/
triangle_random_points(kw: {
/** The number of random points to generate on each triangle. */
num_points: H.In<number>;
/** Sequence of the triangles to generate points on. */
loop_triangles: H.In<readonly R.MeshLoopTriangle[]>;
}): H.Ref<M.Vector[]>;
}