Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/dracoenc/src/draco/mesh/corner_table.h
| Context not available. | |||||
| // non-manifold edges and vertices are automatically split. | // non-manifold edges and vertices are automatically split. | ||||
| class CornerTable { | class CornerTable { | ||||
| public: | public: | ||||
| // TODO(hemmer): rename to Face. | |||||
| // Corner table face type. | // Corner table face type. | ||||
| typedef std::array<VertexIndex, 3> FaceType; | typedef std::array<VertexIndex, 3> FaceType; | ||||
| Context not available. | |||||
| private: | private: | ||||
| // Computes opposite corners mapping from the data stored in | // Computes opposite corners mapping from the data stored in | ||||
| // |corner_to_vertex_map_|. Any non-manifold edge will be split so the result | // |corner_to_vertex_map_|. | ||||
| // is always a 2-manifold surface. | |||||
| bool ComputeOppositeCorners(int *num_vertices); | bool ComputeOppositeCorners(int *num_vertices); | ||||
| // Finds and breaks non-manifold edges in the 1-ring neighborhood around | |||||
| // vertices (vertices themselves will be split in the ComputeVertexCorners() | |||||
| // function if necessary). | |||||
| bool BreakNonManifoldEdges(); | |||||
| // Computes the lookup map for going from a vertex to a corner. This method | // Computes the lookup map for going from a vertex to a corner. This method | ||||
| // can handle non-manifold vertices by splitting them into multiple manifold | // can handle non-manifold vertices by splitting them into multiple manifold | ||||
| // vertices. | // vertices. | ||||
| Context not available. | |||||