Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Apr 2, 2024
1 parent 2506e26 commit 26204a6
Show file tree
Hide file tree
Showing 58 changed files with 726 additions and 590 deletions.
2 changes: 1 addition & 1 deletion itowns/dev/dist/itowns.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion itowns/dist/debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion itowns/dist/itowns.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion itowns/dist/itowns_widgets.js

Large diffs are not rendered by default.

34 changes: 4 additions & 30 deletions itowns/docs/api/3D Tiles/C3DTFeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ <h3>
groups:
<span class="type">count:number>}</span>,

info:
<span class="type">object</span>,

userData:
<span class="type">object</span>,

Expand Down Expand Up @@ -102,16 +99,6 @@ <h4>Parameters</h4>



</li>

<li>
<code>info</code>


&mdash; <span><p>info in the batchTable</p></span>



</li>

<li>
Expand Down Expand Up @@ -219,23 +206,6 @@ <h3>



<div class="property">
<h3>
<span class="property-name">info</span>
: <span class="type">object</span>
</h3>


<div class="description">
<p>info in the batchTable</p>
</div>

</div>

<hr/>



<div class="property">
<h3>
<span class="property-name">userData</span>
Expand Down Expand Up @@ -336,6 +306,10 @@ <h3>



<div class="description">
<p>Gets the information from the tile batch table for this C3DTFeature batch id.</p>
</div>




Expand Down
71 changes: 0 additions & 71 deletions itowns/docs/api/Layer/C3DTilesLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -549,77 +549,6 @@ <h4>Parameters</h4>



</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">findBatchTable</span>
(




object:
<span class="type">THREE.Object3D</span>


)
:

<span class="type"><a onclick="window.parent.goTo('api/3D%20Tiles/C3DTBatchTable.html','api/3D%20Tiles/C3DTBatchTable')" title="C3DTBatchTable">C3DTBatchTable</a></span>



</h3>



<div class="description">
<p>Finds the batch table of an object in a 3D Tiles layer. This is
for instance needed when picking because we pick the geometric
object which is not at the same level in the layer structure as
the batch table. More details here on itowns internal
organization of 3DTiles:
https://github.com/MEPP-team/RICT/blob/master/Doc/iTowns/Doc.md#itowns-internal-organisation-of-3d-tiles-data</p>
</div>




<h4>Returns</h4>

<ul>
<li>the batch table of the object</li>
</ul>



<h4>Parameters</h4>


<ul class="params">

<li>
<code>object</code>


&mdash; <span><p>a 3D geometric object</p></span>



</li>

</ul>






</div>

<hr/>
Expand Down
2 changes: 1 addition & 1 deletion itowns/docs/api/Layer/ElevationLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2>Example</h2>
<pre class="prettyprint source lang-js"><code>// Create an ElevationLayer
const elevation = new ElevationLayer('IGN_MNT', {
source: new WMTSSource({
"url": "https://wxs.ign.fr/altimetrie/geoportail/wmts",
"url": "https://data.geopf.fr/wmts?",
"crs": "EPSG:4326",
"format": "image/x-bil;bits=32",
"name": "ELEVATION.ELEVATIONGRIDCOVERAGE",
Expand Down
18 changes: 18 additions & 0 deletions itowns/docs/api/Layer/TiledGeometryLayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,24 @@ <h3>

</div>

<hr/>



<div class="property">
<h3>
<span class="property-name">hideSkirt</span>
: <span class="type">boolean</span>
</h3>


<div class="description">
<p>(default false) - Used to hide the skirt (tile borders).
Useful when the layer opacity &lt; 1</p>
</div>

</div>




Expand Down
189 changes: 12 additions & 177 deletions itowns/docs/api/Parser/B3dmParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,179 +40,6 @@ <h2>Static Methods</h2>



<div class="method">
<h3>
<span class="method-name">enableDracoLoader</span>
(




path:
<span class="type">string</span>,

config:
<span class="type">object</span>


)

</h3>



<div class="description">
<p>Enable Draco decoding for gltf.</p>
<p>The Draco library files are in folder itowns/examples/libs/draco/.
You must indicate this path when you want to enable Draco Decoding.
For more information on Draco, read /itowns/examples/libs/draco/README.md.</p>
</div>






<h4>Parameters</h4>


<ul class="params">

<li>
<code>path</code>


&mdash; <span><p>path to draco library folder.
This library is mandatory to load b3dm and gltf with Draco compression.</p></span>



</li>

<li>
<code>config</code>


&mdash; <span><p>optional configuration for Draco compression.</p></span>



</li>

</ul>





<h4>Example</h4>




<caption>Enable draco decoder</caption>



<pre class="prettyprint source lang-js"><code>// if you copied /itowns/examples/libs/draco/ to the root folder of your project,you can set the path to './'.
itowns.enableDracoLoader('./');

</code></pre>




</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">enableKtx2Loader</span>
(




path:
<span class="type">string</span>,

renderer:
<span class="type">THREE.WebGLRenderer</span>


)

</h3>



<div class="description">
<p>Enable KTX2 decoding for gltf. This library is mandatory to load b3dm and gltf with KTX2 compression.</p>
<p>The KTX2 library files are in folder itowns/examples/libs/basis/.
You must indicate this path when you want to enable KTX2 decoding.
For more information about KTX2, read /itowns/examples/libs/basis/README.md.</p>
</div>






<h4>Parameters</h4>


<ul class="params">

<li>
<code>path</code>


&mdash; <span><p>path to KTX2 library folder.</p></span>



</li>

<li>
<code>renderer</code>


&mdash; <span><p>the threejs renderer</p></span>



</li>

</ul>





<h4>Example</h4>




<caption>Enable ktx2 decoder</caption>



<pre class="prettyprint source lang-js"><code>// if you copied /itowns/examples/libs/draco/ to the root folder of your project,you can set the path to './'.
itowns.enableKtx2Loader('./', view.mainLoop.gfxEngine.renderer);</code></pre>




</div>

<hr/>



<div class="method">
<h3>
<span class="method-name">parse</span>
Expand Down Expand Up @@ -304,8 +131,7 @@ <h4>Parameters</h4>

<li>
<code>options.doNotPatchMaterial</code>
(default: <code>'false'</code>)

(optional)

&mdash; <span><p>disable patching material with logarithmic depth buffer support.</p></span>

Expand All @@ -325,9 +151,18 @@ <h4>Parameters</h4>
</li>

<li>
<code>options.overrideMaterials</code>
(default: <code>'false'</code>)
<code>options.frustumCulled</code>
(optional)

&mdash; <span><p>enable frustum culling.</p></span>



</li>

<li>
<code>options.overrideMaterials</code>
(optional)

&mdash; <span><p>override b3dm's embedded glTF materials. If
true, a threejs <a href="https://threejs.org/docs/index.html?q=meshbasic#api/en/materials/MeshBasicMaterial">MeshBasicMaterial</a>
Expand Down
Loading

0 comments on commit 26204a6

Please sign in to comment.