Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/hiaselhans/OpenGlider in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
looooo committed Feb 2, 2016
2 parents 1505c21 + c2a416e commit 2ae75b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions openglider/glider/cell/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def get_mesh(self, cell, numribs=0):
:param numribs: number of miniribs to calculate
:return: mesh
"""
numribs += 1
# TODO: doesnt work for numribs=0?
xvalues = cell.rib1.profile_2d.x_values
ribs = []
Expand Down
7 changes: 3 additions & 4 deletions openglider/glider/parametric/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def fast_interpolation(self):
return np.interp(positions, data[1], data[0])


### besser mit spezieller bezier?
### besser mit spezieller bezier?
@property
def rib_dist_controlpoints(self):
return self.rib_distribution.controlpoints[1:-1]
Expand Down Expand Up @@ -122,9 +122,8 @@ def set_const_cell_dist(self):
num_pts = len(self.rib_distribution.controlpoints)
self.rib_distribution.fit(const_dist, numpoints=num_pts)

############################################################################
# scaling stuff

############################################################################
# scaling stuff
def scale(self, x=1., y=1.):
self.front_curve.scale(x, y)

Expand Down
2 changes: 1 addition & 1 deletion openglider/mesh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def triangularize(self):
def __json__(self):
return {
"vertices": self.vertices.tolist(),
"faces": self.polygons
"polygons": self.polygons
}

def __add__(self, other):
Expand Down

0 comments on commit 2ae75b6

Please sign in to comment.