Skip to content

armgit / raea

Public Imported from GitHub
0

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.

3.6 KB
Raw Blame
// 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";

/** bpy.ops.geometry */
export interface Ops {
  /**
   * Add attribute to geometry
   *
   * bpy.ops.geometry.attribute_add
   */
  attribute_add: H.Operator<{
    /** Name of new attribute Default: "". */
    name?: H.In<string>;
    /** Type of element that attribute is stored on Default: 'POINT'. */
    domain?: H.In<E.AttributeDomain>;
    /** Type of data stored in attribute Default: 'FLOAT'. */
    data_type?: H.In<E.AttributeDataType>;
  }>;
  /**
   * Change how the attribute is stored
   *
   * bpy.ops.geometry.attribute_convert
   */
  attribute_convert: H.Operator<{
    /**
     * Mode Default: 'GENERIC'.
     * - `GENERIC`: Generic
     * - `VERTEX_GROUP`: Vertex Group
     */
    mode?: H.In<"GENERIC" | "VERTEX_GROUP">;
    /** Which geometry element to move the attribute to Default: 'POINT'. */
    domain?: H.In<E.AttributeDomain>;
    /** Data Type Default: 'FLOAT'. */
    data_type?: H.In<E.AttributeDataType>;
  }>;
  /**
   * Remove attribute from geometry
   *
   * bpy.ops.geometry.attribute_remove
   */
  attribute_remove: H.Operator<{}>;
  /**
   * Add color attribute to geometry
   *
   * bpy.ops.geometry.color_attribute_add
   */
  color_attribute_add: H.Operator<{
    /** Name of new color attribute Default: "". */
    name?: H.In<string>;
    /**
     * Type of element that attribute is stored on Default: 'POINT'.
     * - `POINT`: Vertex
     * - `CORNER`: Face Corner
     */
    domain?: H.In<"POINT" | "CORNER">;
    /**
     * Type of data stored in attribute Default: 'FLOAT_COLOR'.
     * - `FLOAT_COLOR`: Color (RGBA color 32-bit floating-point values)
     * - `BYTE_COLOR`: Byte Color (RGBA color with 8-bit positive integer values)
     */
    data_type?: H.In<"FLOAT_COLOR" | "BYTE_COLOR">;
    /** Default fill color Default: (0.0, 0.0, 0.0, 1.0). */
    color?: H.In<readonly number[]>;
  }>;
  /**
   * Change how the color attribute is stored
   *
   * bpy.ops.geometry.color_attribute_convert
   */
  color_attribute_convert: H.Operator<{
    /**
     * Type of element that attribute is stored on Default: 'POINT'.
     * - `POINT`: Vertex
     * - `CORNER`: Face Corner
     */
    domain?: H.In<"POINT" | "CORNER">;
    /**
     * Type of data stored in attribute Default: 'FLOAT_COLOR'.
     * - `FLOAT_COLOR`: Color (RGBA color 32-bit floating-point values)
     * - `BYTE_COLOR`: Byte Color (RGBA color with 8-bit positive integer values)
     */
    data_type?: H.In<"FLOAT_COLOR" | "BYTE_COLOR">;
  }>;
  /**
   * Duplicate color attribute
   *
   * bpy.ops.geometry.color_attribute_duplicate
   */
  color_attribute_duplicate: H.Operator<{}>;
  /**
   * Remove color attribute from geometry
   *
   * bpy.ops.geometry.color_attribute_remove
   */
  color_attribute_remove: H.Operator<{}>;
  /**
   * Set default color attribute used for rendering
   *
   * bpy.ops.geometry.color_attribute_render_set
   */
  color_attribute_render_set: H.Operator<{
    /** Name of color attribute Default: "Color". */
    name?: H.In<string>;
  }>;
  /**
   * Toggle geometry randomization for debugging purposes
   *
   * bpy.ops.geometry.geometry_randomization
   */
  geometry_randomization: H.Operator<{
    /** Randomize the order of geometry elements (e.g. vertices or edges) after some operations where there are no guarantees about the order. This avoids accidentally depending on something that may change in the future Default: False. */
    value?: H.In<boolean>;
  }>;
}