Message 1 of 7
API Example: wrap a sketch around an object (true wrap, not just projection :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
A few days ago I was trying to figure out a way to wrap a sketch onto a cylinder via the API, and decided that there wasn't a good way to do it. But a little bit later I was browsing around in the API looking for something else, and I stumbled across SurfaceEvaluator.getModelCurveFromParametricCurve, and the lightbulb came on.
It turned out to be rather nontrivial to actually accomplish, but I finally got it working.
The benefit of this approach is that it can be used with non-developable surfaces like a sphere, or likely other arbitrary surfaces.
You can see the code at https://gist.github.com/JesusFreke/f619dd8599b7982ec85db73dfb0b7200