Changeset View
Changeset View
Standalone View
Standalone View
intern/opensubdiv/internal/topology/mesh_topology.h
| Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | bool isFaceVertexIndicesEqual(int face_index, | ||||
| const int *expected_face_vertex_indices) const; | const int *expected_face_vertex_indices) const; | ||||
| bool isFaceVertexIndicesEqual(int face_index, | bool isFaceVertexIndicesEqual(int face_index, | ||||
| const vector<int> &expected_face_vertex_indices) const; | const vector<int> &expected_face_vertex_indices) const; | ||||
| ////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
| // Pipeline related. | // Pipeline related. | ||||
| // This function is to be called when number of vertices, edges, faces, and | // This function is to be called when number of vertices, edges, faces, and | ||||
| // face-verticies are known. | // face-vertices are known. | ||||
| // | // | ||||
| // Usually is called from the end of topology refiner factory's | // Usually is called from the end of topology refiner factory's | ||||
| // resizeComponentTopology(). | // resizeComponentTopology(). | ||||
| void finishResizeTopology(); | void finishResizeTopology(); | ||||
| ////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
| // Comparison. | // Comparison. | ||||
| Show All 34 Lines | protected: | ||||
| vector<VertexTag> vertex_tags_; | vector<VertexTag> vertex_tags_; | ||||
| int num_edges_; | int num_edges_; | ||||
| vector<Edge> edges_; | vector<Edge> edges_; | ||||
| vector<EdgeTag> edge_tags_; | vector<EdgeTag> edge_tags_; | ||||
| int num_faces_; | int num_faces_; | ||||
| // Continuous array of all verticies of all faces: | // Continuous array of all vertices of all faces: | ||||
| // [vertex indices of face 0][vertex indices of face 1] .. [vertex indices of face n]. | // [vertex indices of face 0][vertex indices of face 1] .. [vertex indices of face n]. | ||||
| vector<int> face_vertex_indices_; | vector<int> face_vertex_indices_; | ||||
| // Indexed by face contains index within face_vertex_indices_ which corresponds | // Indexed by face contains index within face_vertex_indices_ which corresponds | ||||
| // to the element which contains first vertex of the face. | // to the element which contains first vertex of the face. | ||||
| vector<int> faces_first_vertex_index_; | vector<int> faces_first_vertex_index_; | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("MeshTopology"); | MEM_CXX_CLASS_ALLOC_FUNCS("MeshTopology"); | ||||
| }; | }; | ||||
| } // namespace opensubdiv | } // namespace opensubdiv | ||||
| } // namespace blender | } // namespace blender | ||||
| #endif // OPENSUBDIV_MESH_TOPOLOGY_H_ | #endif // OPENSUBDIV_MESH_TOPOLOGY_H_ | ||||