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()
Beispiel #2
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()