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.view3d_utils */
export interface Api {
/**
* Return the *region* relative 2D location of a 3D position.
* @returns 2D location
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 3D world-space location.
*/
location_3d_to_region_2d(region: R.Region, rv3d: R.RegionView3D, coord: H.In<M.VectorLike>, kw?: {
/**
* Return this value if ``coord``
* is behind the origin of a perspective view.
*/
default?: any;
}): any;
/**
* Return the *region* relative 2D location of a 3D position.
* @returns 2D location
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 3D world-space location.
*/
location_3d_to_region_2d(kw: {
/** region of the 3D viewport, typically bpy.context.region. */
region: R.Region;
/** 3D region data, typically bpy.context.space_data.region_3d. */
rv3d: R.RegionView3D;
/** 3D world-space location. */
coord: H.In<M.VectorLike>;
/**
* Return this value if ``coord``
* is behind the origin of a perspective view.
*/
default?: any;
}): any;
/**
* Return a 3D location from the region relative 2D coords, aligned with
* *depth_location*.
* @returns normalized 3D vector.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region; (event.mouse_region_x, event.mouse_region_y) for example.
* @param depth_location the returned vectors depth is aligned with this since there is no defined depth with a 2D region input.
*/
region_2d_to_location_3d(region: R.Region, rv3d: R.RegionView3D, coord: H.In<readonly number[]>, depth_location: H.In<M.VectorLike>): H.Remote<M.Vector>;
/**
* Return a 3D location from the region relative 2D coords, aligned with
* *depth_location*.
* @returns normalized 3D vector.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region; (event.mouse_region_x, event.mouse_region_y) for example.
* @param depth_location the returned vectors depth is aligned with this since there is no defined depth with a 2D region input.
*/
region_2d_to_location_3d(kw: {
/** region of the 3D viewport, typically bpy.context.region. */
region: R.Region;
/** 3D region data, typically bpy.context.space_data.region_3d. */
rv3d: R.RegionView3D;
/**
* 2D coordinates relative to the region;
* (event.mouse_region_x, event.mouse_region_y) for example.
*/
coord: H.In<readonly number[]>;
/**
* the returned vectors depth is aligned with this since
* there is no defined depth with a 2D region input.
*/
depth_location: H.In<M.VectorLike>;
}): H.Remote<M.Vector>;
/**
* Return the 3D view origin from the region relative 2D coords.
*
* .. note::
*
* Orthographic views have a less obvious origin,
* the far clip is used to define the viewport near/far extents.
* Since far clip can be a very large value,
* the result may have numeric precision issues.
*
* To avoid this problem, you can optionally clamp the far clip to a
* smaller value based on the data you're operating on.
* @returns The origin of the viewpoint in 3D space.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region; (event.mouse_region_x, event.mouse_region_y) for example.
*/
region_2d_to_origin_3d(region: R.Region, rv3d: R.RegionView3D, coord: H.In<readonly number[]>, kw?: {
/**
* Clamp the maximum far-clip value used.
* (negative value will move the offset away from the view_location)
*/
clamp?: H.In<number | null>;
}): H.Remote<M.Vector>;
/**
* Return the 3D view origin from the region relative 2D coords.
*
* .. note::
*
* Orthographic views have a less obvious origin,
* the far clip is used to define the viewport near/far extents.
* Since far clip can be a very large value,
* the result may have numeric precision issues.
*
* To avoid this problem, you can optionally clamp the far clip to a
* smaller value based on the data you're operating on.
* @returns The origin of the viewpoint in 3D space.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region; (event.mouse_region_x, event.mouse_region_y) for example.
*/
region_2d_to_origin_3d(kw: {
/** region of the 3D viewport, typically bpy.context.region. */
region: R.Region;
/** 3D region data, typically bpy.context.space_data.region_3d. */
rv3d: R.RegionView3D;
/**
* 2D coordinates relative to the region;
* (event.mouse_region_x, event.mouse_region_y) for example.
*/
coord: H.In<readonly number[]>;
/**
* Clamp the maximum far-clip value used.
* (negative value will move the offset away from the view_location)
*/
clamp?: H.In<number | null>;
}): H.Remote<M.Vector>;
/**
* Return a direction vector from the viewport at the specific 2D region
* coordinate.
* @returns normalized 3D vector.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region: (event.mouse_region_x, event.mouse_region_y) for example.
*/
region_2d_to_vector_3d(region: R.Region, rv3d: R.RegionView3D, coord: H.In<readonly number[]>): H.Remote<M.Vector>;
/**
* Return a direction vector from the viewport at the specific 2D region
* coordinate.
* @returns normalized 3D vector.
* @param region region of the 3D viewport, typically bpy.context.region.
* @param rv3d 3D region data, typically bpy.context.space_data.region_3d.
* @param coord 2D coordinates relative to the region: (event.mouse_region_x, event.mouse_region_y) for example.
*/
region_2d_to_vector_3d(kw: {
/** region of the 3D viewport, typically bpy.context.region. */
region: R.Region;
/** 3D region data, typically bpy.context.space_data.region_3d. */
rv3d: R.RegionView3D;
/**
* 2D coordinates relative to the region:
* (event.mouse_region_x, event.mouse_region_y) for example.
*/
coord: H.In<readonly number[]>;
}): H.Remote<M.Vector>;
}