Rhino importer #53

This commit is contained in:
Viktor Kovacs 2021-04-18 21:18:19 +02:00
parent fa015f7fb5
commit 068e7d1f40
5 changed files with 13 additions and 6 deletions

View File

@ -23,6 +23,7 @@ The repository is separated into two parts. See more information in the [Develop
- stl (text and binary) - stl (text and binary)
- ply (text and binary) - ply (text and binary)
- gltf (text and binary) - gltf (text and binary)
- 3dm (experimental)
- off (text only) - off (text only)
### Export ### Export

View File

@ -127,12 +127,12 @@
<div class="intro_section only_full_width only_full_height"><img src="assets/images/3dviewer_net_logo.svg" class="intro_logo"></img></div> <div class="intro_section only_full_width only_full_height"><img src="assets/images/3dviewer_net_logo.svg" class="intro_logo"></img></div>
<div class="intro_section intro_big_text"> <div class="intro_section intro_big_text">
Drag and drop your 3D models here.<br> Drag and drop your 3D models here.<br>
Supported formats: <b>obj, 3ds, stl, ply, gltf, glb, off</b>. <b>obj, 3ds, stl, ply, gltf, glb, 3dm, off</b>
</div> </div>
<div class="intro_section"> <div class="intro_section">
Or you can use the browse button above. Or you can use the browse button above.
</div> </div>
<div class="intro_section only_full_height"> <div class="intro_section">
<div>Example models:</div> <div>Example models:</div>
<div class="example_models"> <div class="example_models">
<a href="index.html#model=assets/models/logo.obj,assets/models/logo.mtl">logo</a> <a href="index.html#model=assets/models/logo.obj,assets/models/logo.mtl">logo</a>

View File

@ -24,7 +24,7 @@
<p> <p>
This is the user manual for the <a href="https://3dviewer.net">3dviewer.net</a> website. This is the user manual for the <a href="https://3dviewer.net">3dviewer.net</a> website.
The website can open several 3D file formats and visualize the model in your browser. The website can open several 3D file formats and visualize the model in your browser.
Supported file formats: obj, 3ds, stl, ply, gltf, glb, and off. Supported file formats: obj, 3ds, stl, ply, gltf, glb, 3dm, and off.
</p> </p>
<p> <p>
<ol> <ol>
@ -112,6 +112,13 @@
<td class="center green">&#x2713</td> <td class="center green">&#x2713</td>
<td>version 2.0</td> <td>version 2.0</td>
</tr> </tr>
<tr>
<td>3dm</td>
<td>binary</td>
<td class="center green">&#x2713</td>
<td class="center red">&#x2717</td>
<td>experimental</td>
</tr>
<tr> <tr>
<td rowspan="2">off</td> <td rowspan="2">off</td>
<td>text</td> <td>text</td>

View File

@ -5,7 +5,7 @@ OV.InitModelLoader = function (modelLoader, callbacks)
if (importError.code === OV.ImportErrorCode.NoImportableFile) { if (importError.code === OV.ImportErrorCode.NoImportableFile) {
return OV.ShowMessageDialog ( return OV.ShowMessageDialog (
'Something went wrong', 'Something went wrong',
'No importable file found. You can open obj, 3ds, stl, ply, gltf, glb and off files.', 'No importable file found. You can open obj, 3ds, stl, ply, gltf, glb, 3dm, and off files.',
importError.message importError.message
); );
} else if (importError.code === OV.ImportErrorCode.ImportFailed) { } else if (importError.code === OV.ImportErrorCode.ImportFailed) {

View File

@ -718,7 +718,6 @@ div.intro div.intro_section
{ {
font-size: 16px; font-size: 16px;
line-height: 20px; line-height: 20px;
margin: 20px 0px;
} }
div.intro div.intro_big_text div.intro div.intro_big_text
@ -755,7 +754,7 @@ div.ov_progress
div.intro div.intro_section div.intro div.intro_section
{ {
margin: 20px 0px; margin: 15px 0px;
} }
} }