|
Blender V4.3
|
Namespaces | |
| namespace | test |
Functions | |
| float | constant_to_detail_size (const float constant_detail, const Object &ob) |
| float | brush_to_detail_size (const float brush_percent, const float brush_radius) |
| float | relative_to_detail_size (const float relative_detail, const float brush_radius, const float pixel_radius, const float pixel_size) |
| float | constant_to_brush_detail (const float constant_detail, const float brush_radius, const Object &ob) |
| float | constant_to_relative_detail (const float constant_detail, const float brush_radius, const float pixel_radius, const float pixel_size, const Object &ob) |
Variables | |
| constexpr float | RELATIVE_SCALE_FACTOR = 0.4f |
| constexpr float | EDGE_LENGTH_MIN_FACTOR = 0.4f |
| float blender::ed::sculpt_paint::dyntopo::detail_size::brush_to_detail_size | ( | float | brush_percent, |
| float | brush_radius ) |
Converts from Sculpt::detail_percent to the #pbvh::Tree max edge length.
Definition at line 915 of file sculpt_detail.cc.
Referenced by blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), and blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST().
| float blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_brush_detail | ( | float | constant_detail, |
| float | brush_radius, | ||
| const Object & | ob ) |
Converts from Sculpt::constant_detail to equivalent Sculpt::detail_percent value.
Corresponds to a change from Constant & Manual Detailing to Brush Detailing.
Definition at line 928 of file sculpt_detail.cc.
References mat4_to_scale().
Referenced by blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_sample_from_surface(), and blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST().
| float blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_detail_size | ( | float | constant_detail, |
| const Object & | ob ) |
Converts from Sculpt::constant_detail to the #pbvh::Tree max edge length.
Definition at line 910 of file sculpt_detail.cc.
References mat4_to_scale().
Referenced by blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST(), and blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST().
| float blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_relative_detail | ( | float | constant_detail, |
| float | brush_radius, | ||
| float | pixel_radius, | ||
| float | pixel_size, | ||
| const Object & | ob ) |
Converts from Sculpt::constant_detail to equivalent Sculpt::detail_size value.
Corresponds to a change from Constant & Manual Detailing to Relative Detailing.
Definition at line 937 of file sculpt_detail.cc.
References mat4_to_scale(), and RELATIVE_SCALE_FACTOR.
Referenced by blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_sample_from_surface(), and blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST().
| float blender::ed::sculpt_paint::dyntopo::detail_size::relative_to_detail_size | ( | float | relative_detail, |
| float | brush_radius, | ||
| float | pixel_radius, | ||
| float | pixel_size ) |
Converts from Sculpt::detail_size to the #pbvh::Tree max edge length.
Definition at line 920 of file sculpt_detail.cc.
References RELATIVE_SCALE_FACTOR.
Referenced by blender::ed::sculpt_paint::dynamic_topology_update(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), and blender::ed::sculpt_paint::dyntopo::detail_size::test::TEST().
|
constexpr |
The relative scale of the minimum and maximum edge length.
Definition at line 60 of file sculpt_dyntopo.hh.
Referenced by blender::ed::sculpt_paint::dynamic_topology_update(), and blender::ed::sculpt_paint::dyntopo::sculpt_detail_flood_fill_exec().
|
constexpr |
Scaling factor to match the displayed size to the actual sculpted size
Definition at line 58 of file sculpt_dyntopo.hh.
Referenced by constant_to_relative_detail(), and relative_to_detail_size().