Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
f029bffd
Commit
f029bffd
authored
Jul 31, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
included .obj files into downloaded archive
parent
b72bba13
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
download.php
download.php
+10
-0
x3dom_init.js
js/x3dom_init.js
+2
-0
viewer.html
viewer.html
+1
-1
No files found.
download.php
View file @
f029bffd
...
@@ -46,6 +46,16 @@ foreach($matches[1] as $v){
...
@@ -46,6 +46,16 @@ foreach($matches[1] as $v){
$file
.=
"
$path
/
$v
"
;
$file
.=
"
$path
/
$v
"
;
}
}
// add obj
$objfile
=
$path
.
"/"
.
$tmp
[
1
]
.
".obj"
;
if
(
is_file
(
$objfile
))
$file
.=
"
$objfile
"
;
// add mtl
$mtlfile
=
$path
.
"/"
.
$tmp
[
1
]
.
".mtl"
;
if
(
is_file
(
$mtlfile
))
$file
.=
"
$mtlfile
"
;
$zipped_data
=
`zip -qj - $file `
;
$zipped_data
=
`zip -qj - $file `
;
header
(
'Content-type: application/zip'
);
header
(
'Content-type: application/zip'
);
header
(
'Content-Disposition: attachment; filename="'
.
$zipfile
.
'"'
);
header
(
'Content-Disposition: attachment; filename="'
.
$zipfile
.
'"'
);
...
...
js/x3dom_init.js
View file @
f029bffd
...
@@ -374,9 +374,11 @@ X3DOMObject.Shape.prototype._registerEvents = function(){
...
@@ -374,9 +374,11 @@ X3DOMObject.Shape.prototype._registerEvents = function(){
}
}
/*
console.log("Shape event: ");
console.log("Shape event: ");
console.log(" canvas: x= "+e.originalEvent.layerX+" y= "+e.originalEvent.layerY);
console.log(" canvas: x= "+e.originalEvent.layerX+" y= "+e.originalEvent.layerY);
console.log(" scene: x= "+e.originalEvent.worldX+" y= "+e.originalEvent.worldY+" z="+e.originalEvent.worldZ);
console.log(" scene: x= "+e.originalEvent.worldX+" y= "+e.originalEvent.worldY+" z="+e.originalEvent.worldZ);
*/
});
});
...
...
viewer.html
View file @
f029bffd
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<div
id=
'help_wrapper'
>
<div
id=
'help_wrapper'
>
<div
id=
'exit_button'
title=
'Exit to models index'
></div>
<div
id=
'exit_button'
title=
'Exit to models index'
></div>
<div
id=
'help_button'
>
?
</div>
<div
id=
'help_button'
>
?
</div>
<div
id=
'download_button'
title=
'Download 3d model'
></div>
<div
id=
'download_button'
title=
'Download 3d model
(.obj & .x3d formats)
'
></div>
<div
id=
'menu_button'
></div>
<div
id=
'menu_button'
></div>
<div
id=
'align_button'
title=
'Run alignment algorithm for camera heading and location using markers.
<div
id=
'align_button'
title=
'Run alignment algorithm for camera heading and location using markers.
Instructions:
Instructions:
...
...
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