Skip to content

issues when running the example occutils_geomplate.py #14

Description

@calocedrus

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions