|
Blender
V2.93
|
#include "render/attribute.h"#include "render/camera.h"#include "render/curves.h"#include "render/hair.h"#include "render/object.h"#include "render/scene.h"#include "blender/blender_sync.h"#include "blender/blender_util.h"#include "util/util_foreach.h"#include "util/util_hash.h"#include "util/util_logging.h"Go to the source code of this file.
Functions | |
| static float | shaperadius (float shape, float root, float tip, float time) |
| static bool | ObtainCacheParticleData (Hair *hair, BL::Mesh *b_mesh, BL::Object *b_ob, ParticleCurveData *CData, bool background) |
| static bool | ObtainCacheParticleUV (Hair *hair, BL::Mesh *b_mesh, BL::Object *b_ob, ParticleCurveData *CData, bool background, int uv_num) |
| static bool | ObtainCacheParticleVcol (Hair *hair, BL::Mesh *b_mesh, BL::Object *b_ob, ParticleCurveData *CData, bool background, int vcol_num) |
| static void | ExportCurveSegments (Scene *scene, Hair *hair, ParticleCurveData *CData) |
| static float4 | CurveSegmentMotionCV (ParticleCurveData *CData, int sys, int curve, int curvekey) |
| static float4 | LerpCurveSegmentMotionCV (ParticleCurveData *CData, int sys, int curve, float step) |
| static void | export_hair_motion_validate_attribute (Hair *hair, int motion_step, int num_motion_keys, bool have_motion) |
| static void | ExportCurveSegmentsMotion (Hair *hair, ParticleCurveData *CData, int motion_step) |
|
static |
Definition at line 356 of file blender_curves.cpp.
References curve, ParticleCurveData::curve_firstkey, ParticleCurveData::curve_keynum, ParticleCurveData::curve_length, ParticleCurveData::curvekey_co, ParticleCurveData::curvekey_time, float3_to_float4(), ParticleCurveData::psys_closetip, ParticleCurveData::psys_rootradius, ParticleCurveData::psys_shape, ParticleCurveData::psys_tipradius, shaperadius(), and time.
Referenced by ExportCurveSegmentsMotion(), and LerpCurveSegmentMotionCV().
|
static |
Definition at line 396 of file blender_curves.cpp.
References ATTR_STD_MOTION_VERTEX_POSITION, Geometry::attributes, Attribute::data_float4(), AttributeSet::find(), float3_to_float4(), AttributeSet::remove(), and VLOG.
Referenced by ExportCurveSegmentsMotion().
|
static |
Definition at line 277 of file blender_curves.cpp.
References Attribute::add(), AttributeSet::add(), Hair::add_curve(), Hair::add_curve_key(), ATTR_STD_CURVE_INTERCEPT, ATTR_STD_CURVE_RANDOM, Geometry::attributes, Hair::clear(), curve, ParticleCurveData::curve_firstkey, ParticleCurveData::curve_keynum, ParticleCurveData::curve_length, ParticleCurveData::curvekey_co, ParticleCurveData::curvekey_time, hash_uint2_to_float(), Node::name, Geometry::need_attribute(), NULL, Hair::num_curves(), ParticleCurveData::psys_closetip, ParticleCurveData::psys_curvenum, ParticleCurveData::psys_firstcurve, ParticleCurveData::psys_rootradius, ParticleCurveData::psys_shader, ParticleCurveData::psys_shape, ParticleCurveData::psys_tipradius, Hair::reserve_curves(), scene, shaperadius(), array< T, alignment >::size(), time, and VLOG.
|
static |
Definition at line 430 of file blender_curves.cpp.
References AttributeSet::add(), ATTR_STD_MOTION_VERTEX_POSITION, Geometry::attributes, curve, ParticleCurveData::curve_firstkey, ParticleCurveData::curve_keynum, CurveSegmentMotionCV(), Attribute::data_float4(), export_hair_motion_validate_attribute(), AttributeSet::find(), float3_to_float4(), len_squared(), LerpCurveSegmentMotionCV(), Node::name, ParticleCurveData::psys_curvenum, ParticleCurveData::psys_firstcurve, array< T, alignment >::size(), and VLOG.
|
static |
Definition at line 375 of file blender_curves.cpp.
References curve, ParticleCurveData::curve_firstkey, ParticleCurveData::curve_keynum, CurveSegmentMotionCV(), floorf, and lerp().
Referenced by ExportCurveSegmentsMotion().
|
static |
Definition at line 58 of file blender_curves.cpp.
References clamp(), ParticleCurveData::curve_firstkey, ParticleCurveData::curve_keynum, ParticleCurveData::curve_length, ParticleCurveData::curvekey_co, ParticleCurveData::curvekey_time, float(), get_transform(), len, ParticleCurveData::psys_closetip, ParticleCurveData::psys_curvenum, ParticleCurveData::psys_firstcurve, ParticleCurveData::psys_rootradius, ParticleCurveData::psys_shader, ParticleCurveData::psys_shape, ParticleCurveData::psys_tipradius, array< T, alignment >::push_back_slow(), array< T, alignment >::reserve(), shader(), array< T, alignment >::size(), transform_point(), transform_quick_inverse(), float3::x, and zero_float3().
|
static |
Definition at line 153 of file blender_curves.cpp.
References array< T, alignment >::clear(), ParticleCurveData::curve_uv, float(), l, array< T, alignment >::push_back_slow(), array< T, alignment >::reserve(), array< T, alignment >::size(), float2::x, and zero_float2().
|
static |
Definition at line 215 of file blender_curves.cpp.
References array< T, alignment >::clear(), ParticleCurveData::curve_vcol, float(), l, make_float4, array< T, alignment >::push_back_slow(), array< T, alignment >::reserve(), and array< T, alignment >::size().
Definition at line 41 of file blender_curves.cpp.
Referenced by CurveSegmentMotionCV(), and ExportCurveSegments().