Skip to content

Commit

Permalink
Examples tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Aug 25, 2019
1 parent b693960 commit ef9c3c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1><a href="http://xeokit.io">xeokit</a> / Examples</h1>
"Measurements": [

"#Measuring angles",
// "measurements_angle_modelWithMeasurements",
"measurements_angle_modelWithMeasurements",
"measurements_angle_createWithMouse",

"#Measuring distances",
Expand Down
29 changes: 18 additions & 11 deletions examples/measurements_angle_modelWithMeasurements.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,29 +80,36 @@ <h1>AngleMeasurementPlugin - Programmatically create angle measurements</h1><br>
const myMeasurement1 = angleMeasurements.createMeasurement({
id: "angleMeasurement1",
origin: {
entity: viewer.scene.objects["0jf0rYHfX3RAB3bSIRjmoa"],
worldPos: [0.04815268516540527, 6.0054426193237305, 17.76587677001953]
entity: viewer.scene.objects["1CZILmCaHETO8tf3SgGEXu"],
worldPos: [0.41385602951049805,-0.030549049377441406,17.801637649536133]
},
corner: {
entity: viewer.scene.objects["1CZILmCaHETO8tf3SgGEXu"],
worldPos: [0.4156308174133301, -0.03379631042480469, 22.138973236083984]
},
target: {
entity: viewer.scene.objects["2O2Fr$t4X7Zf8NOew3FLOH"],
worldPos: [4.70150089263916, 3.09493088722229, 17.766956329345703]
entity: viewer.scene.objects["1CZILmCaHETO8tf3SgGEXu"],
worldPos: [6.181171894073486, -0.0305633544921875,22.141223907470703]
},
visible: true,
wireVisible: true
visible: true
});

const myMeasurement2 = angleMeasurements.createMeasurement({
id: "angleMeasurement2",
origin: {
entity: viewer.scene.objects["2O2Fr$t4X7Zf8NOew3FNr2"],
worldPos: [5.268430233001709, 2.5119516849517822, 17.761802673339844]
worldPos: [6.226694107055664,2.4763600826263428,17.717445373535156]
},
corner: {
entity: viewer.scene.objects[ "2O2Fr$t4X7Zf8NOew3FNqI"],
worldPos: [ 8.781314849853516 ,-0.01338815689086914,17.71697235107422]

},
target: {
entity: viewer.scene.objects["1CZILmCaHETO8tf3SgGEXu"],
worldPos: [0.3977813720703125, 0.0014836788177490234, 22.1480712890625]
entity: viewer.scene.objects["1s1jVhK8z0pgKYcr9jt7AB"],
worldPos: [6.220065593719482, 0.017018556594848633, 17.736911773681645]
},
visible: true,
wireVisible: true
visible: true
});
});

Expand Down

0 comments on commit ef9c3c1

Please sign in to comment.