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";
/** This module provides bmesh utility functions for splitting, joining, and modifying mesh elements. */
export interface Api {
/**
* Rotate the edge and return the newly created edge.
* If rotating the edge fails, None will be returned.
* @returns The newly rotated edge.
* @param edge The edge to rotate.
* @param ccw When True the edge will be rotated counter clockwise.
*/
edge_rotate(edge: P.bmesh_types.BMEdge, ccw?: H.In<boolean>): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Rotate the edge and return the newly created edge.
* If rotating the edge fails, None will be returned.
* @returns The newly rotated edge.
* @param edge The edge to rotate.
* @param ccw When True the edge will be rotated counter clockwise.
*/
edge_rotate(edge: P.bmesh_types.BMEdge, kw: {
/** When True the edge will be rotated counter clockwise. */
ccw?: H.In<boolean>;
}): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Rotate the edge and return the newly created edge.
* If rotating the edge fails, None will be returned.
* @returns The newly rotated edge.
* @param edge The edge to rotate.
* @param ccw When True the edge will be rotated counter clockwise.
*/
edge_rotate(kw: {
/** The edge to rotate. */
edge: P.bmesh_types.BMEdge;
/** When True the edge will be rotated counter clockwise. */
ccw?: H.In<boolean>;
}): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Split an edge, return the newly created data.
* @returns The newly created (edge, vert) pair.
* @param edge The edge to split.
* @param vert One of the verts on the edge, defines the split direction.
* @param fac The point on the edge where the new vert will be created [0 - 1].
*/
edge_split(edge: P.bmesh_types.BMEdge, vert: P.bmesh_types.BMVert, fac: H.In<number>): H.Ref<[P.bmesh_types.BMEdge, P.bmesh_types.BMVert]>;
/**
* Split an edge, return the newly created data.
* @returns The newly created (edge, vert) pair.
* @param edge The edge to split.
* @param vert One of the verts on the edge, defines the split direction.
* @param fac The point on the edge where the new vert will be created [0 - 1].
*/
edge_split(kw: {
/** The edge to split. */
edge: P.bmesh_types.BMEdge;
/** One of the verts on the edge, defines the split direction. */
vert: P.bmesh_types.BMVert;
/** The point on the edge where the new vert will be created [0 - 1]. */
fac: H.In<number>;
}): H.Ref<[P.bmesh_types.BMEdge, P.bmesh_types.BMVert]>;
/**
* Flip the face's direction.
* @param face Face to flip.
*/
face_flip(face: P.bmesh_types.BMFace): H.Ref<void>;
/**
* Flip the face's direction.
* @param face Face to flip.
*/
face_flip(kw: {
/** Face to flip. */
face: P.bmesh_types.BMFace;
}): H.Ref<void>;
/**
* Joins a sequence of faces.
* @returns The newly created face or None on failure.
* @param faces Sequence of faces.
* @param remove Remove the edges and vertices between the faces.
*/
face_join(faces: H.In<readonly P.bmesh_types.BMFace[]>, remove?: H.In<boolean>): H.Ptr<P.bmesh_types.BMFace>;
/**
* Joins a sequence of faces.
* @returns The newly created face or None on failure.
* @param faces Sequence of faces.
* @param remove Remove the edges and vertices between the faces.
*/
face_join(faces: H.In<readonly P.bmesh_types.BMFace[]>, kw: {
/** Remove the edges and vertices between the faces. */
remove?: H.In<boolean>;
}): H.Ptr<P.bmesh_types.BMFace>;
/**
* Joins a sequence of faces.
* @returns The newly created face or None on failure.
* @param faces Sequence of faces.
* @param remove Remove the edges and vertices between the faces.
*/
face_join(kw: {
/** Sequence of faces. */
faces: H.In<readonly P.bmesh_types.BMFace[]>;
/** Remove the edges and vertices between the faces. */
remove?: H.In<boolean>;
}): H.Ptr<P.bmesh_types.BMFace>;
/**
* Face split with optional intermediate points.
* @returns The newly created face and loop.
* @param face The face to cut.
* @param vert_a First vertex to cut in the face (face must contain the vert).
* @param vert_b Second vertex to cut in the face (face must contain the vert).
*/
face_split(face: P.bmesh_types.BMFace, vert_a: P.bmesh_types.BMVert, vert_b: P.bmesh_types.BMVert, kw?: {
/** Optional sequence of 3D points in between *vert_a* and *vert_b*. */
coords?: H.In<readonly (readonly number[])[]>;
/** Use an existing edge if it exists (only used when *coords* argument is empty or omitted) */
use_exist?: H.In<boolean>;
/** Newly created edge will copy settings from this one. */
source?: P.bmesh_types.BMEdge | null;
}): H.Ref<[P.bmesh_types.BMFace, P.bmesh_types.BMLoop]>;
/**
* Face split with optional intermediate points.
* @returns The newly created face and loop.
* @param face The face to cut.
* @param vert_a First vertex to cut in the face (face must contain the vert).
* @param vert_b Second vertex to cut in the face (face must contain the vert).
*/
face_split(kw: {
/** The face to cut. */
face: P.bmesh_types.BMFace;
/** First vertex to cut in the face (face must contain the vert). */
vert_a: P.bmesh_types.BMVert;
/** Second vertex to cut in the face (face must contain the vert). */
vert_b: P.bmesh_types.BMVert;
/** Optional sequence of 3D points in between *vert_a* and *vert_b*. */
coords?: H.In<readonly (readonly number[])[]>;
/** Use an existing edge if it exists (only used when *coords* argument is empty or omitted) */
use_exist?: H.In<boolean>;
/** Newly created edge will copy settings from this one. */
source?: P.bmesh_types.BMEdge | null;
}): H.Ref<[P.bmesh_types.BMFace, P.bmesh_types.BMLoop]>;
/**
* Splits a face into any number of regions defined by an edgenet.
*
* .. note::
*
* Regions defined by edges need to connect to the face, otherwise they're ignored as loose edges.
* @returns The newly created faces.
* @param face The face to split.
* @param edgenet Sequence of edges.
*/
face_split_edgenet(face: P.bmesh_types.BMFace, edgenet: H.In<readonly P.bmesh_types.BMEdge[]>): H.Seq<P.bmesh_types.BMFace>;
/**
* Splits a face into any number of regions defined by an edgenet.
*
* .. note::
*
* Regions defined by edges need to connect to the face, otherwise they're ignored as loose edges.
* @returns The newly created faces.
* @param face The face to split.
* @param edgenet Sequence of edges.
*/
face_split_edgenet(kw: {
/** The face to split. */
face: P.bmesh_types.BMFace;
/** Sequence of edges. */
edgenet: H.In<readonly P.bmesh_types.BMEdge[]>;
}): H.Seq<P.bmesh_types.BMFace>;
/**
* Rip a vertex in a face away and add a new vertex.
*
* .. note::
*
* This is the same as loop_separate, and has only been added for convenience.
* @returns The newly created vertex or None on failure.
* @param face The face to separate.
* @param vert A vertex in the face to separate.
*/
face_vert_separate(face: P.bmesh_types.BMFace, vert: P.bmesh_types.BMVert): H.Ptr<P.bmesh_types.BMVert>;
/**
* Rip a vertex in a face away and add a new vertex.
*
* .. note::
*
* This is the same as loop_separate, and has only been added for convenience.
* @returns The newly created vertex or None on failure.
* @param face The face to separate.
* @param vert A vertex in the face to separate.
*/
face_vert_separate(kw: {
/** The face to separate. */
face: P.bmesh_types.BMFace;
/** A vertex in the face to separate. */
vert: P.bmesh_types.BMVert;
}): H.Ptr<P.bmesh_types.BMVert>;
/**
* Rip a vertex in a face away and add a new vertex.
* @returns The newly created vertex or None on failure.
* @param loop The loop to separate.
*/
loop_separate(loop: P.bmesh_types.BMLoop): H.Ptr<P.bmesh_types.BMVert>;
/**
* Rip a vertex in a face away and add a new vertex.
* @returns The newly created vertex or None on failure.
* @param loop The loop to separate.
*/
loop_separate(kw: {
/** The loop to separate. */
loop: P.bmesh_types.BMLoop;
}): H.Ptr<P.bmesh_types.BMVert>;
/**
* Check UV selection state for consistency issues.
* @returns An error dictionary or None when there are no errors found.
* @param bm The BMesh to check.
*/
uv_select_check(bm: P.bmesh_types.BMesh, kw?: {
/** Check the data is properly synchronized between UV's and the underlying mesh. Failure to synchronize with the mesh selection may cause tools not to behave properly. */
sync?: H.In<boolean>;
/** Check the selection has been properly flushed between elements (based on the current :attr:`bmesh.types.BMesh.select_mode`). */
flush?: H.In<boolean>;
/** Check connected UV's and edges have a matching selection state. */
contiguous?: H.In<boolean>;
}): H.Ref<Map<string, number> | null>;
/**
* Collapse a vertex into an edge.
* @returns The resulting edge from the collapse operation.
* @param vert The vert that will be collapsed.
* @param edge The edge to collapse into.
*/
vert_collapse_edge(vert: P.bmesh_types.BMVert, edge: P.bmesh_types.BMEdge): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Collapse a vertex into an edge.
* @returns The resulting edge from the collapse operation.
* @param vert The vert that will be collapsed.
* @param edge The edge to collapse into.
*/
vert_collapse_edge(kw: {
/** The vert that will be collapsed. */
vert: P.bmesh_types.BMVert;
/** The edge to collapse into. */
edge: P.bmesh_types.BMEdge;
}): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Collapses a vertex that has only two manifold edges onto a vertex it shares an edge with.
* @returns The resulting edge from the collapse operation.
* @param vert The vert that will be collapsed.
* @param edge The edge to collapse into.
* @param fac The factor to use when merging customdata [0 - 1].
* @param join_faces When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one.
*/
vert_collapse_faces(vert: P.bmesh_types.BMVert, edge: P.bmesh_types.BMEdge, fac: H.In<number>, join_faces: H.In<boolean>): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Collapses a vertex that has only two manifold edges onto a vertex it shares an edge with.
* @returns The resulting edge from the collapse operation.
* @param vert The vert that will be collapsed.
* @param edge The edge to collapse into.
* @param fac The factor to use when merging customdata [0 - 1].
* @param join_faces When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one.
*/
vert_collapse_faces(kw: {
/** The vert that will be collapsed. */
vert: P.bmesh_types.BMVert;
/** The edge to collapse into. */
edge: P.bmesh_types.BMEdge;
/** The factor to use when merging customdata [0 - 1]. */
fac: H.In<number>;
/** When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one. */
join_faces: H.In<boolean>;
}): H.Ptr<P.bmesh_types.BMEdge>;
/**
* Dissolve this vertex (will be removed).
* @returns True when the vertex dissolve is successful.
* @param vert The vert to be dissolved.
*/
vert_dissolve(vert: P.bmesh_types.BMVert): H.Ref<boolean>;
/**
* Dissolve this vertex (will be removed).
* @returns True when the vertex dissolve is successful.
* @param vert The vert to be dissolved.
*/
vert_dissolve(kw: {
/** The vert to be dissolved. */
vert: P.bmesh_types.BMVert;
}): H.Ref<boolean>;
/**
* Separate this vertex at every edge.
* @returns The newly separated verts (including the vertex passed).
* @param vert The vert to be separated.
* @param edges The edges to separate.
*/
vert_separate(vert: P.bmesh_types.BMVert, edges: H.In<readonly P.bmesh_types.BMEdge[]>): H.Seq<P.bmesh_types.BMVert>;
/**
* Separate this vertex at every edge.
* @returns The newly separated verts (including the vertex passed).
* @param vert The vert to be separated.
* @param edges The edges to separate.
*/
vert_separate(kw: {
/** The vert to be separated. */
vert: P.bmesh_types.BMVert;
/** The edges to separate. */
edges: H.In<readonly P.bmesh_types.BMEdge[]>;
}): H.Seq<P.bmesh_types.BMVert>;
/**
* Splice vert into vert_target, merging them.
*
* .. note:: The verts mustn't share an edge or face.
* @param vert The vertex to be removed.
* @param vert_target The vertex to merge into.
*/
vert_splice(vert: P.bmesh_types.BMVert, vert_target: P.bmesh_types.BMVert): H.Ref<void>;
/**
* Splice vert into vert_target, merging them.
*
* .. note:: The verts mustn't share an edge or face.
* @param vert The vertex to be removed.
* @param vert_target The vertex to merge into.
*/
vert_splice(kw: {
/** The vertex to be removed. */
vert: P.bmesh_types.BMVert;
/** The vertex to merge into. */
vert_target: P.bmesh_types.BMVert;
}): H.Ref<void>;
}