def addFacesGivenText(objText, triangleMesh):
 lines = archive.getTextLines(objText)
 for line in lines:
  splitLine = line.split()
  firstWord = gcodec.getFirstWord(splitLine)
  if (firstWord == 'v'):
   triangleMesh.vertexes.append(getVertexGivenLine(line))
  elif (firstWord == 'f'):
   triangleMesh.faces.append(getFaceGivenLine(line, triangleMesh))

def addFacesGivenText ( objText , triangleMesh ) : lines = archive . getTextLines ( objText ) for line in lines : splitLine = line . split ( ) firstWord = gcodec . getFirstWord ( splitLine ) if ( firstWord == 'v' ) : triangleMesh . vertexes . append ( getVertexGivenLine ( line ) ) elif ( firstWord == 'f' ) : triangleMesh . faces . append ( getFaceGivenLine ( line , triangleMesh ) )
add faces given stl text .