Blender V5.3
blender::nodes::node_geo_xpbd_solver_cc::GeometryData Struct Reference

Public Member Functions

 GeometryData (const bke::MutableAttributeAccessor attributes)

Public Attributes

bke::MutableAttributeAccessor attributes
AttrDomain domain
int size
bool uses_rotation = false
bke::CurvesGeometry * curves = nullptr
IndexRange chunks
Array< int > point_to_chunk
bke::SpanAttributeWriter< float3 > position_attr
bke::SpanAttributeWriter< float3 > velocity_attr
bke::SpanAttributeWriter< math::Quaternion > rotation_attr
bke::SpanAttributeWriter< float3 > angular_velocity_attr
Array< float3 > temp_positions
Array< math::Quaternion > temp_rotations
VArray< float > masses
VArraySpan< float3 > moments_of_inertia
VArraySpan< float3 > external_force_attr
VArraySpan< float3 > external_torque_attr
CacheMutex load_friction_mutex
VArray< float > static_frictions
VArray< float > dynamic_frictions
CacheMutex load_radius_mutex
VArray< float > radii
VArray< float > prev_radii
Array< float > inv_masses
Array< float3 > inv_moments_of_inertia
Array< bool > is_hard_pinned
Vector< DampingConstraintUsage > damping_constraints
Vector< PinPositionConstraintUsage > pin_position_constraints
Vector< PinRotationConstraintUsage > pin_rotation_constraints
Vector< EdgeLengthConstraintUsage > edge_length_constraints
Vector< CrossEdgeLengthConstraintUsage > cross_edge_length_constraints
Vector< MeshColliderUsage > mesh_colliders
Vector< RodStretchShearConstraintUsage > rod_stretch_shear_constraints
Vector< RodBendTwistConstraintUsage > rod_bend_twist_constraints
Vector< ConstraintWithColoring > static_constraints

Detailed Description

Definition at line 332 of file node_geo_xpbd_solver.cc.

Constructor & Destructor Documentation

◆ GeometryData()

blender::nodes::node_geo_xpbd_solver_cc::GeometryData::GeometryData ( const bke::MutableAttributeAccessor attributes)
inline

Definition at line 390 of file node_geo_xpbd_solver.cc.

References attributes.

Member Data Documentation

◆ angular_velocity_attr

bke::SpanAttributeWriter<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::angular_velocity_attr

Definition at line 350 of file node_geo_xpbd_solver.cc.

◆ attributes

bke::MutableAttributeAccessor blender::nodes::node_geo_xpbd_solver_cc::GeometryData::attributes

Definition at line 333 of file node_geo_xpbd_solver.cc.

Referenced by GeometryData().

◆ chunks

IndexRange blender::nodes::node_geo_xpbd_solver_cc::GeometryData::chunks

Definition at line 340 of file node_geo_xpbd_solver.cc.

◆ cross_edge_length_constraints

Vector<CrossEdgeLengthConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::cross_edge_length_constraints

Definition at line 383 of file node_geo_xpbd_solver.cc.

◆ curves

bke::CurvesGeometry* blender::nodes::node_geo_xpbd_solver_cc::GeometryData::curves = nullptr

Easy access to curve data for curves and grease pencil layers.

Definition at line 338 of file node_geo_xpbd_solver.cc.

◆ damping_constraints

Vector<DampingConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::damping_constraints

Definition at line 379 of file node_geo_xpbd_solver.cc.

◆ domain

AttrDomain blender::nodes::node_geo_xpbd_solver_cc::GeometryData::domain

Definition at line 334 of file node_geo_xpbd_solver.cc.

◆ dynamic_frictions

VArray<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::dynamic_frictions

Definition at line 367 of file node_geo_xpbd_solver.cc.

◆ edge_length_constraints

Vector<EdgeLengthConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::edge_length_constraints

Definition at line 382 of file node_geo_xpbd_solver.cc.

◆ external_force_attr

VArraySpan<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::external_force_attr

Definition at line 362 of file node_geo_xpbd_solver.cc.

◆ external_torque_attr

VArraySpan<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::external_torque_attr

