-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel.html
116 lines (106 loc) · 4.64 KB
/
model.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<html lang="en">
<head>
<link rel="icon" href="img/logo.png" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Archiscape</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.4/angular-material.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular-animate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular-aria.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular-messages.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.0.4/angular-material.min.js"></script>
<script src="js/three.min.js"></script>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/OrbitControls.js"></script>
</head>
<body ng-app="modelingApp">
<div ng-controller="MainCtrl">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" id="custom-brand" href="index.html"><img src="img/logo.png"
style="width: 1.2em; margin-bottom: .3em" />
Archiscape</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto mr-2">
<li class="nav-item active">
<a class="nav-link" href="index.html">Return Home <span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid bg main-card-container bg-full">
<div class="card bg-light main-card shadow-lg">
<div class="card-header">
<h1 class="mt-2"><b>3D Modeling</b></h1>
</div>
<div class=" container-fluid card-body">
<div class="row" id="instructionsRow">
<div class="col">
<p class="lead">
Upload a 2D floor plan to get a 3D building model.
</p>
</div>
</div>
<div class="row">
<div class="col col-md-6" id="form">
<button id="fileInputButton" class="btn btn-outline-primary" ng-click="convertImageToData()">
Select File
</button>
<input id="fileInput" name="file" type="file" style="display:none;" file multiple />
<button class="btn btn-primary" ng-click="showConfirm() " ng-if="fileName.length > 0" id="renderButton">
Render 3D Model
</button>
<div class="row">
<div class="col-6">
<img id="floorplan" src="#" class="img-fluid mt-3" style="display:none" />
</div>
</div>
</div>
<div class="container-fluid align-content-center">
<div class="row justify-content-center">
<div class="col-8 text-center mr-5 mt-5" id="canvas-container">
<canvas id="mycanvas" style="max-width: 70vw;
max-height: 50vh;"></canvas>
</div>
</div>
<!--
<div class="row justify-content-center">
<div class="col-5 mt-5">
<div class="form-group">
<input ng-if="ready" id="name" type="text"
class="form-control" placeholder="Model Name" style="font-family: Neucha"
/>
</div>
</div>
<div class="col-md-3 mt-5 col">
<button
ng-if="ready"
type="button"
ng-click="save()"
class="btn btn-primary"
id="save-model-button"
>
Save Model
</button>
</div>
</div> -->
</div>
</div>
<div ng-if="!ready">
<canvas id="canvas" width="0" height="0" style="display:none">
Your browser does not support the HTML5 canvas tag.
</canvas>
</div>
</div>
</div>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>