Skip to content

Commit d30b0a3

Browse files
fsalmoirmtezzele
authored andcommitted
some minor issues fixed
1 parent 0c1b370 commit d30b0a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pygem/igeshandler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import OCC.TopoDS
1212
from OCC.TopAbs import (TopAbs_FACE, TopAbs_EDGE)
1313
from OCC.TopExp import TopExp_Explorer
14-
from OCC.Geom import Geom_BSplineSurface
1514
from OCC.gp import (gp_Pnt, gp_XYZ)
1615
from OCC.Display.SimpleGui import init_display
1716
from OCC.ShapeFix import ShapeFix_ShapeTolerance
@@ -85,7 +84,6 @@ def parse(self, filename):
8584
for pole_u_direction in xrange(n_poles_u):
8685
for pole_v_direction in xrange(n_poles_v):
8786
control_point_coordinates = occ_face.Pole(pole_u_direction+1,pole_v_direction+1)
88-
weight = occ_face.Weight(pole_u_direction+1,pole_v_direction+1)
8987
control_polygon_coordinates[i,:] = [control_point_coordinates.X(), control_point_coordinates.Y(), control_point_coordinates.Z()]
9088
i += 1
9189

@@ -175,7 +173,6 @@ def write(self, mesh_points, filename):
175173
# evaluating the new edge: same (u,v) coordinates, but different (x,y,x) ones
176174
edge_phis_coordinates_aux = BRepBuilderAPI_MakeEdge(edge_uv_coordinates[0], brep_face)
177175
edge_phis_coordinates = edge_phis_coordinates_aux.Edge()
178-
#print edge_phis_coordinates
179176
tol.SetTolerance(edge_phis_coordinates, 1e-4)
180177
wire_maker.Add(edge_phis_coordinates)
181178
edge_explorer.Next()
@@ -251,5 +248,5 @@ def exit(event=None):
251248
start_display()
252249
else:
253250
f = display.View.View().GetObject()
254-
display.View.Dump(plot_file.split('.')[0] + '.jpg')
251+
display.View.Dump(plot_file.split('.')[0] + '.ppm')
255252

0 commit comments

Comments
 (0)