|
Blender
V2.93
|
#include "BLI_sys_types.h"Go to the source code of this file.
Typedefs | |
| typedef void | ParamHandle |
| typedef intptr_t | ParamKey |
| typedef enum ParamBool | ParamBool |
Enumerations | |
| enum | ParamBool { PARAM_TRUE = 1 , PARAM_FALSE = 0 } |
| typedef void ParamHandle |
Definition at line 29 of file uvedit_parametrizer.h.
Definition at line 30 of file uvedit_parametrizer.h.
| enum ParamBool |
| Enumerator | |
|---|---|
| PARAM_TRUE | |
| PARAM_FALSE | |
Definition at line 31 of file uvedit_parametrizer.h.
| void param_aspect_ratio | ( | ParamHandle * | handle, |
| float | aspx, | ||
| float | aspy | ||
| ) |
Definition at line 4400 of file uvedit_parametrizer.c.
References PHandle::aspx, PHandle::aspy, and PHandle::do_aspect.
Referenced by construct_param_handle(), construct_param_handle_multi(), and construct_param_handle_subsurfed().
| void param_average | ( | ParamHandle * | handle, |
| bool | ignore_pinned | ||
| ) |
Definition at line 4882 of file uvedit_parametrizer.c.
References PChart::PChartUnion::PChartPack::area, PHandle::charts, fabsf, PChart::faces, PChart::flag, PHandle::ncharts, PFace::nextlink, p_chart_uv_bbox(), p_chart_uv_scale(), p_chart_uv_translate(), p_face_area(), p_face_uv_area_signed(), PChart::PChartUnion::pack, PCHART_HAS_PINS, PChart::PChartUnion::PChartPack::rescale, sqrtf, and PChart::u.
Referenced by average_islands_scale_exec(), and uvedit_unwrap().
| ParamHandle* param_construct_begin | ( | void | ) |
Definition at line 4381 of file uvedit_parametrizer.c.
References PHandle::arena, PHandle::aspx, PHandle::aspy, BLI_heap_new_ex(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_POLYFILL_ALLOC_NGON_RESERVE, PHandle::construction_chart, PHandle::do_aspect, PChart::edges, PChart::faces, PHandle::hash_edges, PHandle::hash_faces, PHandle::hash_verts, MEM_callocN, MEM_SIZE_OPTIMAL, p_chart_new(), PHANDLE_STATE_ALLOCATED, phash_new(), PHandle::polyfill_arena, PHandle::polyfill_heap, PHandle::state, and PChart::verts.
Referenced by construct_param_handle(), construct_param_handle_multi(), and construct_param_handle_subsurfed().
| void param_construct_end | ( | ParamHandle * | handle, |
| ParamBool | fill, | ||
| ParamBool | topology_from_uvs, | ||
| int * | count_fail | ||
| ) |
Definition at line 4549 of file uvedit_parametrizer.c.
References PHandle::charts, PHandle::construction_chart, PHandle::hash_edges, PHandle::hash_faces, PHandle::hash_verts, PHandle::ncharts, NULL, p_chart_boundaries(), p_chart_delete(), p_chart_fill_boundaries(), p_connect_pairs(), p_split_charts(), p_vert_load_pin_select_uvs(), param_assert, PHANDLE_STATE_ALLOCATED, PHANDLE_STATE_CONSTRUCTED, phash_delete(), PHandle::state, v, and PChart::verts.
Referenced by construct_param_handle(), construct_param_handle_multi(), and construct_param_handle_subsurfed().
| void param_delete | ( | ParamHandle * | handle | ) |
Definition at line 4409 of file uvedit_parametrizer.c.
References PHandle::arena, BLI_heap_free(), BLI_memarena_free(), PHandle::charts, PHandle::construction_chart, ELEM, PHandle::hash_edges, PHandle::hash_faces, PHandle::hash_verts, MEM_freeN, PHandle::ncharts, NULL, p_chart_delete(), param_assert, PHANDLE_STATE_ALLOCATED, PHANDLE_STATE_CONSTRUCTED, phash_delete(), PHandle::polyfill_arena, PHandle::polyfill_heap, and PHandle::state.
Referenced by average_islands_scale_exec(), ED_uvedit_live_unwrap_end(), minimize_stretch_exit(), uvedit_pack_islands(), uvedit_pack_islands_multi(), and uvedit_unwrap().
| void param_edge_set_seam | ( | ParamHandle * | handle, |
| ParamKey * | vkeys | ||
| ) |
Definition at line 4536 of file uvedit_parametrizer.c.
References e, p_edge_lookup(), param_assert, PEDGE_SEAM, PHANDLE_STATE_ALLOCATED, and PHandle::state.
Referenced by construct_param_handle(), construct_param_handle_multi(), and construct_param_handle_subsurfed().
| void param_face_add | ( | ParamHandle * | handle, |
| ParamKey | key, | ||
| int | nverts, | ||
| ParamKey * | vkeys, | ||
| float * | co[4], | ||
| float * | uv[4], | ||
| ParamBool * | pin, | ||
| ParamBool * | select | ||
| ) |
Definition at line 4500 of file uvedit_parametrizer.c.
References ELEM, PHandle::hash_faces, NULL, p_add_ngon(), p_face_add_construct(), p_face_exists(), p_quad_split_direction(), param_assert, PHANDLE_STATE_ALLOCATED, phash_lookup(), select(), and PHandle::state.
Referenced by construct_param_handle_face_add(), construct_param_handle_subsurfed(), and p_add_ngon().
| void param_flush | ( | ParamHandle * | handle | ) |
Definition at line 4961 of file uvedit_parametrizer.c.
References PHandle::blend, PHandle::charts, PChart::PChartUnion::PChartLscm::context, PChart::PChartUnion::lscm, PHandle::ncharts, p_flush_uvs(), p_flush_uvs_blend(), PHANDLE_STATE_LSCM, PHandle::state, and PChart::u.
Referenced by average_islands_scale_exec(), ED_uvedit_live_unwrap_re_solve(), minimize_stretch_exit(), minimize_stretch_iteration(), uvedit_pack_islands(), uvedit_pack_islands_multi(), and uvedit_unwrap().
| void param_flush_restore | ( | ParamHandle * | handle | ) |
Definition at line 4983 of file uvedit_parametrizer.c.
References PHandle::charts, PChart::faces, PHandle::ncharts, PFace::nextlink, and p_face_restore_uvs().
Referenced by ED_uvedit_live_unwrap_end(), and minimize_stretch_exit().
| void param_lscm_begin | ( | ParamHandle * | handle, |
| ParamBool | live, | ||
| ParamBool | abf | ||
| ) |
Definition at line 4603 of file uvedit_parametrizer.c.
References PHandle::charts, PChart::faces, PHandle::ncharts, PFace::nextlink, p_chart_lscm_begin(), p_face_backup_uvs(), param_assert, PHANDLE_STATE_CONSTRUCTED, PHANDLE_STATE_LSCM, and PHandle::state.
Referenced by ED_uvedit_live_unwrap_begin(), and uvedit_unwrap().
| void param_lscm_end | ( | ParamHandle * | handle | ) |
Definition at line 4660 of file uvedit_parametrizer.c.
References PHandle::charts, PHandle::ncharts, p_chart_lscm_end(), param_assert, PHANDLE_STATE_CONSTRUCTED, PHANDLE_STATE_LSCM, and PHandle::state.
Referenced by ED_uvedit_live_unwrap_end(), and uvedit_unwrap().
| void param_lscm_solve | ( | ParamHandle * | handle, |
| int * | count_changed, | ||
| int * | count_failed | ||
| ) |
Definition at line 4620 of file uvedit_parametrizer.c.
References PHandle::charts, PChart::PChartUnion::PChartLscm::context, PChart::flag, PChart::PChartUnion::lscm, PHandle::ncharts, NULL, p_chart_lscm_end(), p_chart_lscm_solve(), p_chart_lscm_transform_single_pin(), p_chart_rotate_fit_aabb(), p_chart_rotate_minimum_area(), param_assert, PCHART_HAS_PINS, PHANDLE_STATE_LSCM, result, PChart::PChartUnion::PChartLscm::single_pin, PHandle::state, and PChart::u.
Referenced by ED_uvedit_live_unwrap_re_solve(), and uvedit_unwrap().
| void param_pack | ( | ParamHandle * | handle, |
| float | margin, | ||
| bool | do_rotate, | ||
| bool | ignore_pinned | ||
| ) |
Definition at line 4778 of file uvedit_parametrizer.c.
References blender::compositor::area(), PHandle::aspx, PHandle::aspy, BLI_box_pack_2d(), PHandle::charts, double(), PChart::flag, float(), BoxPack::h, BoxPack::index, MEM_freeN, MEM_mallocN, PHandle::ncharts, p_chart_uv_bbox(), p_chart_uv_scale(), p_chart_uv_translate(), PChart::PChartUnion::pack, param_pack_rotate(), param_scale(), PCHART_HAS_PINS, PChart::PChartUnion::PChartPack::size, sqrtf, PChart::u, BoxPack::w, BoxPack::x, and BoxPack::y.
Referenced by uvedit_pack_islands(), and uvedit_pack_islands_multi().
| void param_scale | ( | ParamHandle * | handle, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 4949 of file uvedit_parametrizer.c.
References PHandle::charts, PHandle::ncharts, p_chart_uv_scale_xy(), x, and y.
Referenced by param_pack().
| void param_smooth_area | ( | ParamHandle * | handle | ) |
Definition at line 4740 of file uvedit_parametrizer.c.
References PHandle::charts, PHandle::ncharts, p_smooth(), param_assert, PHANDLE_STATE_CONSTRUCTED, PVERT_PIN, PHandle::state, v, and PChart::verts.
| void param_stretch_begin | ( | ParamHandle * | handle | ) |
Definition at line 4677 of file uvedit_parametrizer.c.
References PFace::PFaceUnion::area3d, PHandle::blend, BLI_rng_new(), PHandle::charts, PChart::faces, PHandle::ncharts, PFace::nextlink, p_face_area(), p_face_backup_uvs(), p_stretch_pin_boundary(), param_assert, PHANDLE_STATE_CONSTRUCTED, PHANDLE_STATE_STRETCH, PVERT_PIN, PHandle::rng, PHandle::state, PFace::u, v, and PChart::verts.
Referenced by minimize_stretch_init().
| void param_stretch_blend | ( | ParamHandle * | handle, |
| float | blend | ||
| ) |
Definition at line 4707 of file uvedit_parametrizer.c.
References PHandle::blend, blend(), param_assert, PHANDLE_STATE_STRETCH, and PHandle::state.
Referenced by minimize_stretch_init(), and minimize_stretch_iteration().
| void param_stretch_end | ( | ParamHandle * | handle | ) |
Definition at line 4729 of file uvedit_parametrizer.c.
References BLI_rng_free(), NULL, param_assert, PHANDLE_STATE_CONSTRUCTED, PHANDLE_STATE_STRETCH, PHandle::rng, and PHandle::state.
Referenced by minimize_stretch_exit().
| void param_stretch_iter | ( | ParamHandle * | handle | ) |
Definition at line 4715 of file uvedit_parametrizer.c.
References PHandle::charts, PHandle::ncharts, p_chart_stretch_minimize(), param_assert, PHANDLE_STATE_STRETCH, PHandle::rng, and PHandle::state.
Referenced by minimize_stretch_iteration().