add obj export
This commit is contained in:
parent
3f88586bcd
commit
5b1e2d5eeb
5 changed files with 94 additions and 39 deletions
|
|
@ -512,6 +512,16 @@ th, tr, td, label {
|
|||
border-right: 3px solid var(--main-color);
|
||||
}
|
||||
|
||||
#lab-axis, #lab-scale, #lab-size {
|
||||
border-radius: 3px;
|
||||
padding: 2px;
|
||||
border: 1px solid white;
|
||||
}
|
||||
#lab-axis:hover, #lab-scale:hover {
|
||||
background-color: var(--main-color);
|
||||
color: white;
|
||||
}
|
||||
|
||||
#ft-rotate {
|
||||
grid-gap: 2px;
|
||||
grid-template-rows: auto auto auto 1fr;
|
||||
|
|
@ -520,6 +530,17 @@ th, tr, td, label {
|
|||
#ft-rotate label, #ft-rotate svg {
|
||||
text-align: center;
|
||||
}
|
||||
#ft-rotate svg {
|
||||
margin-top: 2px;
|
||||
padding: 1px 15px 1px 15px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 3px;
|
||||
}
|
||||
#ft-rotate svg:hover {
|
||||
border: 1px solid #ccc;
|
||||
background-color: var(--main-color);
|
||||
color: white;
|
||||
}
|
||||
#ft-rotate > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -544,9 +565,21 @@ th, tr, td, label {
|
|||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
#ft-mesh label {
|
||||
font-size: smaller;
|
||||
}
|
||||
#ft-mesh .value {
|
||||
font-family: monospace;
|
||||
padding-left: 4px;
|
||||
}
|
||||
#ft-mesh, #ft-select {
|
||||
min-width: 200px;
|
||||
}
|
||||
#mesh-info {
|
||||
grid-gap: 2px;
|
||||
grid-template-rows: auto auto auto;
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
#lock_x, #lock_y, #lock_z {
|
||||
position: absolute;
|
||||
|
|
@ -1667,13 +1700,6 @@ th, tr, td, label {
|
|||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
#winfo {
|
||||
position: fixed;
|
||||
font-size: 10px;
|
||||
bottom: 5px;
|
||||
left: 5px;
|
||||
color: #000;
|
||||
}
|
||||
#context-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
|
@ -1701,13 +1727,6 @@ th, tr, td, label {
|
|||
margin: 5px 0 5px 0;
|
||||
}
|
||||
|
||||
#lab-axis, #lab-scale {
|
||||
border-radius: 3px;
|
||||
}
|
||||
#lab-axis:hover, #lab-scale:hover {
|
||||
background-color: rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.range-info {
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -110,9 +110,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="ft-scale" class="grow grid">
|
||||
<div><label>X</label><input id="lock_x" type="checkbox" checked/></div>
|
||||
<div><label>Y</label><input id="lock_y" type="checkbox" checked/></div>
|
||||
<div><label>Z</label><input id="lock_z" type="checkbox" checked/></div>
|
||||
<div><label class="middle">X</label><input id="lock_x" type="checkbox" checked/></div>
|
||||
<div><label class="middle">Y</label><input id="lock_y" type="checkbox" checked/></div>
|
||||
<div><label class="middle">Z</label><input id="lock_z" type="checkbox" checked/></div>
|
||||
<div><label id="lab-axis" lk="axis">axis</label></div>
|
||||
<div><input id="size_x" size="8" class="value"/></div>
|
||||
<div><input id="size_y" size="8" class="value"/></div>
|
||||
|
|
@ -124,7 +124,19 @@
|
|||
<div><label id="lab-scale" lk="scale">scale</label></div>
|
||||
<button id="scale-reset" class="gr4">reset</button>
|
||||
</div>
|
||||
<div id="ft-mesh" class="grow middle">coming soon</div>
|
||||
<div id="ft-mesh" class="grow f-col">
|
||||
<div id="mesh-info" class="grid">
|
||||
<label>object:</label>
|
||||
<span id="mesh-name" class="value">[0]</span>
|
||||
<label>points:</label>
|
||||
<span id="mesh-points" class="value">-</span>
|
||||
<label>faces:</label>
|
||||
<span id="mesh-faces" class="value">-</span>
|
||||
</div>
|
||||
<button id="mesh-export-obj" lk="rc_xobj">export OBJ</button>
|
||||
<button id="mesh-export-stl" lk="rc_xstl">export STL</button>
|
||||
<button id="mesh-heal" lk="rc_heal">heal</button>
|
||||
</div>
|
||||
<div id="ft-select" class="grow middle">coming soon</div>
|
||||
</div>
|
||||
<div class="footer"></div>
|
||||
|
|
@ -470,14 +482,10 @@
|
|||
<button id="context-mirror" lk="rc_mirr">mirror</button>
|
||||
<button id="context-duplicate" lk="rc_dupl">duplicate</button>
|
||||
<button id="context-setfocus" lk="rc_focs">set focus</button>
|
||||
<div class="sep"></div>
|
||||
<button id="context-heal-mesh" lk="rc_heal">heal meshes</button>
|
||||
<button id="context-export-stl" lk="rc_xstl">export as STL</button>
|
||||
</div>
|
||||
<div id="fps" class="noshow"></div>
|
||||
<div id="layer-animate" class="f-col a-center"></div>
|
||||
<div id="layer-toolpos" class="f-row a-center"></div>
|
||||
<div id="winfo" class="noshow"></div>
|
||||
<div id="alert-area">
|
||||
<div id="alert-border">
|
||||
<div id="alert-text">alerts<br>alerts<br>alerts</div>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,8 @@ kiri.lang['en-us'] = {
|
|||
rc_dupl: "duplicate",
|
||||
rc_focs: "set focus",
|
||||
rc_heal: "heal meshes",
|
||||
rc_xstl: "export as STL",
|
||||
rc_xobj: "export OBJ",
|
||||
rc_xstl: "export STL",
|
||||
|
||||
// DEVICE MENU and related dialogs
|
||||
dm_sldt: "select a device type",
|
||||
|
|
|
|||
Loading…
Reference in a new issue