MCPcopy Create free account
hub / github.com/PDAL/PDAL / read

Method read

io/ObjReader.cpp:81–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81point_count_t ObjReader::read(PointViewPtr view, point_count_t cnt)
82{
83 m_mesh = view->createMesh("obj");
84 if (!m_mesh)
85 {
86 throwError("Failed to create mesh");
87 }
88
89 while (true)
90 {
91 FACE face;
92 if (!readFace(face, view))
93 break;
94
95 auto triangles = triangulate(face);
96 for(const auto& tri : triangles) {
97 newTriangle(view, tri);
98 }
99 }
100 return m_index;
101}
102
103void ObjReader::newTriangle(PointViewPtr view, TRI tri)
104{

Callers

nothing calls this directly

Calls 1

createMeshMethod · 0.80

Tested by

no test coverage detected