{"action":"created","issue":{"url":"https://api.github.com/repos/mozman/ezdxf/issues/35","repository_url":"https://api.github.com/repos/mozman/ezdxf","labels_url":"https://api.github.com/repos/mozman/ezdxf/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/mozman/ezdxf/issues/35/comments","events_url":"https://api.github.com/repos/mozman/ezdxf/issues/35/events","html_url":"https://github.com/mozman/ezdxf/issues/35","id":336597048,"node_id":"MDU6SXNzdWUzMzY1OTcwNDg=","number":35,"title":"knot_values   knot_values_uniform  knot_values_by_control_points","user":{"login":"dflstone","id":19831419,"node_id":"MDQ6VXNlcjE5ODMxNDE5","avatar_url":"https://avatars2.githubusercontent.com/u/19831419?v=4","gravatar_id":"","url":"https://api.github.com/users/dflstone","html_url":"https://github.com/dflstone","followers_url":"https://api.github.com/users/dflstone/followers","following_url":"https://api.github.com/users/dflstone/following{/other_user}","gists_url":"https://api.github.com/users/dflstone/gists{/gist_id}","starred_url":"https://api.github.com/users/dflstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflstone/subscriptions","organizations_url":"https://api.github.com/users/dflstone/orgs","repos_url":"https://api.github.com/users/dflstone/repos","events_url":"https://api.github.com/users/dflstone/events{/privacy}","received_events_url":"https://api.github.com/users/dflstone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T12:18:49Z","updated_at":"2018-10-28T06:18:06Z","closed_at":"2018-10-28T06:18:06Z","author_association":"NONE","body":"how i use **EdgePath.add_spline(fit_points=None, control_points=None, knot_values=None, weights=None, degree=3, rational=0, periodic=0)**\r\n\r\n from ezdxf.tools import knot_values   \r\nImportError: cannot import name 'knot_values'"},"comment":{"url":"https://api.github.com/repos/mozman/ezdxf/issues/comments/433679755","html_url":"https://github.com/mozman/ezdxf/issues/35#issuecomment-433679755","issue_url":"https://api.github.com/repos/mozman/ezdxf/issues/35","id":433679755,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY3OTc1NQ==","user":{"login":"mozman","id":4230966,"node_id":"MDQ6VXNlcjQyMzA5NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/4230966?v=4","gravatar_id":"","url":"https://api.github.com/users/mozman","html_url":"https://github.com/mozman","followers_url":"https://api.github.com/users/mozman/followers","following_url":"https://api.github.com/users/mozman/following{/other_user}","gists_url":"https://api.github.com/users/mozman/gists{/gist_id}","starred_url":"https://api.github.com/users/mozman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozman/subscriptions","organizations_url":"https://api.github.com/users/mozman/orgs","repos_url":"https://api.github.com/users/mozman/repos","events_url":"https://api.github.com/users/mozman/events{/privacy}","received_events_url":"https://api.github.com/users/mozman/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T06:18:06Z","updated_at":"2018-10-28T06:18:06Z","author_association":"OWNER","body":"Knot value helper functions now located in ezdxf.algebra.bspline like knot_open_uniform() and knot_uniform(), this module also provides other helper tools for creating splines like bspline_control_frame() which creates a valid BSpline object from *fit_points* and *degree*.\r\n\r\nAll this works just with the latest developer version!\r\n\r\nGet required parameters for add_spline():\r\n```\r\nbspline = bspline_control_frame(your_fit_points, degree=3)\r\nyour_edge_path.add_spline(\r\n  fit_points=your_fit_points,\r\n  control_points=bspline.control_points,\r\n  knot_values=bspine.knot_values(),\r\n  degree=3,\r\n)\r\n\r\n# or simpler by helper method:\r\nyour_edge_path.add_spline_control_frame(fit_points=fitpoints)\r\n```\r\nsee also example: https://github.com/mozman/ezdxf/blob/933e86e769c17a41afe8df6eefa2230caf619b60/examples/using_hatch.py#L146"}}
{"actor":{"display_login":"mozman"}}