Skip to content

Commit 6e2f7ec

Browse files
committed
docs
1 parent 88027e6 commit 6e2f7ec

File tree

5 files changed

+51
-8
lines changed

5 files changed

+51
-8
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## Unreleased
9+
10+
### Added
11+
12+
* Added `compas_occ.brep.BRep`.
13+
* Added `compas_occ.brep.BRepEdge`.
14+
* Added `compas_occ.brep.BRepFace`.
15+
* Added `compas_occ.brep.BRepLoop`.
16+
* Added `compas_occ.brep.BRepVertex`.
17+
18+
### Changed
19+
20+
### Removed

docs/_images/compas_occ.png

1010 KB
Loading

docs/examples/surface_aabb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
for col in zip(* surface.points):
3838
view.add(Polyline(col), linewidth=2, linecolor=(0, 1.0, 0))
3939

40-
view.add(surface)
40+
view.add(surface.to_mesh(), show_edges=False)
4141
view.add(box, show_faces=False)
4242

4343
view.run()

docs/index.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
COMPAS OCC
33
********************************************************************************
44

5-
.. rst-class:: lead
6-
7-
COMPAS OCC provides an easy-to-use interface to the Python bindings
8-
of the 3D modelling kernel of Open CasCade.
9-
10-
.. .. figure:: /_images/view2_scripted.png
5+
.. figure:: /_images/compas_occ.png
116
:figclass: figure
127
:class: figure-img img-fluid
138

9+
.. rst-class:: lead
10+
11+
COMPAS OCC provides an easy-to-use interface to the Python bindings
12+
of the `3D modelling kernel of Open CasCade <https://www.opencascade.com/open-cascade-technology/>`_.
1413

1514
Table of Contents
1615
=================
@@ -26,7 +25,6 @@ Table of Contents
2625
api
2726
license
2827

29-
3028
Indices and tables
3129
==================
3230

docs/installation.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,36 @@
22
Installation
33
********************************************************************************
44

5+
Stable
6+
======
7+
8+
:mod:`compas_occ` can be installed using `pip`.
9+
However, some of its dependencies have to be installed from `conda`.
10+
Therefore, the recommended installation procedure is to create a `conda` environment
11+
with the required dependencies, and then install :mod:`compas_occ` in that environment with `pip`
12+
513
.. code-block:: bash
614
715
conda create -n occ python=3.8 compas compas_view2 pythonocc-core
816
conda activate occ
17+
pip install compas_occ
18+
19+
20+
Development
21+
===========
22+
23+
To get the latest development version, you can install from local source, or directly from the github repo.
924

1025
.. code-block:: bash
1126
27+
conda create -n occ python=3.8 compas compas_view2 pythonocc-core
28+
conda activate occ
1229
pip install git+https://github.com/compas-dev/compas_occ.git#egg=compas_occ
30+
31+
.. code-block:: bash
32+
33+
conda create -n occ python=3.8 compas compas_view2 pythonocc-core
34+
conda activate occ
35+
git pull https://github.com/compas-dev/compas_occ.git#egg=compas_occ
36+
cd compas_occ
37+
pip install -e .

0 commit comments

Comments
 (0)