2012-12-28 14:21:30 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2012-12-28 14:21:30 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2012-12-28 14:21:30 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2012-12-28 14:21:30 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 01:50:24 +00:00
|
|
|
* limitations under the License.
|
2012-12-28 14:21:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CURVES_H__
|
|
|
|
#define __CURVES_H__
|
|
|
|
|
2021-10-24 12:19:19 +00:00
|
|
|
#include "util/array.h"
|
|
|
|
#include "util/types.h"
|
2012-12-28 14:21:30 +00:00
|
|
|
|
2021-10-24 12:19:19 +00:00
|
|
|
#include "scene/hair.h"
|
2020-06-10 17:07:07 +00:00
|
|
|
|
2012-12-28 14:21:30 +00:00
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
class DeviceScene;
|
|
|
|
class Progress;
|
|
|
|
class Scene;
|
|
|
|
|
2013-01-15 19:44:41 +00:00
|
|
|
void curvebounds(float *lower, float *upper, float3 *p, int dim);
|
|
|
|
|
2012-12-28 14:21:30 +00:00
|
|
|
class ParticleCurveData {
|
|
|
|
|
|
|
|
public:
|
|
|
|
ParticleCurveData();
|
|
|
|
~ParticleCurveData();
|
|
|
|
|
|
|
|
array<int> psys_firstcurve;
|
|
|
|
array<int> psys_curvenum;
|
2016-05-07 22:09:08 +00:00
|
|
|
array<int> psys_shader;
|
2012-12-28 14:21:30 +00:00
|
|
|
|
2016-05-07 22:09:08 +00:00
|
|
|
array<float> psys_rootradius;
|
|
|
|
array<float> psys_tipradius;
|
|
|
|
array<float> psys_shape;
|
|
|
|
array<bool> psys_closetip;
|
|
|
|
|
|
|
|
array<int> curve_firstkey;
|
|
|
|
array<int> curve_keynum;
|
|
|
|
array<float> curve_length;
|
2019-03-18 17:51:24 +00:00
|
|
|
array<float2> curve_uv;
|
2020-06-30 12:07:49 +00:00
|
|
|
array<float4> curve_vcol;
|
2016-05-07 22:09:08 +00:00
|
|
|
|
|
|
|
array<float3> curvekey_co;
|
|
|
|
array<float> curvekey_time;
|
2012-12-28 14:21:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif /* __CURVES_H__ */
|