init.py 893 Bytes
Newer Older
1 2
importPlugin = schnapps.loadPlugin("ImportSurface");
renderPlugin = schnapps.loadPlugin("Render");
3
renderVectorPlugin = schnapps.loadPlugin("RenderVector");
4 5
differentialPropertiesPlugin = schnapps.loadPlugin("DifferentialProperties");
subdivisionPlugin = schnapps.loadPlugin("SubdivideSurface");
6
surfaceDeformationPlugin = schnapps.loadPlugin("SurfaceDeformation");
7

Pierre Kraemer's avatar
Pierre Kraemer committed
8
#obj = importPlugin.importFromFile("/home/kraemer/Media/Data/surface/lowRes/iphi_good_9k.off");
9

Pierre Kraemer's avatar
Pierre Kraemer committed
10
#v = schnapps.getView("view_0");
11

Pierre Kraemer's avatar
Pierre Kraemer committed
12 13 14
#schnapps.linkViewAndPlugin(v.getName(), renderPlugin.getName());
#schnapps.linkViewAndPlugin(v.getName(), renderVectorPlugin.getName());
#schnapps.linkViewAndPlugin(v.getName(), surfaceDeformationPlugin.getName());
15

Pierre Kraemer's avatar
Pierre Kraemer committed
16
#schnapps.linkViewAndMap(v.getName(), obj.getName());
17

18 19
#differentialPropertiesPlugin.computeNormal(obj.getName());
#differentialPropertiesPlugin.computeCurvature(obj.getName());