Blender V4.3
blender::ed::sculpt_paint::dyntopo::detail_size Namespace Reference

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
 

Function Documentation

◆ brush_to_detail_size()

float blender::ed::sculpt_paint::dyntopo::detail_size::brush_to_detail_size ( float brush_percent,
float brush_radius )

◆ constant_to_brush_detail()

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().

◆ constant_to_detail_size()

float blender::ed::sculpt_paint::dyntopo::detail_size::constant_to_detail_size ( float constant_detail,
const Object & ob )

◆ constant_to_relative_detail()

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().

◆ relative_to_detail_size()

float blender::ed::sculpt_paint::dyntopo::detail_size::relative_to_detail_size ( float relative_detail,
float brush_radius,
float pixel_radius,
float pixel_size )

Variable Documentation

◆ EDGE_LENGTH_MIN_FACTOR

float blender::ed::sculpt_paint::dyntopo::detail_size::EDGE_LENGTH_MIN_FACTOR = 0.4f
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().

◆ RELATIVE_SCALE_FACTOR

float blender::ed::sculpt_paint::dyntopo::detail_size::RELATIVE_SCALE_FACTOR = 0.4f
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().