forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plus some small fixes.
- Loading branch information
Showing
5 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Modules/Scripted/WebServer/Resources/docroot/ServerTests/modelviewer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>3D Slicer <model-viewer> example</title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="info"> | ||
<a href="https://modelviewer.dev" target="_blank" rel="noopener">3D Slicer modelviewer</a> | ||
<p> Please wait while content is generated and loaded... (be sure Slicer's exec API is enabled)</p> | ||
</div> | ||
|
||
<model-viewer | ||
style="width:512px; height:512px" | ||
src="/slicer/threeDGraphics" | ||
alt="A 3D model from Slicer" | ||
shadow-intensity="1" | ||
auto-rotate ar | ||
camera-controls> | ||
</model-viewer> | ||
|
||
<footer> | ||
<span>This page is a basic demo of the <a href="https://github.com/GoogleWebComponents/model-viewer" target="_blank"><model-viewer></a> web component.</span> | ||
</footer> | ||
|
||
</body> | ||
|
||
<script type="module" | ||
src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"> | ||
</script> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters