Changeset View
Changeset View
Standalone View
Standalone View
intern/opensubdiv/internal/topology/mesh_topology.cc
| Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | |||||
| //////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// | ||||
| // Faces. | // Faces. | ||||
| void MeshTopology::setNumFaces(int num_faces) | void MeshTopology::setNumFaces(int num_faces) | ||||
| { | { | ||||
| num_faces_ = num_faces; | num_faces_ = num_faces; | ||||
| // NOTE: Extra element to store fake face past the last real one to make it | // NOTE: Extra element to store fake face past the last real one to make it | ||||
| // possible to calculate number of verticies in the last face. | // possible to calculate number of vertices in the last face. | ||||
| faces_first_vertex_index_.resize(num_faces + 1, 0); | faces_first_vertex_index_.resize(num_faces + 1, 0); | ||||
| } | } | ||||
| int MeshTopology::getNumFaces() const | int MeshTopology::getNumFaces() const | ||||
| { | { | ||||
| return num_faces_; | return num_faces_; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||