|
Blender V5.0
|
#include <mesh_topology.h>
Classes | |
| struct | VertexTag |
| struct | Edge |
| struct | EdgeTag |
Public Member Functions | |
| MeshTopology () | |
| MeshTopology (const MeshTopology &other)=default | |
| MeshTopology (MeshTopology &&other) noexcept=default | |
| ~MeshTopology () | |
| MeshTopology & | operator= (const MeshTopology &other)=default |
| MeshTopology & | operator= (MeshTopology &&other)=default |
| void | setNumVertices (int num_vertices) |
| int | getNumVertices () const |
| void | setVertexSharpness (int vertex_index, float sharpness) |
| float | getVertexSharpness (int vertex_index) const |
| void | setNumEdges (int num_edges) |
| int | getNumEdges () const |
| void | setEdgeVertexIndices (int edge_index, int v1, int v2) |
| void | getEdgeVertexIndices (int edge_index, int *v1, int *v2) const |
| bool | isEdgeEqual (int edge_index, int expected_v1, int expected_v2) const |
| void | setEdgeSharpness (int edge_index, float sharpness) |
| float | getEdgeSharpness (int edge_index) const |
| void | setNumFaces (int num_faces) |
| int | getNumFaces () const |
| void | setNumFaceVertices (int face_index, int num_face_vertices) |
| int | getNumFaceVertices (int face_index) const |
| void | setFaceVertexIndices (int face_index, int num_face_vertex_indices, const int *face_vertex_indices) |
| bool | isFaceVertexIndicesEqual (int face_index, int num_expected_face_vertex_indices, const int *expected_face_vertex_indices) const |
| bool | isFaceVertexIndicesEqual (int face_index, const std::vector< int > &expected_face_vertex_indices) const |
| void | finishResizeTopology () |
| bool | isEqualToConverter (const OpenSubdiv_Converter *converter) const |
Protected Member Functions | |
| void | ensureNumEdgesAtLeast (int num_edges) |
| void | ensureVertexTagsSize (int num_vertices) |
| void | ensureEdgeTagsSize (int num_edges) |
| int * | getFaceVertexIndicesStorage (int face_index) |
| const int * | getFaceVertexIndicesStorage (int face_index) const |
| MEM_CXX_CLASS_ALLOC_FUNCS ("MeshTopology") | |
Protected Attributes | |
| int | num_vertices_ |
| std::vector< VertexTag > | vertex_tags_ |
| int | num_edges_ |
| std::vector< Edge > | edges_ |
| std::vector< EdgeTag > | edge_tags_ |
| int | num_faces_ |
| std::vector< int > | face_vertex_indices_ |
| std::vector< int > | faces_first_vertex_index_ |
Definition at line 40 of file mesh_topology.h.
| blender::opensubdiv::MeshTopology::MeshTopology | ( | ) |
Definition at line 13 of file mesh_topology.cc.
References num_edges_, num_faces_, and num_vertices_.
Referenced by getFaceVertexIndicesStorage(), MeshTopology(), MeshTopology(), operator=(), and operator=().
|
default |
References MeshTopology().
|
defaultnoexcept |
References MeshTopology().
|
default |
|
protected |
Definition at line 154 of file mesh_topology.cc.
References edge_tags_.
Referenced by setEdgeSharpness().
|
protected |
Definition at line 147 of file mesh_topology.cc.
References edges_.
Referenced by setEdgeVertexIndices().
|
protected |
Definition at line 53 of file mesh_topology.cc.
References vertex_tags_.
Referenced by setVertexSharpness().
| void blender::opensubdiv::MeshTopology::finishResizeTopology | ( | ) |
Definition at line 248 of file mesh_topology.cc.
References face_vertex_indices_, and faces_first_vertex_index_.
Referenced by blender::opensubdiv::TEST(), blender::opensubdiv::TEST(), and blender::opensubdiv::TEST().
| float blender::opensubdiv::MeshTopology::getEdgeSharpness | ( | int | edge_index | ) | const |
Definition at line 134 of file mesh_topology.cc.
References assert, and edge_tags_.
Referenced by blender::opensubdiv::isEqualEdgeTags(), and blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::getEdgeVertexIndices | ( | int | edge_index, |
| int * | v1, | ||
| int * | v2 ) const |
Definition at line 91 of file mesh_topology.cc.
References assert, edges_, getNumEdges(), blender::opensubdiv::MeshTopology::Edge::v1, blender::opensubdiv::MeshTopology::Edge::v2, and v2.
|
protected |
Definition at line 231 of file mesh_topology.cc.
References getFaceVertexIndicesStorage(), and MeshTopology().
Referenced by getFaceVertexIndicesStorage(), isFaceVertexIndicesEqual(), and setFaceVertexIndices().
|
protected |
Definition at line 236 of file mesh_topology.cc.
References assert, face_vertex_indices_, faces_first_vertex_index_, and getNumFaces().
| int blender::opensubdiv::MeshTopology::getNumEdges | ( | ) | const |
Definition at line 68 of file mesh_topology.cc.
References num_edges_.
Referenced by getEdgeVertexIndices(), isEdgeEqual(), blender::opensubdiv::isEqualEdgeTags(), blender::opensubdiv::isEqualGeometryCounters(), blender::opensubdiv::isEqualGeometryEdge(), setEdgeSharpness(), and setEdgeVertexIndices().
| int blender::opensubdiv::MeshTopology::getNumFaces | ( | ) | const |
Definition at line 173 of file mesh_topology.cc.
References num_faces_.
Referenced by getFaceVertexIndicesStorage(), getNumFaceVertices(), blender::opensubdiv::isEqualGeometryCounters(), blender::opensubdiv::isEqualGeometryFace(), isFaceVertexIndicesEqual(), setFaceVertexIndices(), and setNumFaceVertices().
| int blender::opensubdiv::MeshTopology::getNumFaceVertices | ( | int | face_index | ) | const |
Definition at line 187 of file mesh_topology.cc.
References assert, faces_first_vertex_index_, and getNumFaces().
Referenced by blender::opensubdiv::isEqualGeometryFace(), isFaceVertexIndicesEqual(), setFaceVertexIndices(), and blender::opensubdiv::TEST().
| int blender::opensubdiv::MeshTopology::getNumVertices | ( | ) | const |
Definition at line 25 of file mesh_topology.cc.
References num_vertices_.
Referenced by getVertexSharpness(), blender::opensubdiv::isEqualGeometryCounters(), blender::opensubdiv::isEqualVertexTags(), setEdgeVertexIndices(), and setVertexSharpness().
| float blender::opensubdiv::MeshTopology::getVertexSharpness | ( | int | vertex_index | ) | const |
Definition at line 40 of file mesh_topology.cc.
References assert, getNumVertices(), and vertex_tags_.
Referenced by blender::opensubdiv::isEqualVertexTags(), and blender::opensubdiv::TEST().
| bool blender::opensubdiv::MeshTopology::isEdgeEqual | ( | int | edge_index, |
| int | expected_v1, | ||
| int | expected_v2 ) const |
Definition at line 107 of file mesh_topology.cc.
References assert, edges_, getNumEdges(), blender::opensubdiv::MeshTopology::Edge::v1, and blender::opensubdiv::MeshTopology::Edge::v2.
Referenced by blender::opensubdiv::isEqualEdgeTags().
| bool blender::opensubdiv::MeshTopology::isEqualToConverter | ( | const OpenSubdiv_Converter * | converter | ) | const |
Definition at line 209 of file mesh_topology_compare.cc.
References blender::opensubdiv::isEqualGeometry(), blender::opensubdiv::isEqualGeometryCounters(), and blender::opensubdiv::isEqualTags().
| bool blender::opensubdiv::MeshTopology::isFaceVertexIndicesEqual | ( | int | face_index, |
| const std::vector< int > & | expected_face_vertex_indices ) const |
Definition at line 224 of file mesh_topology.cc.
References isFaceVertexIndicesEqual().
| bool blender::opensubdiv::MeshTopology::isFaceVertexIndicesEqual | ( | int | face_index, |
| int | num_expected_face_vertex_indices, | ||
| const int * | expected_face_vertex_indices ) const |
Definition at line 207 of file mesh_topology.cc.
References assert, getFaceVertexIndicesStorage(), getNumFaces(), and getNumFaceVertices().
Referenced by blender::opensubdiv::isEqualGeometryFace(), isFaceVertexIndicesEqual(), and blender::opensubdiv::TEST().
|
protected |
|
default |
References MeshTopology().
|
default |
References MeshTopology(), and v2.
| void blender::opensubdiv::MeshTopology::setEdgeSharpness | ( | int | edge_index, |
| float | sharpness ) |
Definition at line 120 of file mesh_topology.cc.
References assert, edge_tags_, ensureEdgeTagsSize(), and getNumEdges().
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setEdgeVertexIndices | ( | int | edge_index, |
| int | v1, | ||
| int | v2 ) |
Definition at line 73 of file mesh_topology.cc.
References assert, edges_, ensureNumEdgesAtLeast(), getNumEdges(), getNumVertices(), blender::opensubdiv::MeshTopology::Edge::v1, blender::opensubdiv::MeshTopology::Edge::v2, and v2.
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setFaceVertexIndices | ( | int | face_index, |
| int | num_face_vertex_indices, | ||
| const int * | face_vertex_indices ) |
Definition at line 195 of file mesh_topology.cc.
References assert, getFaceVertexIndicesStorage(), getNumFaces(), and getNumFaceVertices().
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setNumEdges | ( | int | num_edges | ) |
Definition at line 63 of file mesh_topology.cc.
References num_edges_.
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setNumFaces | ( | int | num_faces | ) |
Definition at line 164 of file mesh_topology.cc.
References faces_first_vertex_index_, and num_faces_.
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setNumFaceVertices | ( | int | face_index, |
| int | num_face_vertices ) |
Definition at line 178 of file mesh_topology.cc.
References assert, faces_first_vertex_index_, and getNumFaces().
Referenced by blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setNumVertices | ( | int | num_vertices | ) |
Definition at line 20 of file mesh_topology.cc.
References num_vertices_.
Referenced by blender::opensubdiv::TEST(), and blender::opensubdiv::TEST().
| void blender::opensubdiv::MeshTopology::setVertexSharpness | ( | int | vertex_index, |
| float | sharpness ) |
Definition at line 30 of file mesh_topology.cc.
References assert, ensureVertexTagsSize(), getNumVertices(), and vertex_tags_.
Referenced by blender::opensubdiv::TEST().
|
protected |
Definition at line 151 of file mesh_topology.h.
Referenced by ensureEdgeTagsSize(), getEdgeSharpness(), and setEdgeSharpness().
|
protected |
Definition at line 150 of file mesh_topology.h.
Referenced by ensureNumEdgesAtLeast(), getEdgeVertexIndices(), isEdgeEqual(), and setEdgeVertexIndices().
|
protected |
Definition at line 157 of file mesh_topology.h.
Referenced by finishResizeTopology(), and getFaceVertexIndicesStorage().
|
protected |
Definition at line 161 of file mesh_topology.h.
Referenced by finishResizeTopology(), getFaceVertexIndicesStorage(), getNumFaceVertices(), setNumFaces(), and setNumFaceVertices().
|
protected |
Definition at line 149 of file mesh_topology.h.
Referenced by getNumEdges(), MeshTopology(), and setNumEdges().
|
protected |
Definition at line 153 of file mesh_topology.h.
Referenced by getNumFaces(), MeshTopology(), and setNumFaces().
|
protected |
Definition at line 146 of file mesh_topology.h.
Referenced by getNumVertices(), MeshTopology(), and setNumVertices().
|
protected |
Definition at line 147 of file mesh_topology.h.
Referenced by ensureVertexTagsSize(), getVertexSharpness(), and setVertexSharpness().