Skip to content
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

Slicing #68

Open
cshorler opened this issue Sep 29, 2019 · 7 comments
Open

Slicing #68

cshorler opened this issue Sep 29, 2019 · 7 comments
Assignees
Labels
enhancement New feature request or enhancement

Comments

@cshorler
Copy link
Contributor

I have a piece of code which calculates control points for an arbitrary arc using vector calculus. One possible way to achieve outputs is to pre-calculate nice fraction angular sector weights (e.g. 1/2). Only calculating the final weight explicitly, possibly this isn't a good approach for distributing the error - but what's notable is slicing is not supported, so you have to workaround this - making the code slightly less concise than it could be.

The example is for weights, but I imagine the problem / feature need is evident on all attribute lists of curves and surfaces.

I've started working on a possible way to handle this the branch below:
https://github.com/cshorler/NURBS-Python/tree/slicing_and_nurbs_derivatives

@cshorler
Copy link
Contributor Author

cshorler commented Oct 1, 2019

now successfully passes the test I wrote

@orbingol orbingol added the enhancement New feature request or enhancement label Oct 7, 2019
@orbingol
Copy link
Owner

orbingol commented Oct 7, 2019

Thank you @cshorler. I think slicing feature will be a nice addition to geomdl.

@cshorler
Copy link
Contributor Author

cshorler commented Oct 12, 2019

I'll submit a PR for v6, a little difficult now a number of tests are failing on the branch 6.x-dev. I guess you're in the middle of some changes. I'll try skipping some commits of my current base to allow the rebase to work.

==================================== 14 failed, 92 passed, 134 error in 14.65 seconds ====================================
chorler@linux-tn2c:~/projects/src/NURBS-Python> git branch | cat
* 6.x-dev

@orbingol
Copy link
Owner

orbingol commented Oct 13, 2019

6.x-dev is very unstable at the moment. I am doing some major refactoring to simplify some algorithms which will improve the performance in general. I will post a list of current and future changes for 6.x in a couple of days. so you will be able to track the details.

I think it would be easier for you to work with 5.x series for now, a.k.a. devmaster branch. If you can keep the changes separate from the base library (such as, via extending the classes), it will be easier to port it to 6.x later. Still, I'd like to leave this decision to you. I'd be very happy if you could directly implement on 6.x-dev, but I can say that the code in that branch is going to change a bit.

@cshorler
Copy link
Contributor Author

seems to work on 6.x-dev, see PR opened. Also, the NofityList mentioned in the comment on your other enhancement is used in the implementation.

@orbingol
Copy link
Owner

Would it be possible to create a separate PR for the NotifyList implementation?

@cshorler
Copy link
Contributor Author

cshorler commented Oct 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants