Go to the documentation of this file.
20 #ifndef __OPC_MESHINTERFACE_H__
21 #define __OPC_MESHINTERFACE_H__
34 Point Normal = (p2 - p1)^(p0 - p1);
37 return (Normal | (source - p0)) >= 0.0
f;
41 #ifdef OPC_USE_CALLBACKS
65 #ifdef OPC_USE_CALLBACKS
75 bool SetCallback(RequestCallback callback,
void* user_data);
77 inline_ void* GetUserData()
const {
return mUserData; }
78 inline_ RequestCallback GetCallback()
const {
return mObjCallback; }
107 inline_ udword GetVertexStride()
const {
return mVertexStride; }
120 #ifdef OPC_USE_CALLBACKS
121 (mObjCallback)(index, vp, mUserData);
123 #ifdef OPC_USE_STRIDE
132 for (
int i = 0;
i < 3;
i++){
133 const double* v = (
const double*)(((
ubyte*)mVerts) + T->
mVRef[
i] * mVertexStride);
135 VertexCache[
i].
x = (float)v[0];
136 VertexCache[
i].y = (float)v[1];
137 VertexCache[
i].z = (float)v[2];
157 bool RemapClient(
udword nb_indices,
const udword* permutation)
const;
165 bool IsValid()
const;
174 udword CheckTopology()
const;
180 #ifdef OPC_USE_CALLBACKS
183 RequestCallback mObjCallback;
188 #ifdef OPC_USE_STRIDE
199 #endif //__OPC_MESHINTERFACE_H__
inline_ void SetNbTriangles(udword nb)
udword mVRef[3]
Vertex-references.
inline_ void SetNbVertices(udword nb)
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 inline_ Point * GetVerts() const
inline_ udword GetNbVertices() const
const Point * mVerts
Array of vertices.
const inline_ IndexedTriangle * GetTris() const
bool Single
Use single or double precision vertices.
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
bool BackfaceCulling(const Point &source)
const IndexedTriangle * mTris
Array of indexed triangles.
udword mNbTris
Number of triangles in the input model.
inline_ udword GetNbTriangles() const
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