| 121 | } |
| 122 | |
| 123 | Mesh Mesh::fromPointTriples( const std::vector<Triangle3f> & posTriples, bool duplicateNonManifoldVertices ) |
| 124 | { |
| 125 | MR_TIMER; |
| 126 | MeshBuilder::VertexIdentifier vi; |
| 127 | vi.reserve( posTriples.size() ); |
| 128 | vi.addTriangles( posTriples ); |
| 129 | if ( duplicateNonManifoldVertices ) |
| 130 | { |
| 131 | auto t = vi.takeTriangulation(); |
| 132 | return fromTrianglesDuplicatingNonManifoldVertices( vi.takePoints(), t ); |
| 133 | } |
| 134 | return fromTriangles( vi.takePoints(), vi.takeTriangulation() ); |
| 135 | } |
| 136 | |
| 137 | bool Mesh::operator ==( const Mesh & b ) const |
| 138 | { |
nothing calls this directly
no test coverage detected