Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 22, 2024
1 parent c618ddb commit e003b0d
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 75 deletions.
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file modified latest/.doctrees/examples/binding_get_connection_zones.doctree
Binary file not shown.
Binary file modified latest/.doctrees/examples/binding_joints.doctree
Binary file not shown.
Binary file modified latest/.doctrees/examples/binding_read_xml_polylines.doctree
Binary file not shown.
Binary file not shown.
Binary file modified latest/.doctrees/examples/binding_rtree.doctree
Binary file not shown.
Binary file not shown.
13 changes: 6 additions & 7 deletions latest/examples/binding_closed_mesh_from_polylines.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,18 +584,17 @@ <h1>binding_closed_mesh_from_polylines</h1>

<span class="n">mesh</span> <span class="o">=</span> <span class="n">closed_mesh_from_polylines</span><span class="p">(</span><span class="n">polylines</span><span class="p">)</span>

<span class="kn">import</span> <span class="nn">sys</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>

<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">()</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>

<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">()</span>
<span class="n">viewer</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">mesh</span><span class="p">,</span> <span class="n">show_faces</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">show_edges</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>

<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
12 changes: 6 additions & 6 deletions latest/examples/binding_get_connection_zones.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,10 @@ <h1>binding_get_connection_zones</h1>
<span class="mi">4</span><span class="p">,</span>
<span class="p">)</span>

<span class="kn">import</span> <span class="nn">sys</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>

<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="kn">from</span> <span class="nn">compas.geometry</span> <span class="kn">import</span> <span class="n">Scale</span>

<span class="n">scale</span> <span class="o">=</span> <span class="mf">1e-3</span>
Expand All @@ -631,6 +628,9 @@ <h1>binding_get_connection_zones</h1>
<span class="n">viewer</span><span class="o">.</span><span class="n">scene</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">Polyline</span><span class="p">(</span><span class="n">polyline</span><span class="p">),</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>

<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
11 changes: 5 additions & 6 deletions latest/examples/binding_joints.html
Original file line number Diff line number Diff line change
Expand Up @@ -593,14 +593,10 @@ <h1>binding_joints</h1>
<span class="nb">print</span><span class="p">(</span><span class="n">element_pairs</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">joint_types</span><span class="p">)</span>

<span class="kn">import</span> <span class="nn">sys</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>

<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">(</span><span class="n">show_grid</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="k">for</span> <span class="n">polyline</span> <span class="ow">in</span> <span class="n">polylines</span><span class="p">:</span>
Expand All @@ -610,6 +606,9 @@ <h1>binding_joints</h1>
<span class="n">viewer</span><span class="o">.</span><span class="n">scene</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">polyline</span><span class="p">,</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">lineswidth</span><span class="o">=</span><span class="mi">3</span><span class="p">)</span>

<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>

<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
13 changes: 7 additions & 6 deletions latest/examples/binding_read_xml_polylines.html
Original file line number Diff line number Diff line change
Expand Up @@ -578,20 +578,21 @@ <h1>binding_read_xml_polylines</h1>

<span class="n">polylines</span> <span class="o">=</span> <span class="n">read_xml_polylines</span><span class="p">()</span>

<span class="kn">import</span> <span class="nn">sys</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
<span class="k">try</span><span class="p">:</span>

<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>

<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">()</span>

<span class="k">for</span> <span class="n">polyline</span> <span class="ow">in</span> <span class="n">polylines</span><span class="p">:</span>
<span class="n">viewer</span><span class="o">.</span><span class="n">scene</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">polyline</span><span class="p">,</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>


<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
22 changes: 7 additions & 15 deletions latest/examples/binding_read_xml_polylines_and_properties.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,11 @@ <h1>binding_read_xml_polylines_and_properties</h1>
<span class="n">input_adjacency</span><span class="p">,</span>
<span class="p">)</span> <span class="o">=</span> <span class="n">read_xml_polylines_and_properties</span><span class="p">()</span>

<span class="kn">import</span> <span class="nn">sys</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>

<span class="k">try</span><span class="p">:</span>

<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>

<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">()</span>

Expand All @@ -605,16 +603,10 @@ <h1>binding_read_xml_polylines_and_properties</h1>
<span class="k">else</span><span class="p">:</span>
<span class="n">viewer</span><span class="o">.</span><span class="n">scene</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">line</span><span class="o">.</span><span class="n">start</span><span class="p">,</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">points_size</span><span class="o">=</span><span class="mf">0.02</span><span class="p">)</span>

<span class="c1"># for i in input_joints_types:</span>
<span class="c1"># print(i)</span>

<span class="c1"># for i in input_three_valence_element_indices_and_instruction:</span>
<span class="c1"># print(i)</span>

<span class="c1"># for i in range(0, len(input_adjacency), 4):</span>
<span class="c1"># print(input_adjacency[i:i + 4])</span>

<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>

<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
11 changes: 5 additions & 6 deletions latest/examples/binding_rtree.html
Original file line number Diff line number Diff line change
Expand Up @@ -590,13 +590,9 @@ <h1>binding_rtree</h1>
<span class="nb">print</span><span class="p">(</span><span class="n">aabb</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">obb</span><span class="p">)</span>

<span class="kn">import</span> <span class="nn">sys</span>
<span class="k">try</span><span class="p">:</span>

<span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">version_info</span> <span class="o">&gt;=</span> <span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">9</span><span class="p">):</span>
<span class="k">try</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
<span class="kn">from</span> <span class="nn">compas_viewer</span> <span class="kn">import</span> <span class="n">Viewer</span>

<span class="n">viewer</span> <span class="o">=</span> <span class="n">Viewer</span><span class="p">()</span>

Expand All @@ -610,6 +606,9 @@ <h1>binding_rtree</h1>
<span class="n">viewer</span><span class="o">.</span><span class="n">scene</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">box</span><span class="p">,</span> <span class="n">show_points</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>

<span class="n">viewer</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>

<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;compas_viewer is not installed.&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion latest/searchindex.js

Large diffs are not rendered by default.

Loading

0 comments on commit e003b0d

Please sign in to comment.