Lurker News
I'm currently developing Chili3D, an open-source, browser-based 3D CAD application. By compiling OpenCascade to WebAssembly and integrating Three.js, Chili3D delivers near-native performance for powerful online modeling, editing, and rendering—all without local installation. Access it here:

https://github.com/xiangechen/chili3d
Features:
Modeling Tools: Create basic shapes (boxes, cylinders, cones, etc.), 2D sketches (lines, arcs, circles, etc.), and perform advanced operations (boolean operations, extrusion, revolution, etc.).
Snapping and Tracking: Precisely snap to geometric features, workplanes, and track axes for accurate alignment.
Editing Tools: Modify (chamfer, fillet, trim, etc.), transform (move, rotate, mirror), and perform advanced edits (feature removal, sub-shape manipulation).
Measurement Tools: Measure angles and lengths, and calculate sums of length, area, and volume.
Document Management: Create, open, and save documents, with full undo/redo history and support for importing/exporting STEP, IGES, BREP formats.
User Interface: Office-style interface with contextual command organization, hierarchical assembly management, dynamic workplanes, and 3D viewport controls.
Multi-Language Support: Built-in i18n support with current languages including Chinese and English.

Comments (117) 31 threads

mdip#
So ... like ... WOW.

I read your description and thought, "some toy 3D project; probably slow/lacking features." I mean, you did a fine job but perhaps reading it in such a simple view made it lose something? Not a critique on you, just an observation of myself.
I've looked at it all of a few minutes and this is pretty fantastic. Quite fast, the UI seems relatively understandable coming from other tools. Looks as clean as the rest, anyway.
And I've been annoyed that there's not Fusion 360 available (supported, anyway) for OpenSUSE Tumbleweed ... you may have saved me some grief with this, so thanks for that!

jasonthorsness4 replies#
"by compiling OpenCascade (OCCT) to WebAssembly"

I wondered what geometry kernel it was going to use! Interesting to me how few of these there are. Some of the solid modeling stuff is nearly 40 years old (parasolid) this must be hard.

immmmmm1 reply#
I’m doing a bit of BREP for GIS and even in 2D with line segments only the problem is really non-trivial, a lot of edge (pun intended) cases to take care of. Type system helps enormously, so probably rust will be a win here (I think I saw a project along those lines).

That being said, for CAD (personal usage) I switched from Fusion 360 to Freecad 1.0 with almost no project and the latter is an order of magnitude faster.

ssl2321 reply#
Agreed, FreeCAD 1.0 is finally almost usable and supports assemblies. My main issue with it is that the bill of materials tool was DOA but it’s fixed in the main branch. There are still lots of quirks but these can be learned in a few hours of using it.
seltzered_1 reply#
Worth noting there's also a fork of FreeCAD (Astocad, made by a former Ondsel developer) with some UI enhancements: http://astocad.com/

Continue this thread — 1 reply

amelius1 reply#
Would love to read more about how these types of geometric problems are best approached.
phkahler2 replies#
>> Would love to read more about how these types of geometric problems are best approached.

Probably the most accessible NURBS kernel to learn from is the one in Solvespace. The entire source for the core NURBS is about 6KLoC:
https://github.com/solvespace/solvespace/tree/master/src/srf
My favorite file in there is ratpoly.cpp
It doesn't handle higher order NURBS or use knots. It's just the basics, but there are a lot of geometric algorithms in there. We're still trying to get the bugs out of NURBS booleans, but the high level algorithm is sound.
BTW it can also be compiled for web but that is incomplete.

johncalvinyoung1 reply#
Ugh, I wish I could read it but as I'm working in this space professionally reading GPLv3 code is... risky.

Been working in 2D with bezier implementation for our in-house CAD kernel. 3D parametric is limited at the moment, though.

Continue this thread — 1 reply

amelius#
Thanks, I'm a big fan of Solvespace, despite some small shortcomings that I usually am able to work around. I sometimes even use it to solve geometric problems. Much easier than doing it by hand.

I will have a look at the source code.

abe_m2 replies#
I think the corner cases are likely hard, but the fundamental mathematical representations of the 3D geometry haven't changed. If the licensing cost of Parasolid and ASICs is reasonable, there isn't really a commercial incentive to create something new from scratch. The current market trend is consolidation as Autodesk and Hexagon when on a buying spree and bought up a lot of CAD and CAM software.

OpenCASCADE used to be commercial, but they couldn't find enough customers to keep on and it got open sourced after a failed commercial existence.

inhumantsar#
I wish more companies, especially university spinoffs, did this when they failed.

It seems so wasteful that poor marketing or leadership or whatever can lock useful innovations up for years while people better able to execute on them reverse engineer the work and/or wait for patents to expire.

shash1 reply#
The corner cases are hard, but the basics shouldn't be. I'd normally expect several basic ones and a few good professional ones. But that's not what we see...
abe_m1 reply#
We have OpenCASCADE, GCAL and Solvespace. The later two are missing quite a few features relative to OpenCASCADE. Then there is Parasolid, ACIS, and whatever they call the kernel in CATIA. There are a few around. But perhaps there aren't that many ideas for innovative features for people who are interested in the area to create something new.

