init.py 884 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

8
obj = importPlugin.importFromFile("/home/kraemer/Media/Data/surface/midRes/camel_10k.off");
9 10 11 12

v = schnapps.getView("view_0");

schnapps.linkViewAndPlugin(v.getName(), renderPlugin.getName());
13
schnapps.linkViewAndPlugin(v.getName(), renderVectorPlugin.getName());
14 15 16
schnapps.linkViewAndPlugin(v.getName(), surfaceDeformationPlugin.getName());

schnapps.linkViewAndMap(v.getName(), obj.getName());
17

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