Esempio n. 1
0
def datasetFunc(data_name):
    scene = loadData(data_name)
    result_data_list = computeData(scene)

    scnene_plotter = ScenePlotter(scene, plt)

    for i, result_data in enumerate(result_data_list):
        resultDataFunc(scnene_plotter, data_name, i, result_data)
Esempio n. 2
0
def datasetFunc(data_name):
    scene = loadData(data_name)
    data_list = computeData(scene)

    plotter = ScenePlotter(scene, plt)

    plt.title('Arc Interpolation')
    plotter.showNormalImage()

    for data in data_list:
        error_colors = scalarToColor(data["normals_error"])

        plotSegment(plt, data["ps"], error_colors)

    showMaximize()
Esempio n. 3
0
def datasetFunc(data_name):
    scene = loadData(data_name)

    plotter = ScenePlotter(scene, plt)
    silhouette_plotter = plotter.silhouettePlotter()

    plt.title('Isophote Scene')
    plotter.showNormalImage()
    #silhouette_plotter.plotCVs()
    silhouette_plotter.plotNormalVectors()
    silhouette_plotter.plotCurves(color=(0.1, 0.5, 0.1))

    for isophote_plotter in plotter.isophotePlotters():
        #isophote_plotter.plotCVs()
        isophote_plotter.plotCurves(color=(0.1, 0.1, 0.3))
        isophote_plotter.plotNormalVectors(color=(0.1, 0.1, 0.3), step=5)
    showMaximize()