Continue this thread — 1 reply

snarfy1 reply#
We don't really have a lot of options as far as open source geometry kernels goes.

OpenCascade
CGAL
Is there anything else?

shash1 reply#
There's whatever's inside BRL-CAD, and SolveSpace has its own too.

Not that there are all that many proprietary 3D kernels either - ACIS, Parasolid, and...?

actionfromafar1 reply#
Does anyone use BRL-CAD for anything? It must be capable but I can find very little information and resources about.

Continue this thread — 1 reply

rcarmo4 replies#
Impressive, but I don't see any way to do constraints or sketches.

(I'm also a bit sad that this is a web app, but, alas, such is progress.)

SamBam3 replies#
As someone who works in a school with Chromebooks, I love that web apps like this exist, especially if students will be able to export the files to a 3D printer. It greatly opens up the number of tools we can use to do fun things.

That said, also as a teacher and a parent, I worry that Chromebooks are making kids have no idea about the world of non-web-apps. (And file systems, etc. etc.)
I watch my kid create a poster: find an image online, copy & paste into an automatic background remover, c&p into an image editing program to remove the watermark, c&p into Canva for assembling with text etc.
Meanwhile I show her that I can do the whole thing on Pixelmator Pro (or Affinity or Photoshop) and she looks at me like I have three heads.

sirjaz2 replies#
Chromebooks need to die, we need to get back to native apps. Look with Windows we have msix, with Linux we have flatpack, etc .. Storage is cheap, and our devices are powerful. Let's use that power
SamBam3 replies#
It simplifies things for schools, because everything is easily managed, everything integrates with Google classroom, and the hardware is fungible, you can log into any one and have your files.

It doesn't train them how to use real computers, but that's not on the state standards so they don't care.

Continue this thread — 3 replies

kennydude#
For some users, they're perfect (not all - schools etc need Win/Linux/Mac). I have family members who should just have a Chromebook as all they do is browse the internet - copy and paste is a stretch for them!
phkahler2 replies#
For CAD you can run Solvespace on a chromebook. I'm not sure I want to promote it for use below high school, as the geometry failures and their workarounds are probably too icky for younger users. I want more polish for kids.
rcarmo#
Solvespace is hardly polished enough for general use, though. I can use it, but I constantly struggle against the way it handles sketches.
regularfry#
I think a set of problems where you intentionally create failures and then work through solving them would be quite interesting for anyone learning geometry, beyond a certain point. Understanding exactly why the failures are failures, what about the geometry or the computation makes them fail, would help build an intuition for geometry and topology itself.
thenthenthen#
Let the kids make websites?!

I love web based software (minus the logins). This saves soooo much time in a teaching environment. Time that can me used for teaching ideas, approaches, rather than struggling with compatibility issues.

joeevans10001 reply#
Browsers can be just as powerful as 'native' apps. This is an example of that. Browser apps free the user from proprietary operating systems and their companies. Of course, Linux is a way around that. However, why not just write it once and let students and engineers the world over be able to share and open files easily?

UPDATE: On my newer laptop thius is faster than my native apps. And I was literally drawing shapes within 30 seconds of clicking on the link to this app. Compare that to the nightmare of all the other tools out there with registrations, email clutter, 2FA, and on and on. Oh, and cost in most cases!
UPDATE 2: I have no connection to this team other than having just seen a post online about this tool. I've been navigating the world of SketchUp/AutoCad/Revit recently so this of course is totally thrilling. Especially for what it means for the future.

gmueckl2 replies#
This is just blatantly wrong. There are so many native resources that any serious 3D application requires access to that are blocked by browsers that this statement just isn't true and never will be.
joeevans10004 replies#
That's why I said 'can'. Once OS's lift restrictions on what browsers can access then we'll finally have something more close to 'write once run everywhere'. But that wouldn't really help the proprietary software systems and companies.

Continue this thread — 4 replies

abe_m5 replies#
Out of curiosity, what native resources are needed? It seems Solidworks mainly needs access to the file system, GPU, and perhaps networking. GPU and networking in the browser, and the file handling could be implemented over the network instead of locally.

For most current pro CAD, certainly there are a lot of calls to Win32 libraries on Windows, but those aren't fundamentally needed by a CAD system. There was professional 3D CAD before Windows.
I don't know what native hardware would be needed that isn't already accessible through current Chrome?

Continue this thread — 5 replies

mft_1 reply#
OFC this being HN people are jumping on the side comment about web apps.

BUT the more relevant and valuable point you made was about constraints and sketches.
And, related to this, true parametric design, which IMO is vital for a CAD package to be taken seriously.

the__alchemist#
Yep! Would love to try this once he or she adds parametric. We need good-quality reasonably-priced software in this domain.
xiange#
The current version does not include this, but it will be available as parametric components in the future.
tmjdev#
Very impressive. Unsure what is going on with the tool icons, they're a bit strangely named. "Bessel", "pour corner" (twice), "From the cross section".

Looks like some work needs to be done to get this into familiar CAD terms with the English translation.
Difficult to use right now, it just switched into the Chinese translation when trying to make a cube and there doesn't appear to be an easy way to change that.

Load more comments