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

Method parseNormal

src/IECoreScene/OBJReader.cpp:183–197  ·  view source on GitHub ↗

parse a normal

Source from the content-addressed store, hash-verified

181
182// parse a normal
183void OBJReader::parseNormal(const char * begin, const char * end)
184{
185 vector<float> vec;
186 srule vertex = "vn" >> real_p[append(vec)] >> real_p[append(vec)] >> real_p[append(vec)];
187 parse(begin, vertex, space_p);
188
189 // build v
190 V3f vn;
191 vn[0] = vec[0];
192 vn[1] = vec[1];
193 vn[2] = vec[2];
194
195 // add this normal
196 m_introducedNormals.push_back(vn);
197}
198
199// parse face
200void OBJReader::parseFace(const char * begin, const char * end)

Callers

nothing calls this directly

Calls 1

appendFunction · 0.50

Tested by

no test coverage detected