Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | VectorObject |
Macros | |
#define | VectorObject_Check(v) PyObject_TypeCheck((v), &vector_Type) |
#define | VectorObject_CheckExact(v) (Py_TYPE(v) == &vector_Type) |
Functions | |
PyObject * | Vector_CreatePyObject (const float *vec, int vec_num, PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT |
PyObject * | Vector_CreatePyObject_wrap (float *vec, int vec_num, PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
PyObject * | Vector_CreatePyObject_cb (PyObject *user, int vec_num, unsigned char cb_type, unsigned char subtype) ATTR_WARN_UNUSED_RESULT |
PyObject * | Vector_CreatePyObject_alloc (float *vec, int vec_num, PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) |
Variables | |
PyTypeObject | vector_Type |
#define VectorObject_Check | ( | v | ) | PyObject_TypeCheck((v), &vector_Type) |
Definition at line 11 of file mathutils_Vector.h.
#define VectorObject_CheckExact | ( | v | ) | (Py_TYPE(v) == &vector_Type) |
Definition at line 12 of file mathutils_Vector.h.
PyObject* Vector_CreatePyObject | ( | const float * | vec, |
int | vec_num, | ||
PyTypeObject * | base_type | ||
) |
Definition at line 3284 of file mathutils_Vector.c.
References BASE_MATH_FLAG_DEFAULT, BASE_MATH_NEW, copy_vn_fl(), NULL, self, UNLIKELY, and vector_Type.
Referenced by bpy_bmedge_calc_tangent(), bpy_bmface_calc_center_bounds(), bpy_bmface_calc_center_mean(), bpy_bmface_calc_center_median_weighted(), bpy_bmface_calc_tangent_edge(), bpy_bmface_calc_tangent_edge_diagonal(), bpy_bmface_calc_tangent_edge_pair(), bpy_bmface_calc_tangent_vert_diagonal(), bpy_bmloop_calc_normal(), bpy_bmloop_calc_tangent(), bpy_slot_to_py(), Freestyle_blendRamp(), Freestyle_evaluateColorRamp(), kdtree_nearest_to_py_tuple(), M_Geometry_barycentric_transform(), M_Geometry_closest_point_on_tri(), M_Geometry_interpolate_bezier(), M_Geometry_intersect_line_line(), M_Geometry_intersect_line_line_2d(), M_Geometry_intersect_line_plane(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), M_Geometry_intersect_plane_plane(), M_Geometry_intersect_point_line(), M_Geometry_intersect_point_tri(), M_Geometry_intersect_ray_tri(), M_Geometry_intersect_sphere_sphere_2d(), M_Geometry_normal(), M_Noise_noise_vector(), M_Noise_random_unit_vector(), M_Noise_turbulence_vector(), M_Noise_voronoi(), Matrix_decompose(), Matrix_matmul(), Matrix_to_scale(), Matrix_to_translation(), points_in_planes_fn(), py_bvhtree_nearest_to_py_tuple(), py_bvhtree_raycast_to_py_tuple(), pyrna_math_object_from_array(), pyrna_param_to_py(), Quaternion_axis_vector_get(), Quaternion_matmul(), Quaternion_to_axis_angle(), Quaternion_to_exponential_map(), Vector_copy(), Vector_CreatePyObject_cb(), Vector_cross(), Vector_from_Vec2f(), Vector_from_Vec3f(), Vector_from_Vec3r(), Vector_matmul(), Vector_orthogonal(), Vector_reflect(), Vector_slerp(), Vector_swizzle_get(), Vector_to_2d(), Vector_to_3d(), and Vector_to_4d().
PyObject* Vector_CreatePyObject_alloc | ( | float * | vec, |
int | vec_num, | ||
PyTypeObject * | base_type | ||
) |
vec | Initialized vector value to use in-place, allocated with #PyMem_Malloc |
Definition at line 3366 of file mathutils_Vector.c.
References BASE_MATH_FLAG_IS_WRAP, and Vector_CreatePyObject_wrap().
Referenced by C_Vector_Fill(), C_Vector_Linspace(), C_Vector_Range(), C_Vector_Repeat(), M_Noise_random_vector(), Vector_add(), Vector_div(), Vector_lerp(), vector_mul_float(), vector_mul_vec(), Vector_neg(), Vector_new(), Vector_project(), Vector_resized(), and Vector_sub().
PyObject* Vector_CreatePyObject_cb | ( | PyObject * | user, |
int | vec_num, | ||
unsigned char | cb_type, | ||
unsigned char | subtype | ||
) |
Create a vector where the value is defined by registered callbacks, see: Mathutils_RegisterCallback
Definition at line 3352 of file mathutils_Vector.c.
References NULL, and Vector_CreatePyObject().
Referenced by BPy_BMLoopColor_CreatePyObject(), FEdgeSharp_normal_left_get(), FEdgeSharp_normal_right_get(), FEdgeSmooth_normal_get(), FrsMaterial_ambient_get(), FrsMaterial_diffuse_get(), FrsMaterial_emission_get(), FrsMaterial_line_get(), FrsMaterial_specular_get(), Matrix_item_col(), Matrix_item_row(), Matrix_slice(), Matrix_translation_get(), pyrna_math_object_from_array(), StrokeAttribute_thickness_get(), StrokeVertex_point_get(), SVertex_point_2d_get(), and SVertex_point_3d_get().
PyObject* Vector_CreatePyObject_wrap | ( | float * | vec, |
int | vec_num, | ||
PyTypeObject * | base_type | ||
) |
Create a vector that wraps existing memory.
vec | Use this vector in-place. |
Definition at line 3329 of file mathutils_Vector.c.
References BASE_MATH_FLAG_DEFAULT, BASE_MATH_FLAG_IS_WRAP, BASE_MATH_NEW, NULL, and vector_Type.
Referenced by bpy_bmface_normal_get(), BPy_BMLayerItem_GetItem(), bpy_bmloopuv_uv_get(), bpy_bmvert_co_get(), bpy_bmvert_normal_get(), bpy_bmvertskin_radius_get(), and Vector_CreatePyObject_alloc().
|
extern |
Definition at line 3193 of file mathutils_Vector.c.
Referenced by PyInit_mathutils(), Vector_CreatePyObject(), and Vector_CreatePyObject_wrap().