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

SVG Interpret Quality #22

Closed
gordonnl opened this issue May 16, 2013 · 3 comments
Closed

SVG Interpret Quality #22

gordonnl opened this issue May 16, 2013 · 3 comments

Comments

@gordonnl
Copy link

Is there a way to increase the quality within the 'subdivide' function for SVG interpretations?

i.e. to increase the number of points in the output polygon.

I understand that it is based on a brilliant algorithm (http://www.antigrain.com/research/adaptive_bezier/index.html) that matches the degree of quality with the original shape, however I am then manipulating the points, so I would like to be able to define a level of quality.

Thanks a lot in advance!

@gordonnl
Copy link
Author

Just took a bit more poking, I found what I was searching for.

I manually tweaked the following values to increase the polygon points:
Utils.Curve.Tolerance.angle = 0.001
Utils.Curve.Tolerance.epsilon = 0.001

May not be the perfect solution, but it works for me.

@jonobr1
Copy link
Owner

jonobr1 commented May 16, 2013

Sorry for the delay, but it looks like you found what you were looking for!

@jonobr1
Copy link
Owner

jonobr1 commented May 16, 2013

There is also Two.Resolution when defining how many points should be in an ellipse or circle.

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

No branches or pull requests

2 participants