Live data from Hacker News

Show HN: FluidCAD – Parametric CAD with JavaScript

fluidcad.io

41–44 of 44 posts

Re: Show HN: FluidCAD – Parametric CAD with JavaScript

#41
post #28

Earlier quoted context omitted.

Looking at this now, I like the approach! It's also fundamentally different from mine (maybe phew). The mouse driven approach makes it far more approachable, while mine is deliberately code driven and perhaps more quirky (step export is a code function for example). Also looking at your API, I used a vector type a lot for defining things like planes, so where you have sketch("xz",func) mines a little more like plane(…

It seems from what you are describing your software is more like (replicad)[ https://github.com/sgenoud/replicad ] The user can create planes with plane() command e.g plane("xy") or plane("xy", { offset: 10 }); but I have added some shortcuts for common planes ( https://fluidcad.io/docs/guides/sketching/introduction#sketc... ) you can also sketch on faces sketch(extrusion.endFace(), ...) which will extract the plane…

Had a bit of a rethink after this, settling on name spacing more like this at the moment. Quite enjoying the cycle of build/try/improve.

const in1 = draw.rectangle(size1, size1).fillet(2)

const in2 = draw.origin([0,0,height1]).rectangle(size2, size2).fillet(2)

const result = make.loft([in1, in2])

Re: Show HN: FluidCAD – Parametric CAD with JavaScript

#42
Looks great! Nice work. I am steeped in CAD for my work flow, so I used to program AutoCAD in AutoLISP, Rhino in Rhinoscript, now F#, and FreeCAD in Python as well as Blender. They have the geometry engines built-in and tested over decades. I think this is good for the maker with a 3D printer to do parts that are relatively simple (not discounting parametric code to make complex shapes here). Industry needs integration of CAD, BIM, CAM, Viz, etc. Take a look at this now older (2014) project where Rhino and F# were used to design and manufacture complex geometry for a real world build: https://www.youtube.com/watch?v=ZY-bvZZZZnE

Re: Show HN: FluidCAD – Parametric CAD with JavaScript

#44
This looks awesome – I'm excited to try it!

I've been using OpenSCAD and Build123D so far, but OpenSCAD is limited and Build123D is Python and I'd much rather use JS/TS.

Just curious – when when you do a sketch and then call extrude, why the implicit connection there? Why not assign the sketch to a const and then do `s.extrude`?

Great work so far!

Post reply on HN