Go to the documentation of this file.
133 #ifdef OPC_USE_CALLBACKS
139 #ifdef OPC_USE_STRIDE
141 mVertexStride (sizeof(Point)),
167 #ifdef OPC_USE_CALLBACKS
168 if(!mObjCallback)
return false;
206 #ifdef OPC_USE_CALLBACKS
214 bool MeshInterface::SetCallback(RequestCallback callback,
void* user_data)
217 if(!callback)
return SetIceError(
"MeshInterface::SetCallback: callback pointer is null");
219 mObjCallback = callback;
220 mUserData = user_data;
234 if(!tris || !verts)
return SetIceError(
"MeshInterface::SetPointers: pointer is null",
null);
240 #ifdef OPC_USE_STRIDE
248 bool MeshInterface::SetStrides(
udword tri_stride,
udword vertex_stride)
252 if(vertex_stride<
sizeof(Point))
return SetIceError(
"MeshInterface::SetStrides: invalid vertex stride",
null);
254 mTriStride = tri_stride;
255 mVertexStride = vertex_stride;
272 if(!nb_indices || !permutation)
return false;
273 if(nb_indices!=
mNbTris)
return false;
275 #ifdef OPC_USE_CALLBACKS
282 #ifdef OPC_USE_STRIDE
283 udword Stride = mTriStride;
297 *T = Tmp[permutation[
i]];
inline_ void GetTriangle(VertexPointers &vp, udword index) const
bool RemapClient(udword nb_indices, const udword *permutation) const
unsigned int udword
sizeof(udword) must be 4
udword mNbVerts
Number of vertices in the input model.
unsigned char ubyte
sizeof(ubyte) must be 1
const Point * mVerts
Array of vertices.
udword CheckTopology() const
bool SetPointers(const IndexedTriangle *tris, const Point *verts)
#define DELETEARRAY(x)
Deletes an array.
#define SetIceError(a, b)
const IndexedTriangle * mTris
Array of indexed triangles.
static Point VertexCache[3]
udword mNbTris
Number of triangles in the input model.
#define null
our own NULL pointer
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03