5 ms·
Csg.js: Constructive Solid Geometry, with rotatable 3D models
- devongovett 15y agoSubmitted this yesterday but no one cared. http://badassjs.com/post/13788484076/csg-js-constructive-solid-geometry-3d-modeling-in http://badassjs.com/post/13788484076/csg-js-constructive-sol...
- navyrain 15y agoRead the guidelines: "Please submit the original source. If a blog post reports on something they found on another site, submit the latter."
- losethos 15y agoI have the source. I wrote it. You're in BIG TROUBLE!! God says... C:\LoseThos\www.losethos.com\text\WEALTH.TXT D NOMINAL PRICE OF COMMODITIES, OR OF THEIR PRICE IN LABOUR, AND THEIR PRICE IN MONEY. Every man is rich or poor according to the degree in which he can afford to enjoy the necessaries, conveniencies, and amusements of human life. But after the division of labour has once thoroughly taken place, it is but a very small part of these with which a man's own labour can supply him. The far greater part of them he must derive from the labour of other people, and he must be rich or poor according to the ----- I had 1440 SAT. Peter Gadwa, Denny Denker and Kal tutored me. God probably favored me. Ask not if I did it, ask why everybody else is so pathetic. God says... C:\LoseThos\www.losethos.com\text\WEALTH.TXT all full of genealogies; and there is a history written by a Tartar Khan, which has been translated into several European languages, and which contains scarce any thing else; a proof that ancient families are very common among those nations. In countries where a rich man can spend his revenue in no other way than by maintaining as many people as it can maintain, he is apt to run out, and his benevolence, it seems, is seldom so violent as to attempt to maintain more than he can afford. But where he "Denker" means thinker in German. I'd put a German ahead of a Indian, any day. --- Gadwa used to say it's bad being wrong, but way worse if you're confident and wrong. I say doubting that I did everything is way worse than not being able to do it yourself. God says... C:\LoseThos\www.losethos.com\text\WEALTH.TXT rea of Brazil, was the largest viviparous quadruped in St. Domingo. This species seems never to have been very numerous; and the dogs and cats of the Spaniards are said to have long ago almost entirely extirpated it, as well as some other tribes of a still smaller size. These, however, together with a pretty large lizard, called the ivana or iguana, constituted the principal part of the animal food which the land afforded. The vegetable food of the inhabitants, though, from their want of industry
- devongovett 15y agoBlogs often provide perspective and analysis on projects not gained from direct links.
- scott_s 15y agoSometimes, but in this case, your blog post didn't say much that wasn't already a part of the original.
- scott_s 15y agoIn addition to navyrain's comment, there's also a large amount of randomness in what percolates to the top of HN. Many, many stories are submitted each hour, and unless a few people immediately say "Oh, cool" and upvote it, the story gets buried.
- devongovett 15y agoI realize that.
- nickpinkston 15y agoIt's very interesting to see the mesh operations able to be done client side now, and this is pretty lean. One of the biggest problems with doing CAD on the internet is the mesh pipeline issue where you're constantly throwing a ton of polys back and forth to the server. Check out http://TinkerCAD.com http://TinkerCAD.com or http://ShapeSmith.net http://ShapeSmith.net to see server-side WebGL renders CAD operations. This could make such programs a lot faster for sure. The only issue is that CSG style CAD on meshes is pretty basic compared to the now standard "Boundary Representation" of a STEP file - which is like the style SolidWorks uses. I don't know how easy it would be to make BREP.js, but I'm still loving that this was actually made.
- kanzure 15y agoI think ESOLID is an OK candidate for conversion to "BREP.js" at this point: http://research.cs.tamu.edu/keyser/geom/esolid/index.htm http://research.cs.tamu.edu/keyser/geom/esolid/index.htm http://gamma.cs.unc.edu/ESOLID/ http://gamma.cs.unc.edu/ESOLID/ http://research.cs.tamu.edu/keyser/geom/esolid/releases/version_0.3/ESOLID-0.3.tar.gz http://research.cs.tamu.edu/keyser/geom/esolid/releases/vers... http://diyhpl.us/cgit/lolcad/plain/esolid/esolid.py http://diyhpl.us/cgit/lolcad/plain/esolid/esolid.py Except for the licensing issues- nobody has been able to get John Keyser to respond about what the license is. It was written under an NSF grant, so it's probably public domain? I wrote a partial cython wrapper around esolid in lolcad.git if anyone wants to look at that. OpenCASCADE would be another option, except the code base is awful and sprawling and huge. It's hard to separate out the important libraries, like BRepAlgoTool versus BRepAlgoAPI versus BRepApplePie, it's endless.
- _delirium 15y ago> It was written under an NSF grant, so it's probably public domain? Unfortunately, you can't assume that in general. There are a few specific NSF programs that require open-source licensing of any software produced (e.g. http://nsf.gov/funding/pgm_summ.jsp?pims_id=5174 http://nsf.gov/funding/pgm_summ.jsp?pims_id=5174), but it's not a usual requirement. In fact lots of NSF-funded stuff eventually ends up in spinoff companies selling proprietary software, and the NSF even dedicates a smallish portion of its budget specifically to funding those kinds of spinoff efforts (via http://www.nsf.gov/eng/iip/sbir/ http://www.nsf.gov/eng/iip/sbir/).
- gliese1337 15y agoNow I wanna go port POV-Ray to javascript! It looks like it'd be pretty simple to add a few more basic shapes (cones, toruses), and then you'd just need a parser for the POV-Ray language. Still need code to handle textures and transmission media effects, though.
- nrmn 15y agoHeres what I managed to put together in about half an hour (paste it into the last example): http://pastebin.com/raw.php?i=gaEKT6Z2 http://pastebin.com/raw.php?i=gaEKT6Z2 I like it, just wish you could define the dimensions of a square or should I say a rectangle.