Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
48969dd6
Commit
48969dd6
authored
Aug 30, 2013
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCHNApps launching: Python script can be passed as argument
parent
bfa7b3da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
18 deletions
+8
-18
SCHNApps/bin/schnappsInit.py
SCHNApps/bin/schnappsInit.py
+0
-15
SCHNApps/src/main.cpp
SCHNApps/src/main.cpp
+8
-3
No files found.
SCHNApps/bin/schnappsInit.py
deleted
100644 → 0
View file @
bfa7b3da
v0
=
schnapps
.
getView
(
"view_0"
);
importPlugin
=
schnapps
.
enablePlugin
(
"Surface_Import"
);
surfaceRender
=
schnapps
.
enablePlugin
(
"Surface_Render"
);
v0
.
linkPlugin
(
surfaceRender
.
getName
());
handman
=
importPlugin
.
importFromFile
(
"/home/kraemer/Media/Data/surface/midRes/handman_34k.off"
);
v0
.
linkMap
(
handman
.
getName
());
handman
.
createVBO
(
"position"
);
surfaceRender
.
changePositionVBO
(
v0
.
getName
(),
handman
.
getName
(),
"position"
);
surfaceRender
.
changeRenderEdges
(
v0
.
getName
(),
handman
.
getName
(),
True
);
SCHNApps/src/main.cpp
View file @
48969dd6
...
...
@@ -30,9 +30,14 @@ int main(int argc, char* argv[])
schnapps
.
show
();
pythonContext
.
addObject
(
"schnapps"
,
&
schnapps
);
QFileInfo
fi
(
app
.
applicationDirPath
()
+
QString
(
"/schnappsInit.py"
));
if
(
fi
.
exists
())
pythonContext
.
evalFile
(
fi
.
filePath
());
if
(
argc
>
1
)
{
QString
filename
(
argv
[
1
]);
QFileInfo
fi
(
filename
);
if
(
fi
.
exists
())
pythonContext
.
evalFile
(
fi
.
filePath
());
}
splash
->
finish
(
&
schnapps
);
delete
splash
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment