ThatOpen / web-ifc-viewer

Graphics engine and toolkit for client applications.
MIT License
953 stars 235 forks source link

No file in the viewer #244

Open seghier opened 1 year ago

seghier commented 1 year ago

Hello I use the bundle from example folder and i load ifc file but nothing appears in Chrome browser?

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="icon" type="image/png" href="./favicon.ico" />
    <link rel="preconnect" href="https://fonts.gstatic.com" />
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="./styles.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>IFC.js</title>
  </head>
  <body>
    <input type="file" id="file-input" accept=".ifc, .ifcXML, .ifcZIP">
    <div id="viewer-container"></div>
    <script src="./build/main.js"></script>
  </body>
</html>

image

agviegas commented 1 year ago

Hi @seghier

We have officially released the new library components on September 20. This library substitutes web-ifc-three and web-ifc-viewer. Both WIV and WIT will remain up, but they will be deprecated and won't be maintained any longer.

All our efforts are going towards components now. The API is very similar, so I strongly suggest you make the leap and start using it. You can start using it now (check out the latest alpha version in npm or see the big-restructure branch in the repo. If you still face this issue with it, you can open an issue there and we'll take a look.

Cheers!

seghier commented 1 year ago

Thank you @agviegas I check components but i don't find a bundle or explanation how to create it like in ifc viewer

agviegas commented 1 year ago

You can find the documentation here. Keep in mind that basic web development (including getting the library from npm and bundling your project) is out of its scope!

seghier commented 1 year ago

I can't access to the website image

agviegas commented 1 year ago

You can press the button below to sign up, it's free