This class subdivides mesh faces by introducing a single new vertex in the middle of a triangle to create 3 new triangles per face. All new vertices added to the mesh retain the ancillary data fields associated with the original vertices (e.g., color, normals, curvature, etc.). If normal and color (rgba) data fields exists, added midpoints average the normal and color fields of the parent vertices.
- Note
- This class subdivides faces by inserting a vertex in the middle of the face, which means that all original triangle edges are retained. Therefore, the criteria for face subdivision should not be based on a property of a triangle edge (e.g., maximum allowable length).