Blender V5.0
sculpt_cloth.hh File Reference
#include "BLI_array.hh"
#include "BLI_index_mask_fwd.hh"
#include "BLI_map.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_vector.hh"
#include "BKE_collision.h"

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::cloth::LengthConstraint
struct  blender::ed::sculpt_paint::cloth::SimulationData

Namespaces

namespace  blender
namespace  blender::bke
namespace  blender::bke::pbvh
namespace  blender::ed
namespace  blender::ed::sculpt_paint
namespace  blender::ed::sculpt_paint::cloth

Enumerations

enum  blender::ed::sculpt_paint::cloth::NodeSimState { blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_NODE_UNINITIALIZED , blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_NODE_INACTIVE , blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_NODE_ACTIVE }
enum  blender::ed::sculpt_paint::cloth::ConstraintType { blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_CONSTRAINT_STRUCTURAL = 0 , blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_CONSTRAINT_DEFORMATION = 1 , blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_CONSTRAINT_SOFTBODY = 2 , blender::ed::sculpt_paint::cloth::SCULPT_CLOTH_CONSTRAINT_PIN = 3 }

Functions

std::unique_ptr< SimulationDatablender::ed::sculpt_paint::cloth::brush_simulation_create (const Depsgraph &depsgraph, Object &ob, const float cloth_mass, const float cloth_damping, const float cloth_softbody_strength, const bool use_collisions, const bool needs_deform_coords)
void blender::ed::sculpt_paint::cloth::sim_activate_nodes (Object &object, SimulationData &cloth_sim, const IndexMask &node_mask)
void blender::ed::sculpt_paint::cloth::brush_store_simulation_state (const Depsgraph &depsgraph, const Object &object, SimulationData &cloth_sim)
void blender::ed::sculpt_paint::cloth::do_simulation_step (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, SimulationData &cloth_sim, const IndexMask &node_mask)
void blender::ed::sculpt_paint::cloth::ensure_nodes_constraints (const Sculpt &sd, Object &object, const IndexMask &node_mask, SimulationData &cloth_sim, const float3 &initial_location, const float radius)
void blender::ed::sculpt_paint::cloth::simulation_limits_draw (const uint gpuattr, const Brush &brush, const float location[3], const float normal[3], const float rds, const float line_width, const float outline_col[3], const float alpha)
void blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw (const uint gpuattr, SculptSession &ss, const float outline_col[3], float outline_alpha)
IndexMask blender::ed::sculpt_paint::cloth::brush_affected_nodes_gather (const Object &object, const Brush &brush, IndexMaskMemory &memory)
void blender::ed::sculpt_paint::cloth::do_cloth_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
bool blender::ed::sculpt_paint::cloth::is_cloth_deform_brush (const Brush &brush)