|
11 | 11 | import OCC.TopoDS |
12 | 12 | from OCC.TopAbs import (TopAbs_FACE, TopAbs_EDGE) |
13 | 13 | from OCC.TopExp import TopExp_Explorer |
14 | | -from OCC.Geom import Geom_BSplineSurface |
15 | 14 | from OCC.gp import (gp_Pnt, gp_XYZ) |
16 | 15 | from OCC.Display.SimpleGui import init_display |
17 | 16 | from OCC.ShapeFix import ShapeFix_ShapeTolerance |
@@ -85,7 +84,6 @@ def parse(self, filename): |
85 | 84 | for pole_u_direction in xrange(n_poles_u): |
86 | 85 | for pole_v_direction in xrange(n_poles_v): |
87 | 86 | 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) |
89 | 87 | control_polygon_coordinates[i,:] = [control_point_coordinates.X(), control_point_coordinates.Y(), control_point_coordinates.Z()] |
90 | 88 | i += 1 |
91 | 89 |
|
@@ -175,7 +173,6 @@ def write(self, mesh_points, filename): |
175 | 173 | # evaluating the new edge: same (u,v) coordinates, but different (x,y,x) ones |
176 | 174 | edge_phis_coordinates_aux = BRepBuilderAPI_MakeEdge(edge_uv_coordinates[0], brep_face) |
177 | 175 | edge_phis_coordinates = edge_phis_coordinates_aux.Edge() |
178 | | - #print edge_phis_coordinates |
179 | 176 | tol.SetTolerance(edge_phis_coordinates, 1e-4) |
180 | 177 | wire_maker.Add(edge_phis_coordinates) |
181 | 178 | edge_explorer.Next() |
@@ -251,5 +248,5 @@ def exit(event=None): |
251 | 248 | start_display() |
252 | 249 | else: |
253 | 250 | f = display.View.View().GetObject() |
254 | | - display.View.Dump(plot_file.split('.')[0] + '.jpg') |
| 251 | + display.View.Dump(plot_file.split('.')[0] + '.ppm') |
255 | 252 |
|
0 commit comments