init.py 1 KB
Newer Older
1
importPlugin = schnapps.loadPlugin("ImportSurface");
2
3
renderPlugin = schnapps.loadPlugin("Render");
renderVectorPlugin = schnapps.loadPlugin("RenderVector");
Pierre Kraemer's avatar
Pierre Kraemer committed
4
renderTopoSurfacePlugin = schnapps.loadPlugin("RenderTopoSurface");
5
6
7
differentialPropertiesPlugin = schnapps.loadPlugin("DifferentialProperties");
subdivisionPlugin = schnapps.loadPlugin("SubdivideSurface");
surfaceDeformationPlugin = schnapps.loadPlugin("SurfaceDeformation");
8

9
obj = importPlugin.importFromFile("/home/kraemer/Media/Data/surface/lowRes/iphi_good_9k.off");
10

11
v = schnapps.getView("view_0");
12

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

18
schnapps.linkViewAndMap(v.getName(), obj.getName());
19

20
21
differentialPropertiesPlugin.computeNormal(obj.getName());
differentialPropertiesPlugin.computeCurvature(obj.getName());