protected static List<CCTriangle> getTriangles(final List<String> td
            , final List<CCNode> nodes, final CCModel model) {
        ArrayList<CCTriangle> triangles = new ArrayList<>();
        CCTriangle triangle = null;
        for (String s : td) {
            if (!s.split("\\s")[0].matches("[0-9]+")) {
                triangle = new CCTriangle();
                triangle.setMaterial(s);
                triangle.setCCModel(model);
                triangles.add(triangle);
            } else if (triangle == null) {
                Logger.getLogger(CCTriangleProcessor.class.getName())
                        .log(Logger.Level.WARN, "Triangle was null");
            } else {
                CCVertex vertex = CCVertexDataProcessor.processVertex(s);
                vertex = setNode(vertex, CCVertexDataProcessor.getNodeId(s),
                        nodes);
                vertex.setCCTriangle(triangle);
                triangle = addToTriangle(triangle, vertex);
            }
        }
        return triangles;
    }