24 namespace opensubdiv {
49 assert(vertex_index >= 0);
59 assert(vertex_index >= 0);
92 assert(edge_index >= 0);
110 assert(edge_index >= 0);
113 if (edge_index >=
edges_.size()) {
126 assert(edge_index >= 0);
129 if (edge_index >=
edges_.size()) {
134 return edge.v1 == expected_v1 && edge.v2 == expected_v2;
139 assert(edge_index >= 0);
142 if (sharpness < 1e-6f) {
153 assert(edge_index >= 0);
166 if (
edges_.size() < num_edges) {
197 assert(face_index >= 0);
206 assert(face_index >= 0);
213 int num_face_vertex_indices,
214 const int *face_vertex_indices)
216 assert(face_index >= 0);
221 memcpy(face_vertex_indices_storage, face_vertex_indices,
sizeof(
int) * num_face_vertex_indices);
225 int num_expected_face_vertex_indices,
226 const int *expected_face_vertex_indices)
const
228 assert(face_index >= 0);
236 return memcmp(face_vertex_indices_storage,
237 expected_face_vertex_indices,
238 sizeof(
int) * num_expected_face_vertex_indices) == 0;
242 const vector<int> &expected_face_vertex_indices)
const
245 face_index, expected_face_vertex_indices.size(), expected_face_vertex_indices.data());
255 assert(face_index >= 0);
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble v1
ATTR_WARN_UNUSED_RESULT const BMVert * v2
int * getFaceVertexIndicesStorage(int face_index)
void setNumEdges(int num_edges)
vector< int > faces_first_vertex_index_
void ensureNumEdgesAtLeast(int num_edges)
void setNumFaces(int num_faces)
void ensureVertexTagsSize(int num_vertices)
void getEdgeVertexIndices(int edge_index, int *v1, int *v2) const
void setEdgeSharpness(int edge_index, float sharpness)
bool isEdgeEqual(int edge_index, int expected_v1, int expected_v2) const
float getEdgeSharpness(int edge_index) const
void setNumVertices(int num_vertices)
vector< int > face_vertex_indices_
void setFaceVertexIndices(int face_index, int num_face_vertex_indices, const int *face_vertex_indices)
void ensureEdgeTagsSize(int num_edges)
int getNumVertices() const
void setVertexSharpness(int vertex_index, float sharpness)
int getNumFaceVertices(int face_index) const
bool isFaceVertexIndicesEqual(int face_index, int num_expected_face_vertex_indices, const int *expected_face_vertex_indices) const
void setEdgeVertexIndices(int edge_index, int v1, int v2)
vector< VertexTag > vertex_tags_
float getVertexSharpness(int vertex_index) const
vector< EdgeTag > edge_tags_
void finishResizeTopology()
void setNumFaceVertices(int face_index, int num_face_vertices)
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset