11 #ifndef CAL_CORESUBMESH_H
12 #define CAL_CORESUBMESH_H
15 #include "cal3d/global.h"
16 #include "cal3d/vector.h"
51 std::vector<Influence> vectorInfluence;
53 int faceCollapseCount;
65 float springCoefficient;
73 int getCoreMaterialThreadId();
77 std::vector<Face>& getVectorFace();
78 std::vector<PhysicalProperty>& getVectorPhysicalProperty();
79 std::vector<Spring>& getVectorSpring();
80 std::vector<std::vector<TangentSpace> >& getVectorVectorTangentSpace();
81 std::vector<std::vector<TextureCoordinate> >& getVectorVectorTextureCoordinate();
82 std::vector<Vertex>& getVectorVertex();
84 bool isTangentsEnabled(
int mapId);
85 bool enableTangents(
int mapId,
bool enabled);
86 bool reserve(
int vertexCount,
int textureCoordinateCount,
int faceCount,
int springCount);
87 void setCoreMaterialThreadId(
int coreMaterialThreadId);
88 bool setFace(
int faceId,
const Face& face);
89 void setLodCount(
int lodCount);
90 bool setPhysicalProperty(
int vertexId,
const PhysicalProperty& physicalProperty);
91 bool setSpring(
int springId,
const Spring& spring);
92 bool setTangentSpace(
int vertexId,
int textureCoordinateId,
const CalVector& tangent,
float crossFactor);
93 bool setTextureCoordinate(
int vertexId,
int textureCoordinateId,
const TextureCoordinate& textureCoordinate);
94 bool setVertex(
int vertexId,
const Vertex& vertex);
97 int getCoreSubMorphTargetCount();
98 std::vector<CalCoreSubMorphTarget *>& getVectorCoreSubMorphTarget();
99 void scale(
float factor);
102 void UpdateTangentVector(
int v0,
int v1,
int v2,
int channel);
105 std::vector<Vertex> m_vectorVertex;
106 std::vector<bool> m_vectorTangentsEnabled;
107 std::vector<std::vector<TangentSpace> > m_vectorvectorTangentSpace;
108 std::vector<std::vector<TextureCoordinate> > m_vectorvectorTextureCoordinate;
109 std::vector<PhysicalProperty> m_vectorPhysicalProperty;
110 std::vector<Face> m_vectorFace;
111 std::vector<Spring> m_vectorSpring;
112 std::vector<CalCoreSubMorphTarget *> m_vectorCoreSubMorphTarget;
113 int m_coreMaterialThreadId;
The core submesh Spring.
Definition: coresubmesh.h:62
Definition: coresubmesh.h:25
Definition: coresubmesh.h:42
Definition: coresubmesh.h:56
Definition: coresubmesh.h:47
Definition: coresubmorphtarget.h:19
The vector class.
Definition: vector.h:36
Definition: coresubmesh.h:22
Definition: coresubmesh.h:36
Definition: coresubmesh.h:30