MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromPointTriples

Method fromPointTriples

source/MRMesh/MRMesh.cpp:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123Mesh 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
137bool Mesh::operator ==( const Mesh & b ) const
138{

Callers

nothing calls this directly

Calls 7

fromTrianglesFunction · 0.85
addTrianglesMethod · 0.80
takeTriangulationMethod · 0.80
takePointsMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected