Missing example for holes
Hello,
I have a question about creating a hole. I don't know how to do this,
mayby it's a good idea to create and add an example at CoffeeSCad? Some list full of commands would be nice too
I created a couple of examples here. https://gist.github.com/4450435
This code and perhaps some screen shots of the resulting objects should be put into the Wiki. Should there be a separate page for code examples?
Thanks a lot for this Jim! I wonder about this: do you think the wiki is the best place for examples ? I also though of creating a seperate repository just for examples, which would make it easy to add more stuff (fork, code & push) I also recall there was a way to used a github repo as a blog /website engine, so we could leverage that perhaps ? In the meantime I can will add it to the wiki this weekend:)
FowsCoffeeScad : the example provided above is the way to create holes, and you can also find some basic examples in the app itself under file -> examples
I do plan more extensive documentation , but I will wait until the API is more stable (should be the case rather soon).
Ya, i already knew about the example, but i "missed" an example for creating a hole, but after a good look at the example "mix" i saw the .subtract code :) ty anyways.
Another thing I did not figure out yet is to bend a cilinder or something, like creating a donut or a donut cut in half
And a wiki with the commands would be nice, people who are searching for things start most of the times with "wiki"
Mark, You have a good point. The examples I provided are full runnable programs. They should probably live in a repo somewhere. There should be a library of example code that others can learn from. Whether that should be a completely separate repo, or it should be part of the CoffeeScad repo is a topic for further discussion.
As for hosting web pages on github, check out http://pages.github.com
Hello again , sorry for the late reply !
FowsCoffeeScad : I might be wrong, but I think you can achieve such an effect by using the "extrude" method with the twist option. Also you are right, the list of methods In the wiki is quite incomplete, but I will add them as soon as I can :)
Jim: I have just created the following repository : https://github.com/kaosat-dev/CoffeeSCad-examples so feel free to fork it, and add any example you want :) I'll edit the wiki this week end to point to it
For pages : I knew about the github-pages (that is what I use for the Coffeescad Demo :) , what I actually meant is something like this http://jekyllbootstrap.com/ or http://eclipsesource.com/blogs/2011/04/05/how-to-blog-using-github-and-eclipse/ or , In our case, perhaps something closer to Gary Hodgson's GithubVerse (I still need to find time to fork his repo and make it use elements of coffeescad) see here for live example of how that works : http://garyhodgson.github.com/githubiverse-tst/
cheers !
oh ok, ty for the tip ^^ sorry for my newbyness, never "scripted" 3d-objects before :P used to work with solidworks ^^ but coffeescad is a good alternative, if you don't have your own laptop/pc with u with these cad-programs.
I'll see about getting my examples into the repo. I'm also happy to assist with writing docs for the wiki. (I've already made some additions) Docs and example code go hand-in-hand as far as I'm concerned.
Mark, If you can give me a list of CSG objects and transforms, or tell me where to look in the source code, I can try to do some more work on the docs in the wiki.
FowsCoffeeScad: no need to apologize, as Jwygralak67 put it, docs and examples are essential, and that is lacking for now :) Solidworks is a very cool piece of software ! Wish I could implement 1/100th of its features! And glad you are finding a good use of Coffeescad !
Jim : I totally agree with you about examples and docs, I am really sorry if I haven't been able to do more on that front. However, I have been working on being able to at least get auto-generated basic api documentation , but I ran into some issues, will try to get that done soon. Also , damn, I am sorry, I had not even noticed your edits/additions to the wiki (apparently github does not send any notifications for that ? weird) , Thank a bunch :)
The CSG part of the code is still a bit "wild" at the moment( speaking of the dev branch) , but you can find all related to the CSG in src/app/modules/core/projects/csg. But if you give me a few days, I'll fix the doc generation, so you will at least have the outline of all the modules and elements.