Skip to content

Commit

Permalink
Add example script for using rw3dm and rwsat modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur Rauf Bingol committed Apr 20, 2019
1 parent 1dc9770 commit 5fca592
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/modules_acis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,29 @@ Installation

Please refer to the `rwsat repository <https://github.com/orbingol/rwsat>`_ for installation options.

Using with geomdl
=================

The following code snippet illustrates importing the surface data converted from .sat file:

.. code-block:: python
:linenos:
from geomdl import exchange
from geomdl import multi
from geomdl.visualization import VisMPL as vis
# Import converted data
data = exchange.import_json("converted_acis.json")
# Add the imported data to a surface container
surf_cont = multi.SurfaceContainer(data)
surf_cont.sample_size = 30
# Visualize
surf_cont.vis = vis.VisSurface(ctrlpts=False, trims=False)
surf_cont.render()
References
==========

Expand Down
23 changes: 23 additions & 0 deletions docs/modules_rhino.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ Installation

Please refer to the `rw3dm repository <https://github.com/orbingol/rw3dm>`_ for installation options.

Using with geomdl
=================

The following code snippet illustrates importing the surface data converted from .3dm file:

.. code-block:: python
:linenos:
from geomdl import exchange
from geomdl import multi
from geomdl.visualization import VisMPL as vis
# Import converted data
data = exchange.import_json("converted_rhino.json")
# Add the imported data to a surface container
surf_cont = multi.SurfaceContainer(data)
surf_cont.sample_size = 30
# Visualize
surf_cont.vis = vis.VisSurface(ctrlpts=False, trims=False)
surf_cont.render()
References
==========

Expand Down

0 comments on commit 5fca592

Please sign in to comment.