|
Blender V5.0
|
#include <sculpt_intern.hh>
Public Member Functions | |
| PositionDeformData (const Depsgraph &depsgraph, Object &object_orig) | |
| void | deform (MutableSpan< float3 > translations, Span< int > verts) const |
Public Attributes | |
| Span< float3 > | eval |
This class represents an API to deform original positions based on translations created from evaluated positions. It should be constructed once outside of a parallel context.
Definition at line 82 of file sculpt_intern.hh.
| blender::ed::sculpt_paint::PositionDeformData::PositionDeformData | ( | const Depsgraph & | depsgraph, |
| Object & | object_orig ) |
Definition at line 7444 of file sculpt.cc.
References blender::MutableSpan< T >::data(), Object::data, SculptSession::deform_imats, depsgraph, eval, blender::ed::sculpt_paint::ShapeKeyData::from_object(), PositionDeformData(), Object::sculpt, blender::bke::pbvh::vert_positions_eval(), and blender::bke::pbvh::vert_positions_eval_for_write().
Referenced by PositionDeformData().
| void blender::ed::sculpt_paint::PositionDeformData::deform | ( | MutableSpan< float3 > | translations, |
| Span< int > | verts ) const |
Definition at line 7462 of file sculpt.cc.
References blender::ed::sculpt_paint::apply_crazyspace_to_translations(), blender::ed::sculpt_paint::apply_translations(), data, deform(), and verts.
Referenced by deform().
Positions from after procedural deformation from modifiers, used to build the pbvh::Tree. Translations are built for these values, then applied to the original positions. When there are no deforming modifiers, this will reference the same array as #orig.
Definition at line 89 of file sculpt_intern.hh.
Referenced by PositionDeformData().