Blender V5.0
plane.cc File Reference

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::brushes::plane_cc::LocalData

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::sculpt_paint
namespace  blender::ed::sculpt_paint::brushes
namespace  blender::ed::sculpt_paint::brushes::plane_cc
namespace  blender::ed::sculpt_paint::brushes::plane

Functions

static void blender::ed::sculpt_paint::brushes::plane_cc::calc_local_positions (const float4x4 &mat, const Span< int > verts, const Span< float3 > positions, const MutableSpan< float3 > local_positions)
static void blender::ed::sculpt_paint::brushes::plane_cc::calc_local_distances (const float height, const float depth, const MutableSpan< float3 > local_positions, const MutableSpan< float > distances)
static void blender::ed::sculpt_paint::brushes::plane_cc::scale_factors_by_height_and_depth (const float height, const float depth, const MutableSpan< float3 > local_positions, const MutableSpan< float > factors)
static void blender::ed::sculpt_paint::brushes::plane_cc::calc_translations (const float3 &plane_normal, const float radius, const float strength, const MutableSpan< float3 > local_positions, const MutableSpan< float > factors, const MutableSpan< float3 > r_translations)
static void blender::ed::sculpt_paint::brushes::plane_cc::calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const PositionDeformData &position_data)
static void blender::ed::sculpt_paint::brushes::plane_cc::calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, bke::pbvh::GridsNode &node, LocalData &tls)
static void blender::ed::sculpt_paint::brushes::plane_cc::calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float4x4 &mat, const float3 &plane_normal, const float strength, const float height, const float depth, bke::pbvh::BMeshNode &node, LocalData &tls)
void blender::ed::sculpt_paint::brushes::do_plane_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask, const float3 &plane_normal, const float3 &plane_center)
CursorSampleResult blender::ed::sculpt_paint::brushes::plane::calc_node_mask (const Depsgraph &depsgraph, Object &ob, const Brush &brush, IndexMaskMemory &memory)

Detailed Description

The Plane brush translates the vertices towards the brush plane. The vertices are displaced along the direction parallel to the normal of the plane.

The z-distances of the vertices are affected by two parameters:

  • Height: Affects the z-distances of the vertices above the plane.
  • Depth: Affects the z-distances of the vertices below the plane.

Invert Modes:

  • Invert Displacement: Reverses the default behavior, displacing vertices away from the plane.
  • Swap Height and Depth: Exchanges the roles of Height and Depth.

Definition in file plane.cc.