pythonocc-utils icon indicating copy to clipboard operation
pythonocc-utils copied to clipboard

issues when running the example occutils_geomplate.py

Open calocedrus opened this issue 8 years ago • 1 comments

With occutils properly installed, the option "solve radius" in the drop down menu ("geom plate") returns: AttributeError: 'RadiusConstrainedSurface' object has no attribute 'curr_radius' And the option "build curve network" exits with a segmentation core failing to build the geom plate surface, when, upon importing IGES data, "At least one shape in IGES cannot be transfered". In order for occutils_geomplate.py to properly execute "solve_radius", change the following:

  • uncomment line 263 (reason for the AttributeError)
  • change line 236 from if isinstance(z, types.FloatType): to if isinstance(z, float):
  • change line 243 from radius = radius_at_uv(self.plate, uv.X(), uv.Y()) to radius = radius_at_uv(self.plate, uv[0], uv[1])

There's an example core_geometry_geomplate.py in pythonocc-core-master/examples with what seems to be identical functions, does it mean that the whole pythonocc-utils module have been included into pythonocc-core?

calocedrus avatar Mar 01 '17 03:03 calocedrus

I am also facing the same issues. The Reader works if you insert back the line 87: ok = aReader.TransferRoots() which was commented out by no reason?!

Is this project intended to be integrated in the core module or will it be kept at least compatible?

DocBO avatar Oct 18 '17 07:10 DocBO