Skip to content

Commit

Permalink
update..
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Feb 20, 2024
1 parent e593068 commit 475b107
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
40 changes: 29 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2 id="contact">Contact</h2>
<div class="" style="background-color: black; position: absolute; top:calc( 0% );left: 50%;transform: translate(-50%, 0%); ">
<nav class="navbar navbar-dark navbar-expand-lg" style="background-color: #000000;">

<button class="navbar-brand btn btn-dark" >CPlantBox WASM</button>
<button class="navbar-brand btn btn-dark" >CPlantBox</button>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down Expand Up @@ -162,8 +162,8 @@ <h2 id="contact">Contact</h2>
<input type="file" id="VTPInput2" multiple="" accept=".vtp" style="display: none;">

</div>
<div class="toast-container position-absolute top-0 start-50 translate-middle-x">
<div class="toast align-items-center m-5 top-0 start-50 translate-middle-x " data-bs-delay="10000" style="z-index:9999;" role="alert" aria-live="assertive" aria-atomic="true" id="URLTo">
<div class="toast-container position-absolute top-0 start-50">
<div class="toast align-items-center m-5 top-0 start-50 translate-middle-x " data-bs-delay="10000" style="z-index:999;" role="alert" aria-live="assertive" aria-atomic="true" id="URLTo">
<div class="d-flex">
<div class="toast-body" >
Parameter information:
Expand All @@ -178,7 +178,7 @@ <h2 id="contact">Contact</h2>
</div>
</div>

<div class="toast align-items-center m-5 top-0 start-50 translate-middle-x " data-bs-delay="10000" style="z-index:9999;" role="alert" aria-live="assertive" aria-atomic="true" id="URLTo1">
<div class="toast align-items-center m-5 top-0 start-50 translate-middle-x " data-bs-delay="10000" style="z-index:999;" role="alert" aria-live="assertive" aria-atomic="true" id="URLTo1">
<div class="d-flex">
<div class="toast-body" >
Parameter information:
Expand Down Expand Up @@ -9897,7 +9897,13 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
values: new Float32Array(2 * a),
});
let s = t.lookupTable.getVectorComponent();
t.lookupTable.getVectorMode() === nl.MAGNITUDE &&
let lt = t.lookupTable;
//lt.setMappingRange(0, 40),
lt.setUseAboveRangeColor(true),
lt.setAboveRangeColor(1.0, 1.0, 1.0,0),
lt.build();
lt.updateRange(),
lt.getVectorMode() === nl.MAGNITUDE &&
r.getNumberOfComponents() > 1 &&
(s = -1),
e.createColorTextureCoordinates(
Expand All @@ -9907,7 +9913,7 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
n,
s,
o,
t.lookupTable.getRange(),
o,//t.lookupTable.getRange(),
t.colorTextureMap
.getPointData()
.getScalars()
Expand Down Expand Up @@ -23441,8 +23447,8 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
0.738259, 0.890317, 0.0825461, 0.337793, 0.84546, 0.86136,
0.0147555, 0.471572, 0.912191, 0.808018, 0, 0.605351,
0.962848, 0.710445, 0, 0.73913, 0.999469, 0.600258, 0.0176284,
0.87291, 0.994156, 0.445975, 0.193912, 1, 0.980407, 0.247105,
0.262699,
0.87291, 0.994156, 0.445975, 0.193912, 0.999, 0.980407, 0.247105,
0.262699,1, 0,0,0
],
},
{
Expand Down Expand Up @@ -37314,8 +37320,8 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
//c.appendChild(o),
document.getElementById("colorMenu").appendChild(n),
document.getElementById("attributeMenu").appendChild(i),
c.appendChild(a),
//c.appendChild(s),
//c.appendChild(a),
document.getElementById("attributeMenu").appendChild(s),
void 0 !== navigator.xr &&
N_.getXrSupported() &&
null !== G_ &&
Expand All @@ -37335,6 +37341,15 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
g = f.getPointData().getScalars(),
y = [].concat(g ? g.getRange() : [0, 1]);
let v = ka;

function setRange(start,end) {
const e = Gm.getPresetByName(n.value);
p.applyColorMap(e),
p.setMappingRange(start, end),
p.updateRange(),
P_.render();
};
window.setRange = setRange;
function b() {
const e = Gm.getPresetByName(n.value);
p.applyColorMap(e),
Expand Down Expand Up @@ -37479,6 +37494,7 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
renderer: O_,
renderWindow: P_,
}),
O_.getActiveCamera(),
W_.update(),
closeModal() ;
function startOrStop(boole){
Expand All @@ -37497,9 +37513,11 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>

const r = O_.getActiveCamera();
r.azimuth(0.5),

r.setFocalPoint(0,0,-3),
r.setViewUp(0,0,0.5),
r.setViewUp(0,0,0.00001),
r.setViewAngle(20),
//r.zoom(-10),
P_.render(),
W_.update();
//console.log("rotating at" + xxx+ " distance is"+ distance);
Expand Down
10 changes: 5 additions & 5 deletions public/monopodial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<parameter name="ln" value="35" dev="0" functiontype="2"/>
<parameter name="lnf" value="2"/>
<!--Inter-lateral distance [cm];-->
<parameter name="lmax" value="80" dev="8"/>
<parameter name="lmax" value="80" dev="0"/>
<!--Inter-lateral distance [cm];-->
<parameter name="nob" value="2.2000000000000002" dev="0.22857142857142856"/>
<parameter name="r" value="0.80000000000000004" dev="0.035000000000000003"/>
Expand All @@ -229,7 +229,7 @@
<parameter name="ln" value="15" dev="0" functiontype="2"/>
<parameter name="lnf" value="2"/>
<!--Inter-lateral distance [cm];-->
<parameter name="lmax" value="60" dev="3"/>
<parameter name="lmax" value="60" dev="0"/>
<!--Inter-lateral distance [cm];-->
<parameter name="nob" value="2" dev="0.20000000000000001"/>
<parameter name="r" value="2.3999999999999999" dev="0.035000000000000003"/>
Expand All @@ -255,7 +255,7 @@
<parameter name="ln" value="20" dev="0" functiontype="2"/>
<parameter name="lnf" value="2"/>
<!--Inter-lateral distance [cm];-->
<parameter name="lmax" value="15" dev="3"/>
<parameter name="lmax" value="15" dev="0"/>
<!--Inter-lateral distance [cm];-->
<parameter name="nob" value="0.25" dev="0.14999999999999999"/>
<parameter name="r" value="1.2" dev="0.035000000000000003"/>
Expand All @@ -280,7 +280,7 @@
<!--Apical zone [cm];-->
<parameter name="ln" value="0" dev="1.0000000000000001e-05" functiontype="1"/>
<!--Inter-lateral distance [cm];-->
<parameter name="lmax" value="0" dev="5.9000000000000004"/>
<parameter name="lmax" value="0" dev="0"/>
<parameter name="lnf" value="1"/>
<!--Inter-lateral distance [cm];-->
<parameter name="nob" value="0" dev="0"/>
Expand All @@ -304,7 +304,7 @@
<!--Basal zone [cm]-->
<parameter name="la" value="0" dev="0"/>
<!--Apical zone [cm];-->
<parameter name="ln" value="0.20000000000000001" dev="0" functiontype="573082939"/>
<parameter name="ln" value="0.20000000000000001" dev="0" functiontype="0"/>
<!--Inter-lateral distance [cm];-->
<parameter name="lmax" value="0" dev="0"/>
<!--Inter-lateral distance [cm];-->
Expand Down

0 comments on commit 475b107

Please sign in to comment.