Skip to content

Commit 66d9d71

Browse files
committed
Merge branch 'master' into fix/urdf_updates
2 parents 58c07b9 + d00f881 commit 66d9d71

File tree

6 files changed

+87
-13
lines changed

6 files changed

+87
-13
lines changed

docs/environments/blender.rst

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ Working in Blender
44

55
Blender ships with its own embedded version of Python but it is relatively
66
simple to replace it with the one you have **COMPAS** installed on.
7-
87
It is recommended to create a new ``conda`` environment to make sure the python
98
version matches exactly what Blender expects.
10-
119
The following instructions are for Blender 2.79 which ships with
1210
**Pyhton 3.5.3**, for other versions, update the python version accordingly.
1311

12+
On Windows
13+
==========
14+
1415
Open the command prompt and type the following to install a new python
1516
environment with **COMPAS**:
1617

@@ -22,9 +23,6 @@ environment with **COMPAS**:
2223
$ conda install COMPAS
2324

2425

25-
On Windows
26-
==========
27-
2826
Now configure Blender to use the newly installed environment:
2927

3028
::
@@ -37,10 +35,34 @@ Now configure Blender to use the newly installed environment:
3735
On Mac
3836
======
3937

38+
Open the Terminal and type the following to install a new python
39+
environment with **COMPAS**:
40+
41+
::
42+
43+
$ conda create -n blender-279 python=3.5.3
44+
$ source activate blender-279
45+
$ conda config --add channels conda-forge
46+
$ conda install COMPAS
47+
48+
49+
Now configure Blender to use the newly installed environment:
50+
51+
::
52+
53+
$ cd /Applications/blender.app/Contents/Resources/2.78
54+
$ mv python original_python
55+
$ ln -s $CONDA_PREFIX python
56+
4057

4158
Using the built-in script editor
4259
================================
4360

61+
coming soon...
62+
4463

4564
Using an external editor
4665
========================
66+
67+
coming soon...
68+

docs/test.rst

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,53 @@
22
Testing heroku app integration
33
********************************************************************************
44

5-
.. raw:: html
5+
.. .. raw:: html
66
7-
<div class="embed-responsive embed-responsive-1by1">
8-
<iframe src="https://compasapp-test.herokuapp.com/" class="embed-responsive-item"></iframe>
9-
</div
7+
.. <div class="embed-responsive embed-responsive-1by1">
8+
.. <iframe src="https://compasapp-test.herokuapp.com/" class="embed-responsive-item"></iframe>
9+
.. </div
10+
11+
12+
.. code-block:: python
13+
14+
pass
15+
16+
17+
.. code-block:: none
18+
19+
$
20+
21+
22+
.. code-block:: ruby
23+
24+
//
25+
26+
27+
.. code-block:: c
28+
29+
//
30+
31+
32+
.. code-block:: console
33+
34+
$ test
35+
36+
37+
.. code-block:: bash
38+
39+
$ test
40+
41+
42+
.. highlight:: bash
43+
44+
::
45+
46+
$ test
47+
48+
49+
.. highlight:: python
50+
51+
::
52+
53+
def function(): pass
1054

src/compas_ghpython/utilities/drawing.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def xdraw_cylinders(cylinders, cap=False):
148148

149149

150150
def xdraw_pipes(pipes, cap=2, fit=1.0):
151-
rg_pipes = []
152151
abs_tol = TOL
153152
ang_tol = sc.doc.ModelAngleToleranceRadians
154153
for p in pipes:
@@ -159,12 +158,12 @@ def xdraw_pipes(pipes, cap=2, fit=1.0):
159158
if type(radius) in (int, float):
160159
radius = [radius] * 2
161160
radius = [float(r) for r in radius]
161+
162162
rail = Curve.CreateControlPointCurve([Point3d(*xyz) for xyz in points])
163163
breps = Brep.CreatePipe(rail, params, radius, 1, cap, fit, abs_tol,
164164
ang_tol)
165-
rg_pipes += breps
166-
return rg_pipes
167-
165+
for brep in breps:
166+
yield brep
168167

169168
def xdraw_spheres(spheres):
170169
rg_sheres = []

src/compas_rhino/helpers/mesh.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,22 @@
3838
'mesh_from_surface',
3939
'mesh_from_surface_uv',
4040
'mesh_from_surface_heightfield',
41+
4142
'mesh_draw',
4243
'mesh_draw_vertices',
4344
'mesh_draw_edges',
4445
'mesh_draw_faces',
4546
'mesh_draw_vertex_labels',
4647
'mesh_draw_edge_labels',
4748
'mesh_draw_face_labels',
49+
4850
'mesh_select_vertices',
4951
'mesh_select_vertex',
5052
'mesh_select_edges',
5153
'mesh_select_edge',
5254
'mesh_select_faces',
5355
'mesh_select_face',
56+
5457
'mesh_update_vertex_attributes',
5558
'mesh_update_edge_attributes',
5659
'mesh_update_face_attributes',

src/compas_rhino/helpers/network.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@
2020
'network_draw_edges',
2121
'network_draw_vertex_labels',
2222
'network_draw_edge_labels',
23+
2324
'network_select_vertices',
2425
'network_select_vertex',
2526
'network_select_edges',
2627
'network_select_edge',
28+
2729
'network_update_attributes',
2830
'network_update_vertex_attributes',
2931
'network_update_edge_attributes',
32+
3033
'network_move',
3134
'network_move_vertex',
35+
3236
'network_draw_reaction_forces',
3337
'network_draw_loads',
3438
'network_draw_axial_forces'

src/compas_rhino/helpers/volmesh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929
__all__ = [
3030
'volmesh_from_polysurfaces',
3131
'volmesh_from_wireframe',
32+
3233
'volmesh_draw',
3334
'volmesh_draw_vertices',
3435
'volmesh_draw_edges',
3536
'volmesh_draw_faces',
3637
'volmesh_draw_cells',
38+
3739
'volmesh_select_vertex',
3840
'volmesh_select_vertices',
3941
'volmesh_select_edge',

0 commit comments

Comments
 (0)