Skip to content

Commit 96eead2

Browse files
committed
Fixing a typo in README.md and removing unusual import/variables in propeller.py
1 parent 7fca00b commit 96eead2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ See the [**Examples**](#examples) section below and the [**Tutorials**](tutorial
4949
**BladeX** is compatible with Python 3.6. Moreover, some of the modules require `OCC` to be installed for the `.iges` or `.stl` CAD generation. This requirement cannot be satisfied through `pip`, but the precompiled binaries are available on `conda` using the command:
5050

5151
```bash
52-
conda install -c conda-forge pythonocc-core=7.4.0
52+
> conda install -c conda-forge pythonocc-core=7.4.0
5353
```
5454

5555
You can also refer to `pythonocc.org` or `github.com/tpaviot/pythonocc-core` for further instructions.

bladex/propeller.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
"""
22
Module for the propeller with shaft bottom-up parametrized construction.
33
"""
4-
import os
54
import numpy as np
6-
from bladex import Blade, Shaft
7-
import OCC.Core.TopoDS
8-
from OCC.Core.gp import gp_Dir, gp_Pnt, gp_Ax1, gp_Trsf
9-
from OCC.Core.IGESControl import IGESControl_Reader, IGESControl_Writer
10-
from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Transform, BRepBuilderAPI_Sewing
5+
from OCC.Core.IGESControl import IGESControl_Writer
6+
from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_Sewing
117
from OCC.Core.BRepAlgoAPI import BRepAlgoAPI_Fuse
128
from OCC.Extend.DataExchange import write_stl_file
139
from OCC.Display.SimpleGui import init_display
@@ -46,7 +42,6 @@ def __init__(self, shaft, blade, n_blades):
4642
boolean_union = BRepAlgoAPI_Fuse(self.shaft_solid, blades_combined)
4743
boolean_union.Build()
4844
result_compound = boolean_union.Shape()
49-
section_edges = boolean_union.SectionEdges()
5045
sewer = BRepBuilderAPI_Sewing(1e-2)
5146
sewer.Add(result_compound)
5247
sewer.Perform()

0 commit comments

Comments
 (0)