MCPcopy Create free account
hub / github.com/ImageEngine/cortex / parseVertex

Method parseVertex

src/IECoreScene/OBJReader.cpp:149–163  ·  view source on GitHub ↗

parse a vertex

Source from the content-addressed store, hash-verified

147
148// parse a vertex
149void OBJReader::parseVertex(const char * begin, const char * end)
150{
151 vector<float> vec;
152 srule vertex = "v" >> real_p[append(vec)] >> real_p[append(vec)] >> real_p[append(vec)];
153 parse(begin, vertex, space_p);
154
155 // build v
156 V3f v;
157 v[0] = vec[0];
158 v[1] = vec[1];
159 v[2] = vec[2];
160
161 // add this vertex
162 m_vertices->push_back(v);
163}
164
165// parse a texture coordinate
166void OBJReader::parseTextureCoordinate(const char * begin, const char * end)

Callers

nothing calls this directly

Calls 1

appendFunction · 0.50

Tested by

no test coverage detected