Blender V5.3
blender::xpbd::GeometryRef Struct Reference

#include <GEO_xpbd_geometry_ref.hh>

Public Member Functions

uint64_t size () const

Public Attributes

MutableSpan< float3 > positions
MutableSpan< float3 > velocities
Span< float3 > prev_positions
Span< float > inv_masses
MutableSpan< math::Quaternion > rotations
MutableSpan< float3 > angular_velocities
Span< math::Quaternion > prev_rotations
Span< float3 > moments_of_inertia
Span< float3 > inv_moments_of_inertia

Detailed Description

References to the data of a geometry that is being simulated.

Definition at line 16 of file GEO_xpbd_geometry_ref.hh.

Member Function Documentation

◆ size()

uint64_t blender::xpbd::GeometryRef::size ( ) const
inline

Definition at line 37 of file GEO_xpbd_geometry_ref.hh.

References blender::MutableSpan< T >::size().

Member Data Documentation

◆ angular_velocities

MutableSpan<float3> blender::xpbd::GeometryRef::angular_velocities

Optional angular_velocity data.

Definition at line 29 of file GEO_xpbd_geometry_ref.hh.

◆ inv_masses

Span<float> blender::xpbd::GeometryRef::inv_masses

Inverse mass of each point.

Definition at line 24 of file GEO_xpbd_geometry_ref.hh.

◆ inv_moments_of_inertia

Span<float3> blender::xpbd::GeometryRef::inv_moments_of_inertia

Inverse of the above.

Definition at line 35 of file GEO_xpbd_geometry_ref.hh.

◆ moments_of_inertia

Span<float3> blender::xpbd::GeometryRef::moments_of_inertia

Optional moment of inertia of each point.

Definition at line 33 of file GEO_xpbd_geometry_ref.hh.

◆ positions

MutableSpan<float3> blender::xpbd::GeometryRef::positions

The position of each point.

Definition at line 18 of file GEO_xpbd_geometry_ref.hh.

◆ prev_positions

Span<float3> blender::xpbd::GeometryRef::prev_positions

Positions before time integration, at the beginning of the current substep.

Definition at line 22 of file GEO_xpbd_geometry_ref.hh.

◆ prev_rotations

Span<math::Quaternion> blender::xpbd::GeometryRef::prev_rotations

Rotations before time integration.

Definition at line 31 of file GEO_xpbd_geometry_ref.hh.

◆ rotations

MutableSpan<math::Quaternion> blender::xpbd::GeometryRef::rotations

Optional rotation data.

Definition at line 27 of file GEO_xpbd_geometry_ref.hh.

◆ velocities

MutableSpan<float3> blender::xpbd::GeometryRef::velocities

The linear velocity of each point.

Definition at line 20 of file GEO_xpbd_geometry_ref.hh.


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