-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo-Status-0.6.ipt broken in STEP export by commit 13f51a0284452e8330fe46f2d3b7d7bcaec957de #69
Comments
By fixing all the data format issues and continuing, another error shows up: 'SurfaceSpline' object has no attribute 'entity' in:
maybe more defensive checks are needed? Thanks. |
For the record: building nubs/nurbs is quite straightforward with NURBS-python or splipy (I'd discourage scipy/numpy as being too big only for that task). With those, you can as well interopolate b-splines from points, in the same way as you already do with Part (which we don't want to kick in in Acis2Step.py). |
@HolographicPrince : this is the reason why numpy was banned a "long time" ago. |
|
I see.
So this can be dealt with quite easily: just transform each single point before creating the spline. Or else, you can transform the control points, as the knots are invariant for rigid transformations. |
Please check out this version that, by merging new and old approach, provides what follows:
|
From the -dbg version, implement this snippet below in Part.py, class BSplineCurve(Curve). Then, in Acis.py you transform the single points before interpolating, instead of rotating the whole spline once built. Let me know how it works.
|
|
@marcocecchiscmgroup : |
A couple of years ago I gave you this to remove the numpy dependency, maybe you wiped it out completely:
|
I was only too long away from this project. |
The helicoidal spline curve/surfaces from Demo-Status-0.6.ipt raise exceptions. There are various issues into play:
Acis.py/class SurfaceSpline(Surface)/build(self, face = None):
'helix_spl_circ' is not contemplated in the if .. elif .. elif
Then, returning a Shape fails the if .. elif... in Acis2Step.py/createSurfaceSpline(acisFace)(acisFace), which in turn returns None instead of a pair None, None, that raises a 'cannot unpack non-iterable NoneType object' exception, because of this:
surface, sense = _createSurfaceFaceShape(acisFace)
This used to work before, because the Helix was at least built correctly and now it is not used anymore. Jens, these are your very examples, why don't you at least run them all before committing?
The text was updated successfully, but these errors were encountered: