2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
11
#ifndef __COLLADAFW_SPLINE_H__
12
#define __COLLADAFW_SPLINE_H__
14
#include "COLLADAFWPrerequisites.h"
15
#include "COLLADAFWGeometry.h"
16
#include "COLLADAFWMeshVertexData.h"
17
#include "COLLADAFWMeshPrimitive.h"
19
#include "COLLADABUUtils.h"
28
class Spline : public Geometry
38
typedef ArrayPrimitiveType<Interpolation> InterpolationArray;
43
* The positions array. Positions can be stored as float or double values.
44
* Positions have always a stride of three (XYZ parameters). We don't need to store
47
MeshVertexData mPositions;
48
MeshVertexData mInTangents;
49
MeshVertexData mOutTangents;
50
InterpolationArray mInterpolations;
55
Spline ( const UniqueId& uniqueId );
61
* The positions array.
62
* Positions can be stored as float or double values.
63
* Positions have always a stride of three (X, Y and Z parameter). So we don't need to
64
* store this information.
66
const MeshVertexData& getPositions () const { return mPositions; }
69
* The positions array.
70
* Positions can be stored as float or double values.
71
* Positions have always a stride of three (X, Y and Z parameter). So we don't need to
72
* store this information.
74
MeshVertexData& getPositions () { return mPositions; }
76
const MeshVertexData& getInTangents () const { return mInTangents; }
77
MeshVertexData& getInTangents () { return mInTangents; }
79
const MeshVertexData& getOutTangents () const { return mOutTangents; }
80
MeshVertexData& getOutTangents () { return mOutTangents; }
82
const InterpolationArray& getInterpolations () const { return mInterpolations; }
83
InterpolationArray& getInterpolations () { return mInterpolations; }
87
#endif // __COLLADA_MESH_H__