Definition at line 363 of file node_geo_xpbd_solver.cc.

◆ inv_masses

Array<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::inv_masses

Definition at line 374 of file node_geo_xpbd_solver.cc.

◆ inv_moments_of_inertia

Array<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::inv_moments_of_inertia

Definition at line 375 of file node_geo_xpbd_solver.cc.

◆ is_hard_pinned

Array<bool> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::is_hard_pinned

Definition at line 377 of file node_geo_xpbd_solver.cc.

◆ load_friction_mutex

CacheMutex blender::nodes::node_geo_xpbd_solver_cc::GeometryData::load_friction_mutex

Definition at line 365 of file node_geo_xpbd_solver.cc.

◆ load_radius_mutex

CacheMutex blender::nodes::node_geo_xpbd_solver_cc::GeometryData::load_radius_mutex

Definition at line 369 of file node_geo_xpbd_solver.cc.

◆ masses

VArray<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::masses

Definition at line 359 of file node_geo_xpbd_solver.cc.

◆ mesh_colliders

Vector<MeshColliderUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::mesh_colliders

Definition at line 384 of file node_geo_xpbd_solver.cc.

◆ moments_of_inertia

VArraySpan<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::moments_of_inertia

Definition at line 360 of file node_geo_xpbd_solver.cc.

◆ pin_position_constraints

Vector<PinPositionConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::pin_position_constraints

Definition at line 380 of file node_geo_xpbd_solver.cc.

◆ pin_rotation_constraints

Vector<PinRotationConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::pin_rotation_constraints

Definition at line 381 of file node_geo_xpbd_solver.cc.

◆ point_to_chunk

Array<int> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::point_to_chunk

Allows fast lookup of which chunk a point belongs to. This allows e.g. grouping collisions by chunk efficiently.

Definition at line 345 of file node_geo_xpbd_solver.cc.

◆ position_attr

bke::SpanAttributeWriter<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::position_attr

Definition at line 347 of file node_geo_xpbd_solver.cc.

◆ prev_radii

VArray<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::prev_radii

Actually the same as radii for now.

Definition at line 372 of file node_geo_xpbd_solver.cc.

◆ radii

VArray<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::radii

Definition at line 370 of file node_geo_xpbd_solver.cc.

◆ rod_bend_twist_constraints

Vector<RodBendTwistConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::rod_bend_twist_constraints

Definition at line 386 of file node_geo_xpbd_solver.cc.

◆ rod_stretch_shear_constraints

Vector<RodStretchShearConstraintUsage> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::rod_stretch_shear_constraints

Definition at line 385 of file node_geo_xpbd_solver.cc.

◆ rotation_attr

bke::SpanAttributeWriter<math::Quaternion> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::rotation_attr

Definition at line 349 of file node_geo_xpbd_solver.cc.

◆ size

int blender::nodes::node_geo_xpbd_solver_cc::GeometryData::size

Definition at line 335 of file node_geo_xpbd_solver.cc.

◆ static_constraints

Vector<ConstraintWithColoring> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::static_constraints

Definition at line 388 of file node_geo_xpbd_solver.cc.

◆ static_frictions

VArray<float> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::static_frictions

Definition at line 366 of file node_geo_xpbd_solver.cc.

◆ temp_positions

Array<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::temp_positions

Temporary arrays for positions and rotations. This is necessary because xpbd requires the old and new positions in the end to compute the new velocities.

Definition at line 356 of file node_geo_xpbd_solver.cc.

◆ temp_rotations

Array<math::Quaternion> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::temp_rotations

Definition at line 357 of file node_geo_xpbd_solver.cc.

◆ uses_rotation

bool blender::nodes::node_geo_xpbd_solver_cc::GeometryData::uses_rotation = false

Definition at line 336 of file node_geo_xpbd_solver.cc.

◆ velocity_attr

bke::SpanAttributeWriter<float3> blender::nodes::node_geo_xpbd_solver_cc::GeometryData::velocity_attr

Definition at line 348 of file node_geo_xpbd_solver.cc.


The documentation for this struct was generated from the following file: