We have developed with a friend of mine a clipping/cut plane tool, similar to what was requested at issue #100. It is a simple version, bugs might be around, but it works for us and I will share it.
How it works:
a dat-gui element is added (clipping plane) to the scene;
in orientation dropdown controller you can select horizontal or vertical options;
for horizontal Altitude slider and Flip checkbox is added;
for vertical Distance and Azimuth slider is added;
Upon selection clipping plane is activated with default values both for size and position and can be manipulated with the above mentioned controllers.
How to install:
download the attached javascript file, remove txt extension and copy near index.html (basically root folder of the created qgis2threejs model) clipping_plane.js.txt
copy to the <head> section of the index.html file <script src="clipping_plane.js"></script>
copy to the ending of the <script> section from the <body> section of the index.html file clippingPlane.boot();, similar to the following lines (+ at the begining of the line is just for emphasizing):
if (Q3D.Config.gui.customPlane) {
var zMin = undefined,
zMax = undefined;
gui.dat.initCustomPlaneFolder(zMin, zMax);
}
We have developed with a friend of mine a clipping/cut plane tool, similar to what was requested at issue #100. It is a simple version, bugs might be around, but it works for us and I will share it.
How it works:
How to install:
<head>
section of the index.html file<script src="clipping_plane.js"></script>
<script>
section from the<body>
section of the index.html fileclippingPlane.boot();
, similar to the following lines (+ at the begining of the line is just for emphasizing):